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

Method isAirBlock

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

Checks to see if an air block exists at the provided location. Note that this only checks to see if the blocks material is set to air, meaning it is possible for non-vanilla blocks to still pass this check. @param pos The position of the block being checked.

(BlockPos pos)

Source from the content-addressed store, hash-verified

253 * @param pos The position of the block being checked.
254 */
255 public boolean isAirBlock(BlockPos pos)
256 {
257 return this.getBlockState(pos).getBlock().getMaterial() == Material.air;
258 }
259
260 public boolean isBlockLoaded(BlockPos pos)
261 {

Callers 4

dispenseStackMethod · 0.95
processCommandMethod · 0.95
processCommandMethod · 0.95

Calls 3

getBlockStateMethod · 0.95
getBlockMethod · 0.65
getMaterialMethod · 0.45

Tested by

no test coverage detected