MCPcopy Create free account
hub / github.com/Teneted/Tenet / hashCode

Method hashCode

src/main/java/org/bukkit/potion/PotionEffect.java:232–242  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

230 }
231
232 @Override
233 public int hashCode() {
234 int hash = 1;
235 hash = hash * 31 + type.hashCode();
236 hash = hash * 31 + amplifier;
237 hash = hash * 31 + duration;
238 hash ^= 0x22222222 >> (ambient ? 1 : -1);
239 hash ^= 0x22222222 >> (particles ? 1 : -1);
240 hash ^= 0x22222222 >> (icon ? 1 : -1);
241 return hash;
242 }
243
244 @Override
245 public String toString() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected