Interface PacketReading.PacketReader<T>
- Enclosing class:
PacketReading
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Modifier and TypeMethodDescriptionread(PacketRegistry.PacketInfo<? extends T> packetInfo, NetworkBuffer buffer) Reads or skips a packet payload.
-
Method Details
-
read
Reads or skips a packet payload.- Returns:
- the decoded packet, or
nullto skip the remainder of the current packet
-