@Override public void neighborChanged(IBlockState state, World world, BlockPos pos, Block block, BlockPos fromPos) { super.neighborChanged(state, world, pos, block, fromPos); this.checkAndDropBlock(world, pos, world.getBlockState(pos)); }
@Override @SuppressWarnings("deprecation") public void neighborChanged(IBlockState state, World world, BlockPos pos, Block neighborBlock, BlockPos fromPos) { super.neighborChanged(state, world, pos, neighborBlock, fromPos); if (world.isRemote) return; TileBase tile = getTile(world, pos); if (tile != null) tile.onNeighborChanged(); }
@Override public void neighborChanged(IBlockState state, World worldIn, BlockPos pos, Block blockIn, BlockPos fromPos) { super.neighborChanged(state, worldIn, pos, blockIn, fromPos); TileEntity tileentity = worldIn.getTileEntity(pos); if (tileentity instanceof TileEntityPetrifiedWoodChest) { ((TileEntityPetrifiedWoodChest)tileentity).updateContainingBlockInfo(); } }
@Override @ModDependentMethod(modId = LPConstants.mcmpModID) public void neighborChanged(IBlockState state, World worldIn, BlockPos pos, Block blockIn, BlockPos fromPos) { Block block = mcmpBlockAccess.getBlock(); if (block != null) { block.neighborChanged(state, worldIn, pos, blockIn, fromPos); } else { super.neighborChanged(state, worldIn, pos, blockIn, fromPos); } }
@Override @SuppressWarnings("deprecation") public void neighborChanged(IBlockState state, World worldIn, BlockPos pos, Block blockIn, BlockPos fromPos) { super.neighborChanged(state, worldIn, pos, blockIn, fromPos); if (Helpers.canHangAt(worldIn, pos, state.getValue(FACING))) return; dropBlockAsItem(worldIn, pos, state, 0); TEToolRack te = Helpers.getTE(worldIn, pos, TEToolRack.class); if (te != null) te.onBreakBlock(); worldIn.setBlockToAir(pos); }