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

Method setBlockToAir

src/main/java/net/minecraft/world/World.java:408–411  ·  view source on GitHub ↗
(BlockPos pos)

Source from the content-addressed store, hash-verified

406 }
407
408 public boolean setBlockToAir(BlockPos pos)
409 {
410 return this.setBlockState(pos, Blocks.air.getDefaultState(), 3);
411 }
412
413 /**
414 * Sets a block to air, but also plays the sound and particles and can spawn drops

Callers 15

onPlayerDestroyBlockMethod · 0.95
dispenseStackMethod · 0.95
extinguishFireMethod · 0.95
onItemUseMethod · 0.80
onItemRightClickMethod · 0.80
generateMethod · 0.80
removeBlockMethod · 0.80
onNeighborBlockChangeMethod · 0.80
func_181091_eMethod · 0.80
onNeighborBlockChangeMethod · 0.80
onBlockActivatedMethod · 0.80
onNeighborBlockChangeMethod · 0.80

Calls 2

setBlockStateMethod · 0.95
getDefaultStateMethod · 0.80

Tested by

no test coverage detected