net.minecraftforge.common.network

## Class ForgePacketHandler

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

- All Implemented Interfaces:
    IPacketHandler

      public class ForgePacketHandler
      extends Object
      implements IPacketHandler

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ForgePacketHandler()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `onPacketData(INetworkManager network, Packet250CustomPayload packet, Player player)` Recieve a packet from one of the registered channels for this packet handler

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

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

- - ### Constructor Detail

    - #### ForgePacketHandler

          public ForgePacketHandler()

  - ### Method Detail

    - #### onPacketData

          public void onPacketData(INetworkManager network,
                          Packet250CustomPayload packet,
                          Player player)

      Description copied from interface: `IPacketHandler`
      Recieve a packet from one of the registered channels for this packet handler
      Specified by:
        `onPacketData` in interface `IPacketHandler`
      Parameters:
        `network` - The network manager this packet arrived from
        `packet` - The packet itself
        `player` - A dummy interface representing the player - it can be cast into a real player instance if needed