| Constructor and Description |
|---|
PacketDefinition(int id,
Class<T> packetClass,
PacketFactory<T> factory) |
| Modifier and Type | Method and Description |
|---|---|
PacketFactory<T> |
getFactory()
Returns the
PacketFactory of the packet. |
int |
getId()
Returns the id of the packet.
|
Class<T> |
getPacketClass()
Returns the class of the packet.
|
public PacketDefinition(int id,
Class<T> packetClass,
PacketFactory<T> factory)
public int getId()
public Class<T> getPacketClass()
public PacketFactory<T> getFactory()
PacketFactory of the packet.Copyright © 2021. All rights reserved.