(World worldIn, BlockPos pos, IBlockState state)
| 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. |
nothing calls this directly
no test coverage detected