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

Method destroy

src/main/java/net/minecraft/block/BlockLeaves.java:203–207  ·  view source on GitHub ↗
(World worldIn, BlockPos pos)

Source from the content-addressed store, hash-verified

201 }
202
203 private void destroy(World worldIn, BlockPos pos)
204 {
205 this.dropBlockAsItem(worldIn, pos, worldIn.getBlockState(pos), 0);
206 worldIn.setBlockToAir(pos);
207 }
208
209 /**
210 * Returns the quantity of items to drop on block destruction.

Callers 3

updateTickMethod · 0.95
checkDisplaySettingsMethod · 0.80

Calls 3

dropBlockAsItemMethod · 0.80
setBlockToAirMethod · 0.80
getBlockStateMethod · 0.65

Tested by

no test coverage detected