decode

open fun <T : PacketHandler?> decode(buf: ByteArrayDataInput): Optional<Packet<T>>
open fun <T : PacketHandler?> decode(@NotNull buf: @NotNull ByteArrayDataInput, @NotNull direction: @NotNull PacketDirection): Optional<Packet<T>>