public class BedrockWrapperSerializerV8 extends BedrockWrapperSerializer
| Modifier and Type | Field and Description |
|---|---|
static BedrockWrapperSerializerV8 |
INSTANCE |
log| Constructor and Description |
|---|
BedrockWrapperSerializerV8() |
| Modifier and Type | Method and Description |
|---|---|
void |
deserialize(ByteBuf compressed,
BedrockPacketCodec codec,
Collection<BedrockPacket> packets,
BedrockSession session)
Decompress packets to handle
|
void |
serialize(ByteBuf buffer,
BedrockPacketCodec codec,
Collection<BedrockPacket> packets,
int level,
BedrockSession session)
Compress packets to a buffer for sending
|
public static final BedrockWrapperSerializerV8 INSTANCE
public void serialize(ByteBuf buffer, BedrockPacketCodec codec, Collection<BedrockPacket> packets, int level, BedrockSession session)
BedrockWrapperSerializerserialize in class BedrockWrapperSerializerbuffer - buffer to write batched packets tocodec - packet codeclevel - compression levelpublic void deserialize(ByteBuf compressed, BedrockPacketCodec codec, Collection<BedrockPacket> packets, BedrockSession session)
BedrockWrapperSerializerdeserialize in class BedrockWrapperSerializercompressed - buffer to write batched packets tocodec - packet codecpackets - received packetsCopyright © 2018–2022 NukkitX. All rights reserved.