Package net.minecraft.network.handler
Class PacketDeflater
java.lang.Object
- All Implemented Interfaces:
ChannelHandler
,ChannelOutboundHandler
- Mappings:
Namespace Name named net/minecraft/network/handler/PacketDeflater
intermediary net/minecraft/class_2534
official vo
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
ChannelHandler.Sharable
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
encode
(ChannelHandlerContext channelHandlerContext, ByteBuf byteBuf, ByteBuf byteBuf2) int
void
setCompressionThreshold
(int compressionThreshold) Methods inherited from class io.netty.handler.codec.MessageToByteEncoder
acceptOutboundMessage, allocateBuffer, isPreferDirect, write
Methods inherited from class io.netty.channel.ChannelOutboundHandlerAdapter
bind, close, connect, deregister, disconnect, flush, read
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, exceptionCaught, handlerAdded, handlerRemoved, isSharable
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.netty.channel.ChannelHandler
exceptionCaught, handlerAdded, handlerRemoved
-
Field Details
-
deflateBuffer
private final byte[] deflateBuffer- Mappings:
Namespace Name Mixin selector named deflateBuffer
Lnet/minecraft/network/handler/PacketDeflater;deflateBuffer:[B
intermediary field_11637
Lnet/minecraft/class_2534;field_11637:[B
official a
Lvo;a:[B
-
deflater
- Mappings:
Namespace Name Mixin selector named deflater
Lnet/minecraft/network/handler/PacketDeflater;deflater:Ljava/util/zip/Deflater;
intermediary field_11638
Lnet/minecraft/class_2534;field_11638:Ljava/util/zip/Deflater;
official b
Lvo;b:Ljava/util/zip/Deflater;
-
compressionThreshold
private int compressionThreshold- Mappings:
Namespace Name Mixin selector named compressionThreshold
Lnet/minecraft/network/handler/PacketDeflater;compressionThreshold:I
intermediary field_11636
Lnet/minecraft/class_2534;field_11636:I
official c
Lvo;c:I
-
-
Constructor Details
-
PacketDeflater
public PacketDeflater(int compressionThreshold) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/network/handler/PacketDeflater;<init>(I)V
intermediary <init>
Lnet/minecraft/class_2534;<init>(I)V
official <init>
Lvo;<init>(I)V
-
-
Method Details
-
encode
protected void encode(ChannelHandlerContext channelHandlerContext, ByteBuf byteBuf, ByteBuf byteBuf2) - Specified by:
encode
in classMessageToByteEncoder<ByteBuf>
- Mappings:
Namespace Name Mixin selector named encode
Lnet/minecraft/network/handler/PacketDeflater;encode(Lio/netty/channel/ChannelHandlerContext;Lio/netty/buffer/ByteBuf;Lio/netty/buffer/ByteBuf;)V
intermediary method_10741
Lnet/minecraft/class_2534;method_10741(Lio/netty/channel/ChannelHandlerContext;Lio/netty/buffer/ByteBuf;Lio/netty/buffer/ByteBuf;)V
official a
Lvo;a(Lio/netty/channel/ChannelHandlerContext;Lio/netty/buffer/ByteBuf;Lio/netty/buffer/ByteBuf;)V
-
getCompressionThreshold
public int getCompressionThreshold()- Mappings:
Namespace Name Mixin selector named getCompressionThreshold
Lnet/minecraft/network/handler/PacketDeflater;getCompressionThreshold()I
intermediary method_36120
Lnet/minecraft/class_2534;method_36120()I
official a
Lvo;a()I
-
setCompressionThreshold
public void setCompressionThreshold(int compressionThreshold) - Mappings:
Namespace Name Mixin selector named setCompressionThreshold
Lnet/minecraft/network/handler/PacketDeflater;setCompressionThreshold(I)V
intermediary method_10742
Lnet/minecraft/class_2534;method_10742(I)V
official a
Lvo;a(I)V
-