public interface Packet<T extends PacketListener>
| Modifier and Type | Method and Description |
|---|---|
void |
apply(T listener) |
default boolean |
isWritingErrorSkippable()
Returns whether a throwable in writing of this packet allows the
connection to simply skip the packet's sending than disconnecting.
|
void |
read(PacketByteBuf buf) |
void |
write(PacketByteBuf buf) |
void read(PacketByteBuf buf) throws IOException
IOExceptionvoid write(PacketByteBuf buf) throws IOException
IOExceptionvoid apply(T listener)
default boolean isWritingErrorSkippable()