public interface PacketType
ClientboundPacketType
,
ServerboundPacketType
Modifier and Type | Method and Description |
---|---|
Direction |
direction()
Clientbound or serverbound direction.
|
int |
getId()
Returns the packet id for the implemented protocol.
|
java.lang.String |
getName()
Returns the name of the packet, to be consistent over multiple versions.
|
default State |
state()
Returns the protocol state the packet belongs to.
|
int getId()
java.lang.String getName()
Direction direction()
default State state()