Package net.minecraft.network.handler
Class PacketDeflater
java.lang.Object
- All Implemented Interfaces:
ChannelHandler,ChannelOutboundHandler
- Mappings:
Namespace Name named net/minecraft/network/handler/PacketDeflaterintermediary net/minecraft/class_2534official vs
-
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) intvoidsetCompressionThreshold(int compressionThreshold) Methods inherited from class io.netty.handler.codec.MessageToByteEncoder
acceptOutboundMessage, allocateBuffer, isPreferDirect, writeMethods inherited from class io.netty.channel.ChannelOutboundHandlerAdapter
bind, close, connect, deregister, disconnect, flush, readMethods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, 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 named deflateBufferLnet/minecraft/network/handler/PacketDeflater;deflateBuffer:[Bintermediary field_11637Lnet/minecraft/class_2534;field_11637:[Bofficial aLvs;a:[B
-
deflater
- Mappings:
Namespace Name Mixin selector named deflaterLnet/minecraft/network/handler/PacketDeflater;deflater:Ljava/util/zip/Deflater;intermediary field_11638Lnet/minecraft/class_2534;field_11638:Ljava/util/zip/Deflater;official bLvs;b:Ljava/util/zip/Deflater;
-
compressionThreshold
private int compressionThreshold- Mappings:
Namespace Name Mixin selector named compressionThresholdLnet/minecraft/network/handler/PacketDeflater;compressionThreshold:Iintermediary field_11636Lnet/minecraft/class_2534;field_11636:Iofficial cLvs;c:I
-
-
Constructor Details
-
PacketDeflater
public PacketDeflater(int compressionThreshold) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/network/handler/PacketDeflater;<init>(I)Vintermediary <init>Lnet/minecraft/class_2534;<init>(I)Vofficial <init>Lvs;<init>(I)V
-
-
Method Details
-
encode
protected void encode(ChannelHandlerContext channelHandlerContext, ByteBuf byteBuf, ByteBuf byteBuf2) - Specified by:
encodein classMessageToByteEncoder<ByteBuf>- Mappings:
Namespace Name Mixin selector named encodeLnet/minecraft/network/handler/PacketDeflater;encode(Lio/netty/channel/ChannelHandlerContext;Lio/netty/buffer/ByteBuf;Lio/netty/buffer/ByteBuf;)Vintermediary method_10741Lnet/minecraft/class_2534;method_10741(Lio/netty/channel/ChannelHandlerContext;Lio/netty/buffer/ByteBuf;Lio/netty/buffer/ByteBuf;)Vofficial aLvs;a(Lio/netty/channel/ChannelHandlerContext;Lio/netty/buffer/ByteBuf;Lio/netty/buffer/ByteBuf;)V
-
getCompressionThreshold
public int getCompressionThreshold()- Mappings:
Namespace Name Mixin selector named getCompressionThresholdLnet/minecraft/network/handler/PacketDeflater;getCompressionThreshold()Iintermediary method_36120Lnet/minecraft/class_2534;method_36120()Iofficial aLvs;a()I
-
setCompressionThreshold
public void setCompressionThreshold(int compressionThreshold) - Mappings:
Namespace Name Mixin selector named setCompressionThresholdLnet/minecraft/network/handler/PacketDeflater;setCompressionThreshold(I)Vintermediary method_10742Lnet/minecraft/class_2534;method_10742(I)Vofficial aLvs;a(I)V
-