MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / isValid

Method isValid

src/main/java/net/minecraft/world/World.java:244–247  ·  view source on GitHub ↗

Check if the given BlockPos has valid coordinates

(BlockPos pos)

Source from the content-addressed store, hash-verified

242 * Check if the given BlockPos has valid coordinates
243 */
244 private boolean isValid(BlockPos pos)
245 {
246 return pos.getX() >= -30000000 && pos.getZ() >= -30000000 && pos.getX() < 30000000 && pos.getZ() < 30000000 && pos.getY() >= 0 && pos.getY() < 256;
247 }
248
249 /**
250 * Checks to see if an air block exists at the provided location. Note that this only checks to see if the blocks

Callers 8

isBlockLoadedMethod · 0.95
setBlockStateMethod · 0.95
getLightForMethod · 0.95
setLightForMethod · 0.95
getBlockStateMethod · 0.95
getTileEntityMethod · 0.95
isBlockNormalCubeMethod · 0.95

Calls 3

getXMethod · 0.65
getZMethod · 0.65
getYMethod · 0.65

Tested by

no test coverage detected