public class SourceQuerySinglePacketEncoder extends AbstractPacketEncoder<SourceQuerySinglePacket>
SourceQuerySinglePacketEncoder class.
Constructor and Description |
---|
SourceQuerySinglePacketEncoder(io.netty.buffer.ByteBufAllocator allocator)
Constructor for SourceQuerySinglePacketEncoder.
|
Modifier and Type | Method and Description |
---|---|
io.netty.buffer.ByteBuf |
encode(SourceQuerySinglePacket packet)
Encodes a
Packet into a ByteBuf |
getAllocator
public SourceQuerySinglePacketEncoder(io.netty.buffer.ByteBufAllocator allocator)
Constructor for SourceQuerySinglePacketEncoder.
allocator
- a ByteBufAllocator
objectpublic io.netty.buffer.ByteBuf encode(SourceQuerySinglePacket packet) throws PacketEncodeException
Packet
into a ByteBuf
packet
- The Packet
to be encodedByteBuf
PacketEncodeException
- When an error occurs during the encoding processCopyright © 2016–2024. All rights reserved.