Examples of PacketPayload


Examples of forestry.core.network.PacketPayload

    payload.intPayload[1] = 0;
    sendSelectionChange(payload);
  }

  public void regressSelection(int index, World world) {
    PacketPayload payload = new PacketPayload(2, 0, 0);
    payload.intPayload[0] = index;
    payload.intPayload[1] = 1;
    sendSelectionChange(payload);
  }
View Full Code Here

Examples of forestry.core.network.PacketPayload

    else
      inventory.regressSecondary();
  }

  public void sendSelection(EntityPlayer player) {
    PacketPayload payload = new PacketPayload(2, 0, 0);
    payload.intPayload[0] = inventory.getPrimaryIndex();
    payload.intPayload[1] = inventory.getSecondaryIndex();
    Proxies.net.sendToPlayer(new PacketUpdate(PacketIds.GUI_SELECTION, payload), player);
  }
View Full Code Here

Examples of forestry.core.network.PacketPayload

  public PacketPayload getPacketPayload() {
    if (!ClassMap.classMappers.containsKey(this.getClass()))
      ClassMap.classMappers.put(this.getClass(), new ClassMap(this.getClass()));

    ClassMap classmap = ClassMap.classMappers.get(this.getClass());
    PacketPayload payload = new PacketPayload(classmap.intSize, classmap.floatSize, classmap.stringSize);

    try {
      classmap.setData(this, payload.intPayload, payload.floatPayload, payload.stringPayload, new IndexInPayload(0, 0, 0));
    } catch (Exception ex) {
      ex.printStackTrace();
View Full Code Here

Examples of forestry.core.network.PacketPayload

  public void clearRecipe() {
    sendRecipeClick(0, tile.getMemory().capacity);
  }

  public void sendRecipeClick(int mouseButton, int recipeIndex) {
    PacketPayload payload = new PacketPayload(2, 0, 0);
    payload.intPayload[0] = mouseButton;
    payload.intPayload[1] = recipeIndex;
    PacketUpdate packet = new PacketUpdate(PacketIds.GUI_SELECTION_CHANGE, payload);
    Proxies.net.sendToServer(packet);
  }
View Full Code Here

Examples of net.minecraft.src.buildcraft.core.network.PacketPayload

            ((PipeLogicAdvancedWood)container.pipe.logic).exclude = !((PipeLogicAdvancedWood)container.pipe.logic).exclude;
        }
       
        if (mc.theWorld.isRemote) {
         
          PacketPayload payload = container.pipe.getNetworkPacket();

        PacketAdditionalPipes packet = new PacketAdditionalPipes(NetworkID.PACKET_PIPE_DESC, payload);
        packet.posX = container.pipe.xCoord;
        packet.posY = container.pipe.yCoord;
        packet.posZ = container.pipe.zCoord;     
View Full Code Here

Examples of net.minecraft.src.buildcraft.core.network.PacketPayload

          pipe.logic.freq = 0;
        }
       
        if (mc.theWorld.isRemote) {
         
          PacketPayload payload = pipe.getNetworkPacket();

        PacketAdditionalPipes packet = new PacketAdditionalPipes(NetworkID.PACKET_PIPE_DESC, payload);
        packet.posX = pipe.xCoord;
        packet.posY = pipe.yCoord;
        packet.posZ = pipe.zCoord;     
View Full Code Here

Examples of net.minecraft.src.buildcraft.core.network.PacketPayload

                pipeLogic.distData[i] = 1;
            }
       
        if (mc.theWorld.isRemote) {
         
          PacketPayload payload = pipe.getNetworkPacket();

        PacketAdditionalPipes packet = new PacketAdditionalPipes(NetworkID.PACKET_PIPE_DESC, payload);
        packet.posX = pipe.xCoord;
        packet.posY = pipe.yCoord;
        packet.posZ = pipe.zCoord;     
View Full Code Here

Examples of net.minecraft.src.buildcraft.core.network.PacketPayload

        return null;
    }
   
    private void sendPipeDesc(TileGenericPipe tile, EntityPlayerMP player) {
     
      PacketPayload payload = tile.pipe.getNetworkPacket();
        PacketAdditionalPipes packet = new PacketAdditionalPipes(1, payload);
       
        packet.posX = tile.pipe.xCoord;
        packet.posY = tile.pipe.yCoord;
        packet.posZ = tile.pipe.zCoord;     
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.