net.minecraftforge.common.network

## Class ForgePacket

- java.lang.Object
- - net.minecraftforge.common.network.ForgePacket

- Direct Known Subclasses:
    DimensionRegisterPacket, FluidIdMapPacket

      public abstract class ForgePacket
      extends Object

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static String` | `CHANNEL_ID`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `ForgePacket()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `abstract ForgePacket` | `consumePacket(byte[] data)`
    `abstract void` | `execute(INetworkManager network, EntityPlayer player)`
    `abstract byte[]` | `generatePacket()`
    `byte` | `getID()`
    `static Packet250CustomPayload[]` | `makePacketSet(ForgePacket packet)`
    `static ForgePacket` | `readPacket(INetworkManager network, byte[] payload)`

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### CHANNEL_ID

          public static final String CHANNEL_ID

      See Also:
        Constant Field Values

  - ### Constructor Detail

    - #### ForgePacket

          public ForgePacket()

  - ### Method Detail

    - #### makePacketSet

          public static Packet250CustomPayload[] makePacketSet(ForgePacket packet)

    - #### readPacket

          public static ForgePacket readPacket(INetworkManager network,
                               byte[] payload)

    - #### getID

          public byte getID()

    - #### generatePacket

          public abstract byte[] generatePacket()

    - #### consumePacket

          public abstract ForgePacket consumePacket(byte[] data)

    - #### execute

          public abstract void execute(INetworkManager network,
                     EntityPlayer player)