T - the packet type@FunctionalInterface public interface PacketFactory<T extends Packet,H extends PacketCodecHelper>
Packets.| Modifier and Type | Method and Description |
|---|---|
T |
construct(io.netty.buffer.ByteBuf buf,
H codecHelper)
Constructs a new
Packet. |
T construct(io.netty.buffer.ByteBuf buf, H codecHelper) throws IOException
Packet.buf - the input buffercodecHelper - the codec helperIOExceptionCopyright © 2023. All rights reserved.