@Override public boolean onBlockEventReceived( World worldIn, BlockPos pos, IBlockState state, int eventID, int eventParam) { super.onBlockEventReceived(worldIn, pos, state, eventID, eventParam); TileEntity tileentity = worldIn.getTileEntity(pos); return tileentity == null ? false : tileentity.receiveClientEvent(eventID, eventParam); }
@Override public void breakBlock(World worldIn, BlockPos pos, IBlockState state) { dropItems(worldIn, pos); worldIn.removeTileEntity(pos); super.breakBlock(worldIn, pos, state); }