类 PacketDeflater
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelOutboundHandlerAdapter
-
- io.netty.handler.codec.MessageToByteEncoder<ByteBuf>
-
- net.minecraft.network.PacketDeflater
-
- 所有已实现的接口:
ChannelHandler,ChannelOutboundHandler
public class PacketDeflater extends MessageToByteEncoder<ByteBuf>
- Mappings:
Namespace Name official nyintermediary net/minecraft/class_2534named net/minecraft/network/PacketDeflater
-
-
嵌套类概要
-
从接口继承的嵌套类/接口 io.netty.channel.ChannelHandler
ChannelHandler.Sharable
-
-
字段概要
字段 修饰符和类型 字段 说明 private intcompressionThresholdprivate byte[]deflateBufferprivate Deflaterdeflater
-
构造器概要
构造器 构造器 说明 PacketDeflater(int compressionThreshold)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected voidencode(ChannelHandlerContext channelHandlerContext, ByteBuf byteBuf, ByteBuf byteBuf2)intgetCompressionThreshold()voidsetCompressionThreshold(int compressionThreshold)-
从类继承的方法 io.netty.handler.codec.MessageToByteEncoder
acceptOutboundMessage, allocateBuffer, isPreferDirect, write
-
从类继承的方法 io.netty.channel.ChannelOutboundHandlerAdapter
bind, close, connect, deregister, disconnect, flush, read
-
从类继承的方法 io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, exceptionCaught, handlerAdded, handlerRemoved, isSharable
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 io.netty.channel.ChannelHandler
exceptionCaught, handlerAdded, handlerRemoved
-
-
-
-
字段详细资料
-
deflateBuffer
private final byte[] deflateBuffer
- Mappings:
Namespace Name Mixin selector official aLny;a:[Bintermediary field_11637Lnet/minecraft/class_2534;field_11637:[Bnamed deflateBufferLnet/minecraft/network/PacketDeflater;deflateBuffer:[B
-
deflater
private final Deflater deflater
- Mappings:
Namespace Name Mixin selector official bLny;b:Ljava/util/zip/Deflater;intermediary field_11638Lnet/minecraft/class_2534;field_11638:Ljava/util/zip/Deflater;named deflaterLnet/minecraft/network/PacketDeflater;deflater:Ljava/util/zip/Deflater;
-
compressionThreshold
private int compressionThreshold
- Mappings:
Namespace Name Mixin selector official cLny;c:Iintermediary field_11636Lnet/minecraft/class_2534;field_11636:Inamed compressionThresholdLnet/minecraft/network/PacketDeflater;compressionThreshold:I
-
-
方法详细资料
-
encode
protected void encode(ChannelHandlerContext channelHandlerContext, ByteBuf byteBuf, ByteBuf byteBuf2)
- 指定者:
encode在类中MessageToByteEncoder<ByteBuf>- Mappings:
Namespace Name Mixin selector official aLny;a(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;)Vnamed encodeLnet/minecraft/network/PacketDeflater;encode(Lio/netty/channel/ChannelHandlerContext;Lio/netty/buffer/ByteBuf;Lio/netty/buffer/ByteBuf;)V
-
getCompressionThreshold
public int getCompressionThreshold()
- Mappings:
Namespace Name Mixin selector official aLny;a()Iintermediary method_36120Lnet/minecraft/class_2534;method_36120()Inamed getCompressionThresholdLnet/minecraft/network/PacketDeflater;getCompressionThreshold()I
-
setCompressionThreshold
public void setCompressionThreshold(int compressionThreshold)
- Mappings:
Namespace Name Mixin selector official aLny;a(I)Vintermediary method_10742Lnet/minecraft/class_2534;method_10742(I)Vnamed setCompressionThresholdLnet/minecraft/network/PacketDeflater;setCompressionThreshold(I)V
-
-