public class DefaultWrapperHandler extends Object implements WrapperHandler
| Modifier and Type | Field and Description |
|---|---|
static DefaultWrapperHandler |
DEFAULT |
static DefaultWrapperHandler |
HIGH_COMPRESSION |
| Constructor and Description |
|---|
DefaultWrapperHandler(int compression) |
| Modifier and Type | Method and Description |
|---|---|
io.netty.buffer.ByteBuf |
compressPackets(com.nukkitx.network.PacketCodec<BedrockPacket> packetCodec,
BedrockPacket... packets) |
List<BedrockPacket> |
decompressPackets(com.nukkitx.network.PacketCodec<BedrockPacket> packetCodec,
io.netty.buffer.ByteBuf compressed) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompressPacketspublic static final DefaultWrapperHandler DEFAULT
public static final DefaultWrapperHandler HIGH_COMPRESSION
public io.netty.buffer.ByteBuf compressPackets(com.nukkitx.network.PacketCodec<BedrockPacket> packetCodec, BedrockPacket... packets)
compressPackets in interface WrapperHandlerpublic List<BedrockPacket> decompressPackets(com.nukkitx.network.PacketCodec<BedrockPacket> packetCodec, io.netty.buffer.ByteBuf compressed)
decompressPackets in interface WrapperHandlerCopyright © 2017–2018 NukkitX. All rights reserved.