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
IOException
void write(PacketByteBuf buf) throws IOException
IOException
void apply(T listener)
default boolean isWritingErrorSkippable()