Interface PacketType
- All Known Subinterfaces:
ClientboundPacketType
,ServerboundPacketType
- All Known Implementing Classes:
SimpleProtocol.DummyPacketTypes
Interface representing PLAY state packets, ordered by their packet id.
- See Also:
-
Method Summary
-
Method Details
-
getId
int getId()Returns the packet id for the implemented protocol.- Returns:
- packet id for the implemented protocol
-
getName
String getName()Returns the name of the packet, to be consistent over multiple versions.- Returns:
- name of the packet
-
direction
Direction direction()Clientbound or serverbound direction.- Returns:
- direction
-
state
Returns the protocol state the packet belongs to.- Returns:
- protocol state
-