类 PacketInflater
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelInboundHandlerAdapter
-
- io.netty.handler.codec.ByteToMessageDecoder
-
- net.minecraft.network.PacketInflater
-
- 所有已实现的接口:
ChannelHandler,ChannelInboundHandler
public class PacketInflater extends ByteToMessageDecoder
- Mappings:
Namespace Name official nxintermediary net/minecraft/class_2532named net/minecraft/network/PacketInflater
-
-
嵌套类概要
-
从类继承的嵌套类/接口 io.netty.handler.codec.ByteToMessageDecoder
ByteToMessageDecoder.Cumulator
-
从接口继承的嵌套类/接口 io.netty.channel.ChannelHandler
ChannelHandler.Sharable
-
-
字段概要
字段 修饰符和类型 字段 说明 private intcompressionThresholdprivate Inflaterinflaterstatic intMAXIMUM_PACKET_SIZEThe maximum size allowed for a compressed packet.-
从类继承的字段 io.netty.handler.codec.ByteToMessageDecoder
COMPOSITE_CUMULATOR, MERGE_CUMULATOR
-
-
构造器概要
构造器 构造器 说明 PacketInflater(int compressionThreshold)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected voiddecode(ChannelHandlerContext channelHandlerContext, ByteBuf byteBuf, List<Object> list)intgetCompressionThreshold()voidsetCompressionThreshold(int compressionThreshold)-
从类继承的方法 io.netty.handler.codec.ByteToMessageDecoder
actualReadableBytes, callDecode, channelInactive, channelRead, channelReadComplete, decodeLast, discardSomeReadBytes, handlerRemoved, handlerRemoved0, internalBuffer, isSingleDecode, setCumulator, setDiscardAfterReads, setSingleDecode, userEventTriggered
-
从类继承的方法 io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught
-
从类继承的方法 io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, isSharable
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 io.netty.channel.ChannelHandler
handlerAdded
-
-
-
-
字段详细资料
-
MAXIMUM_PACKET_SIZE
public static final int MAXIMUM_PACKET_SIZE
The maximum size allowed for a compressed packet. Has value 2097152.- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official aLnx;a:Iintermediary field_33279Lnet/minecraft/class_2532;field_33279:Inamed MAXIMUM_PACKET_SIZELnet/minecraft/network/PacketInflater;MAXIMUM_PACKET_SIZE:I
-
inflater
private final Inflater inflater
- Mappings:
Namespace Name Mixin selector official bLnx;b:Ljava/util/zip/Inflater;intermediary field_11622Lnet/minecraft/class_2532;field_11622:Ljava/util/zip/Inflater;named inflaterLnet/minecraft/network/PacketInflater;inflater:Ljava/util/zip/Inflater;
-
compressionThreshold
private int compressionThreshold
- Mappings:
Namespace Name Mixin selector official cLnx;c:Iintermediary field_11623Lnet/minecraft/class_2532;field_11623:Inamed compressionThresholdLnet/minecraft/network/PacketInflater;compressionThreshold:I
-
-
方法详细资料
-
decode
protected void decode(ChannelHandlerContext channelHandlerContext, ByteBuf byteBuf, List<Object> list) throws Exception
- 指定者:
decode在类中ByteToMessageDecoder- 抛出:
Exception- Mappings:
Namespace Name Mixin selector official decodeLnx;decode(Lio/netty/channel/ChannelHandlerContext;Lio/netty/buffer/ByteBuf;Ljava/util/List;)Vintermediary decodeLnet/minecraft/class_2532;decode(Lio/netty/channel/ChannelHandlerContext;Lio/netty/buffer/ByteBuf;Ljava/util/List;)Vnamed decodeLnet/minecraft/network/PacketInflater;decode(Lio/netty/channel/ChannelHandlerContext;Lio/netty/buffer/ByteBuf;Ljava/util/List;)V
-
getCompressionThreshold
public int getCompressionThreshold()
- Mappings:
Namespace Name Mixin selector official aLnx;a()Iintermediary method_36119Lnet/minecraft/class_2532;method_36119()Inamed getCompressionThresholdLnet/minecraft/network/PacketInflater;getCompressionThreshold()I
-
setCompressionThreshold
public void setCompressionThreshold(int compressionThreshold)
- Mappings:
Namespace Name Mixin selector official aLnx;a(I)Vintermediary method_10739Lnet/minecraft/class_2532;method_10739(I)Vnamed setCompressionThresholdLnet/minecraft/network/PacketInflater;setCompressionThreshold(I)V
-
-