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
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordstatic final record -
Method Summary
Modifier and TypeMethodDescription@NotNull PacketRegistry<T> @NotNull PacketRegistry<T> @NotNull PacketRegistry<T> login()default Tparse(@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)
-