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

Method breakBlock

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

Source from the content-addressed store, hash-verified

212 }
213
214 public void breakBlock(World worldIn, BlockPos pos, IBlockState state)
215 {
216 if (state.getValue(POWERED))
217 {
218 worldIn.notifyNeighborsOfStateChange(pos, this);
219 EnumFacing enumfacing = state.getValue(FACING).getFacing();
220 worldIn.notifyNeighborsOfStateChange(pos.offset(enumfacing.getOpposite()), this);
221 }
222
223 super.breakBlock(worldIn, pos, state);
224 }
225
226 public int isProvidingWeakPower(IBlockAccess worldIn, BlockPos pos, IBlockState state, EnumFacing side)
227 {

Callers

nothing calls this directly

Calls 5

getOppositeMethod · 0.95
getValueMethod · 0.65
getFacingMethod · 0.45
offsetMethod · 0.45

Tested by

no test coverage detected