T - the packet type@FunctionalInterface public interface PacketFactory<T extends com.github.steveice10.packetlib.packet.Packet,H extends com.github.steveice10.packetlib.codec.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 © 2022. All rights reserved.