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

Method onBlockAdded

src/main/java/net/minecraft/block/BlockTNT.java:32–41  ·  view source on GitHub ↗
(World worldIn, BlockPos pos, IBlockState state)

Source from the content-addressed store, hash-verified

30 }
31
32 public void onBlockAdded(World worldIn, BlockPos pos, IBlockState state)
33 {
34 super.onBlockAdded(worldIn, pos, state);
35
36 if (worldIn.isBlockPowered(pos))
37 {
38 this.onBlockDestroyedByPlayer(worldIn, pos, state.withProperty(EXPLODE, Boolean.TRUE));
39 worldIn.setBlockToAir(pos);
40 }
41 }
42
43 /**
44 * Called when a neighboring block changes.

Callers

nothing calls this directly

Calls 4

isBlockPoweredMethod · 0.80
setBlockToAirMethod · 0.80
withPropertyMethod · 0.65

Tested by

no test coverage detected