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

Method hashCode

src/main/java/org/bukkit/Location.java:569–581  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

567 }
568
569 @Override
570 public int hashCode() {
571 int hash = 3;
572
573 World world = (this.world == null) ? null : this.world.get();
574 hash = 19 * hash + (world != null ? world.hashCode() : 0);
575 hash = 19 * hash + (int) (Double.doubleToLongBits(this.x) ^ (Double.doubleToLongBits(this.x) >>> 32));
576 hash = 19 * hash + (int) (Double.doubleToLongBits(this.y) ^ (Double.doubleToLongBits(this.y) >>> 32));
577 hash = 19 * hash + (int) (Double.doubleToLongBits(this.z) ^ (Double.doubleToLongBits(this.z) >>> 32));
578 hash = 19 * hash + Float.floatToIntBits(this.pitch);
579 hash = 19 * hash + Float.floatToIntBits(this.yaw);
580 return hash;
581 }
582
583 @Override
584 public String toString() {

Callers

nothing calls this directly

Calls 1

getMethod · 0.65

Tested by

no test coverage detected