MCPcopy Index your code
hub / github.com/PaperMC/Paper / equals

Method equals

paper-api/src/main/java/org/bukkit/util/BlockVector.java:81–90  ·  view source on GitHub ↗

Checks if another object is equivalent. @param obj The other object @return whether the other object is equivalent

(Object obj)

Source from the content-addressed store, hash-verified

79 * @return whether the other object is equivalent
80 */
81 @Override
82 public boolean equals(Object obj) {
83 if (!(obj instanceof BlockVector)) {
84 return false;
85 }
86 BlockVector other = (BlockVector) obj;
87
88 return (int) other.getX() == (int) this.x && (int) other.getY() == (int) this.y && (int) other.getZ() == (int) this.z;
89
90 }
91
92 /**
93 * Returns a hash code for this vector.

Callers

nothing calls this directly

Calls 3

getXMethod · 0.65
getYMethod · 0.65
getZMethod · 0.65

Tested by

no test coverage detected