Package net.minecraft.network
Class PacketDeflater
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelOutboundHandlerAdapter
io.netty.handler.codec.MessageToByteEncoder
net.minecraft.network.PacketDeflater
- All Implemented Interfaces:
ChannelHandler,ChannelOutboundHandler
- Mappings:
Namespace Name official gqintermediary net/minecraft/class_2565named net/minecraft/network/PacketDeflater
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
ChannelHandler.Sharable -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidencode(ChannelHandlerContext channelHandlerContext, ByteBuf byteBuf, ByteBuf byteBuf2) voidsetCompressionThreshold(int compressionThreshold) Methods inherited from class io.netty.handler.codec.MessageToByteEncoder
acceptOutboundMessage, encode, writeMethods inherited from class io.netty.channel.ChannelOutboundHandlerAdapter
bind, close, connect, deregister, disconnect, flush, readMethods inherited from class io.netty.channel.ChannelHandlerAdapter
exceptionCaught, handlerAdded, handlerRemoved, isSharableMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.netty.channel.ChannelHandler
exceptionCaught, handlerAdded, handlerRemoved
-
Field Details
-
deflateBuffer
private final byte[] deflateBuffer- Mappings:
Namespace Name Mixin selector official aLgq;a:[Bintermediary field_11550Lnet/minecraft/class_2565;field_11550:[Bnamed deflateBufferLnet/minecraft/network/PacketDeflater;deflateBuffer:[B
-
deflater
- Mappings:
Namespace Name Mixin selector official bLgq;b:Ljava/util/zip/Deflater;intermediary field_11551Lnet/minecraft/class_2565;field_11551:Ljava/util/zip/Deflater;named deflaterLnet/minecraft/network/PacketDeflater;deflater:Ljava/util/zip/Deflater;
-
compressionThreshold
private int compressionThreshold- Mappings:
Namespace Name Mixin selector official cLgq;c:Iintermediary field_11552Lnet/minecraft/class_2565;field_11552:Inamed compressionThresholdLnet/minecraft/network/PacketDeflater;compressionThreshold:I
-
-
Constructor Details
-
PacketDeflater
public PacketDeflater(int int2)
-
-
Method Details
-
encode
protected void encode(ChannelHandlerContext channelHandlerContext, ByteBuf byteBuf, ByteBuf byteBuf2) - Mappings:
Namespace Name Mixin selector official aLgq;a(Lio/netty/channel/ChannelHandlerContext;Lio/netty/buffer/ByteBuf;Lio/netty/buffer/ByteBuf;)Vintermediary method_10586Lnet/minecraft/class_2565;method_10586(Lio/netty/channel/ChannelHandlerContext;Lio/netty/buffer/ByteBuf;Lio/netty/buffer/ByteBuf;)Vnamed encodeLnet/minecraft/network/PacketDeflater;encode(Lio/netty/channel/ChannelHandlerContext;Lio/netty/buffer/ByteBuf;Lio/netty/buffer/ByteBuf;)V
-
setCompressionThreshold
public void setCompressionThreshold(int compressionThreshold) - Mappings:
Namespace Name Mixin selector official aLgq;a(I)Vintermediary method_10585Lnet/minecraft/class_2565;method_10585(I)Vnamed setCompressionThresholdLnet/minecraft/network/PacketDeflater;setCompressionThreshold(I)V
-