Package forestry.core.network

Examples of forestry.core.network.PacketSocketUpdate


      return null;

    switch (GuiId.values()[id]) {
    case MultiFarmGUI:
      TileFarmPlain tile = (TileFarmPlain) getTileForestry(world, x, y, z);
      Proxies.net.sendToPlayer(new PacketSocketUpdate(PacketIds.SOCKET_UPDATE, x, y, z, tile), player);
      return new ContainerFarm(player.inventory, tile);
    default:
      return null;

    }
View Full Code Here


    case EngineCopperGUI:
      return new ContainerEngineCopper(player.inventory, (EngineCopper) getTileForestry(world, x, y, z));

    case EngineTinGUI:
      EngineTin tile = (EngineTin) getTileForestry(world, x, y, z);
      Proxies.net.sendToPlayer(new PacketSocketUpdate(PacketIds.SOCKET_UPDATE, x, y, z, tile), player);
      return new ContainerEngineTin(player.inventory, tile);

    case GeneratorGUI:
      return new ContainerGenerator(player.inventory, (MachineGenerator) getTileForestry(world, x, y, z));
View Full Code Here

      if(stack.stackSize <= 0)
        player.inventory.setItemStack(null);
      Proxies.net.inventoryChangeNotify(player);
     
      TileEntity te = (TileEntity) tile;
      Proxies.net.sendToPlayer(new PacketSocketUpdate(PacketIds.SOCKET_UPDATE, te.xCoord, te.yCoord, te.zCoord, tile), player);
    }

  }
View Full Code Here

    itemstack.damageItem(1, player);
    if (itemstack.stackSize <= 0)
      player.inventory.setItemStack(null);

    TileEntity te = (TileEntity) tile;
    Proxies.net.sendToPlayer(new PacketSocketUpdate(PacketIds.SOCKET_UPDATE, te.xCoord, te.yCoord, te.zCoord, tile), player);

  }
View Full Code Here

TOP

Related Classes of forestry.core.network.PacketSocketUpdate

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.