public class SourceRconPacketEncoder extends Object implements PacketEncoder<SourceRconPacket>
SourceRconPacket
into a ByteBuf
instance which can then be sent over the transportConstructor and Description |
---|
SourceRconPacketEncoder()
Constructor for SourceRconPacketEncoder.
|
SourceRconPacketEncoder(io.netty.buffer.ByteBufAllocator allocator)
Constructor for SourceRconPacketEncoder.
|
Modifier and Type | Method and Description |
---|---|
io.netty.buffer.ByteBuf |
encode(SourceRconPacket packet)
Encodes a
Packet into a ByteBuf |
public SourceRconPacketEncoder()
Constructor for SourceRconPacketEncoder.
public SourceRconPacketEncoder(io.netty.buffer.ByteBufAllocator allocator)
Constructor for SourceRconPacketEncoder.
allocator
- a ByteBufAllocator
objectpublic io.netty.buffer.ByteBuf encode(SourceRconPacket packet) throws PacketEncodeException
Packet
into a ByteBuf
encode
in interface PacketEncoder<SourceRconPacket>
packet
- The Packet
to be encodedByteBuf
PacketEncodeException
- When an error occurs during the encoding processCopyright © 2016–2024. All rights reserved.