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

Method blockEquals

src/main/java/org/bukkit/util/BlockIterator.java:179–181  ·  view source on GitHub ↗
(@NotNull Block a, @NotNull Block b)

Source from the content-addressed store, hash-verified

177 }
178
179 private boolean blockEquals(@NotNull Block a, @NotNull Block b) {
180 return a.getX() == b.getX() && a.getY() == b.getY() && a.getZ() == b.getZ();
181 }
182
183 private BlockFace getXFace(@NotNull Vector direction) {
184 return ((direction.getX() > 0) ? BlockFace.EAST : BlockFace.WEST);

Callers 1

BlockIteratorMethod · 0.95

Calls 3

getXMethod · 0.65
getYMethod · 0.65
getZMethod · 0.65

Tested by

no test coverage detected