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

Method hashCode

src/main/java/org/bukkit/FireworkEffect.java:406–417  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

404 }
405
406 @Override
407 public int hashCode() {
408 // TRUE and FALSE as per boolean.hashCode()
409 final int PRIME = 31, TRUE = 1231, FALSE = 1237;
410 int hash = 1;
411 hash = hash * PRIME + (flicker ? TRUE : FALSE);
412 hash = hash * PRIME + (trail ? TRUE : FALSE);
413 hash = hash * PRIME + type.hashCode();
414 hash = hash * PRIME + colors.hashCode();
415 hash = hash * PRIME + fadeColors.hashCode();
416 return hash;
417 }
418
419 @Override
420 public boolean equals(Object obj) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected