Exemplo n.º 1
0
 @Override
 public void onBlockPlacedBy(
     World world, int x, int y, int z, EntityLivingBase entity, ItemStack stack) {
   TileEntity tile = world.getTileEntity(x, y, z);
   if (tile instanceof IFaceable) {
     ((IFaceable) tile)
         .setFacing(
             ForgeDirection.getOrientation(
                 BlockPistonBase.determineOrientation(world, x, y, z, entity)));
     Packets.updateAround(tile, new PacketRenderRefresh(x, y, z));
   }
 }
 @Override
 public void sendGUINetworkData(ContainerMariculture container, EntityPlayer player) {
   Packets.updateGUI(player, container, 0, mode.ordinal());
   Packets.updateGUI(player, container, 1, setting.ordinal());
   Packets.updateGUI(player, container, 2, processed);
   Packets.updateGUI(player, container, 3, tank.getFluidID());
   Packets.updateGUI(player, container, 4, tank.getFluidAmount());
   Packets.updateGUI(player, container, 5, tank.getCapacity());
 }