public class ForgePacketHandler extends Object implements IPacketHandler
| Constructor and Description |
|---|
ForgePacketHandler() |
| 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
|
public void onPacketData(INetworkManager network, Packet250CustomPayload packet, Player player)
IPacketHandleronPacketData in interface IPacketHandlernetwork - The network manager this packet arrived frompacket - The packet itselfplayer - A dummy interface representing the player - it can be cast into a real player instance if needed