net.minecraft.network.handler

public class PacketDeflater

extends io.netty.handler.codec.MessageToByteEncoder<io.netty.buffer.ByteBuf>

net.minecraft.network.CompressionEncoder
net.minecraft.class_2534
net.minecraft.network.handler.PacketDeflater

Field summary

Modifier and TypeField
private final byte[]
encodeBuf
field_11637
deflateBuffer
private final Deflater
deflater
field_11638
deflater
private int
threshold
field_11636
compressionThreshold

Constructor summary

ModifierConstructor
public (int compressionThreshold)

Method summary

Modifier and TypeMethod
protected void
encode(io.netty.channel.ChannelHandlerContext ctx, io.netty.buffer.ByteBuf uncompressed, io.netty.buffer.ByteBuf out)
method_10741(io.netty.channel.ChannelHandlerContext arg0, io.netty.buffer.ByteBuf arg1, io.netty.buffer.ByteBuf arg2)
encode(io.netty.channel.ChannelHandlerContext arg0, io.netty.buffer.ByteBuf arg1, io.netty.buffer.ByteBuf arg2)
public int
getThreshold()
method_36120()
getCompressionThreshold()
public void
setThreshold(int threshold)
method_10742(int arg0)
setCompressionThreshold(int compressionThreshold)
protected void
encode(io.netty.channel.ChannelHandlerContext ctx, Object uncompressed, io.netty.buffer.ByteBuf out)
encode(io.netty.channel.ChannelHandlerContext arg0, Object arg1, io.netty.buffer.ByteBuf arg2)
encode(io.netty.channel.ChannelHandlerContext ctx, Object input, io.netty.buffer.ByteBuf output)