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 |
getAllocatorpublic 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 ByteBufpacket - The Packet to be encodedByteBufPacketEncodeException - When an error occurs during the encoding processCopyright © 2016–2024. All rights reserved.