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

Method getBlockX

paper-api/src/main/java/org/bukkit/Location.java:158–160  ·  view source on GitHub ↗

Gets the floored value of the X component, indicating the block that this location is contained with. @return block X

()

Source from the content-addressed store, hash-verified

156 * @return block X
157 */
158 public int getBlockX() {
159 return locToBlock(x);
160 }
161
162 /**
163 * Sets the y-coordinate of this location

Callers 5

toBlockLocationMethod · 0.95
toBlockKeyMethod · 0.95
toCenterLocationMethod · 0.95
createExplorerMapMethod · 0.95

Calls 1

locToBlockMethod · 0.95

Tested by

no test coverage detected