Interface PacketParser<T>
- All Known Implementing Classes:
PacketParser.Client
,PacketParser.Server
Responsible for parsing client and server packets.
You can retrieve the different packets per state (status/login/play)
from the PacketRegistry
classes.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final record
static final record
-
Method Summary
Modifier and TypeMethodDescription@NotNull PacketRegistry
<T> @NotNull PacketRegistry
<T> @NotNull PacketRegistry
<T> login()
default T
parse
(@NotNull ConnectionState connectionState, int packetId, @NotNull NetworkBuffer buffer) @NotNull PacketRegistry
<T> play()
default @NotNull PacketRegistry
<T> stateRegistry
(@NotNull ConnectionState connectionState) @NotNull PacketRegistry
<T> status()
-
Method Details
-
handshake
-
status
-
login
-
configuration
-
play
-
parse
@NotNull default T parse(@NotNull @NotNull ConnectionState connectionState, int packetId, @NotNull @NotNull NetworkBuffer buffer) -
stateRegistry
@NotNull default @NotNull PacketRegistry<T> stateRegistry(@NotNull @NotNull ConnectionState connectionState)
-