Package lu.kbra.p4j.packets
Class PacketManager
java.lang.Object
lu.kbra.p4j.packets.PacketManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetClass(int id) Returns the class of the packet with the given id
Incoming packetintReturns the id of the packet with the given class
Outgoing packetpacketInstance(int id) packetInstance(Class<Packet> cp) packetInstance(String cp) voidtoString()
-
Constructor Details
-
PacketManager
-
-
Method Details
-
getClass
Returns the class of the packet with the given id
Incoming packet -
getId
Returns the id of the packet with the given class
Outgoing packet -
packetInstance
public Packet packetInstance(Class<Packet> cp) throws UnknownPacketException, PacketInstanceException -
packetInstance
-
packetInstance
-
register
-
toString
-