Package net.minecraft.network.handler
Class PacketInflater
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.handler.codec.ByteToMessageDecoder
net.minecraft.network.handler.PacketInflater
- All Implemented Interfaces:
- ChannelHandler,- ChannelInboundHandler
- Mappings:
- Namespace - Name - named - net/minecraft/network/handler/PacketInflater- intermediary - net/minecraft/class_2532- official - vg
- 
Nested Class SummaryNested classes/interfaces inherited from class io.netty.handler.codec.ByteToMessageDecoderByteToMessageDecoder.CumulatorNested classes/interfaces inherited from interface io.netty.channel.ChannelHandlerChannelHandler.Sharable
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate intstatic final intprivate final Inflaterstatic final intThe maximum size allowed for a compressed packet.private booleanFields inherited from class io.netty.handler.codec.ByteToMessageDecoderCOMPOSITE_CUMULATOR, MERGE_CUMULATOR
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voiddecode(ChannelHandlerContext ctx, ByteBuf buf, List<Object> objects) private ByteBufinflate(ChannelHandlerContext context, int expectedSize) voidsetCompressionThreshold(int compressionThreshold, boolean rejectsBadPackets) private voidsetInputBuf(ByteBuf buf) Methods inherited from class io.netty.handler.codec.ByteToMessageDecoderactualReadableBytes, callDecode, channelInactive, channelRead, channelReadComplete, decodeLast, discardSomeReadBytes, handlerRemoved, handlerRemoved0, internalBuffer, isSingleDecode, setCumulator, setDiscardAfterReads, setSingleDecode, userEventTriggeredMethods inherited from class io.netty.channel.ChannelInboundHandlerAdapterchannelActive, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaughtMethods inherited from class io.netty.channel.ChannelHandlerAdapterensureNotSharable, handlerAdded, isSharableMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.netty.channel.ChannelHandlerhandlerAdded
- 
Field Details- 
field_34057public static final int field_34057- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - field_34057- Lnet/minecraft/network/handler/PacketInflater;field_34057:I- intermediary - field_34057- Lnet/minecraft/class_2532;field_34057:I- official - a- Lvg;a:I
 
- 
MAXIMUM_PACKET_SIZEpublic static final int MAXIMUM_PACKET_SIZEThe maximum size allowed for a compressed packet. Has value 8388608.- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - MAXIMUM_PACKET_SIZE- Lnet/minecraft/network/handler/PacketInflater;MAXIMUM_PACKET_SIZE:I- intermediary - field_33279- Lnet/minecraft/class_2532;field_33279:I- official - b- Lvg;b:I
 
- 
inflater- Mappings:
- Namespace - Name - Mixin selector - named - inflater- Lnet/minecraft/network/handler/PacketInflater;inflater:Ljava/util/zip/Inflater;- intermediary - field_11622- Lnet/minecraft/class_2532;field_11622:Ljava/util/zip/Inflater;- official - c- Lvg;c:Ljava/util/zip/Inflater;
 
- 
compressionThresholdprivate int compressionThreshold- Mappings:
- Namespace - Name - Mixin selector - named - compressionThreshold- Lnet/minecraft/network/handler/PacketInflater;compressionThreshold:I- intermediary - field_11623- Lnet/minecraft/class_2532;field_11623:I- official - d- Lvg;d:I
 
- 
rejectsBadPacketsprivate boolean rejectsBadPackets- Mappings:
- Namespace - Name - Mixin selector - named - rejectsBadPackets- Lnet/minecraft/network/handler/PacketInflater;rejectsBadPackets:Z- intermediary - field_34058- Lnet/minecraft/class_2532;field_34058:Z- official - e- Lvg;e:Z
 
 
- 
- 
Constructor Details- 
PacketInflaterpublic PacketInflater(int compressionThreshold, boolean rejectsBadPackets) - Mappings:
- Namespace - Name - Mixin selector - named - <init>- Lnet/minecraft/network/handler/PacketInflater;<init>(IZ)V- intermediary - <init>- Lnet/minecraft/class_2532;<init>(IZ)V- official - <init>- Lvg;<init>(IZ)V
 
 
- 
- 
Method Details- 
decodeprotected void decode(ChannelHandlerContext ctx, ByteBuf buf, List<Object> objects) throws Exception - Specified by:
- decodein class- ByteToMessageDecoder
- Throws:
- Exception
- Mappings:
- Namespace - Name - Mixin selector - named - decode- Lnet/minecraft/network/handler/PacketInflater;decode(Lio/netty/channel/ChannelHandlerContext;Lio/netty/buffer/ByteBuf;Ljava/util/List;)V- intermediary - decode- Lnet/minecraft/class_2532;decode(Lio/netty/channel/ChannelHandlerContext;Lio/netty/buffer/ByteBuf;Ljava/util/List;)V- official - decode- Lvg;decode(Lio/netty/channel/ChannelHandlerContext;Lio/netty/buffer/ByteBuf;Ljava/util/List;)V
 
- 
setInputBuf- Mappings:
- Namespace - Name - Mixin selector - named - setInputBuf- Lnet/minecraft/network/handler/PacketInflater;setInputBuf(Lio/netty/buffer/ByteBuf;)V- intermediary - method_52896- Lnet/minecraft/class_2532;method_52896(Lio/netty/buffer/ByteBuf;)V- official - a- Lvg;a(Lio/netty/buffer/ByteBuf;)V
 
- 
inflate- Throws:
- DataFormatException
- Mappings:
- Namespace - Name - Mixin selector - named - inflate- Lnet/minecraft/network/handler/PacketInflater;inflate(Lio/netty/channel/ChannelHandlerContext;I)Lio/netty/buffer/ByteBuf;- intermediary - method_52897- Lnet/minecraft/class_2532;method_52897(Lio/netty/channel/ChannelHandlerContext;I)Lio/netty/buffer/ByteBuf;- official - a- Lvg;a(Lio/netty/channel/ChannelHandlerContext;I)Lio/netty/buffer/ByteBuf;
 
- 
setCompressionThresholdpublic void setCompressionThreshold(int compressionThreshold, boolean rejectsBadPackets) - Mappings:
- Namespace - Name - Mixin selector - named - setCompressionThreshold- Lnet/minecraft/network/handler/PacketInflater;setCompressionThreshold(IZ)V- intermediary - method_10739- Lnet/minecraft/class_2532;method_10739(IZ)V- official - a- Lvg;a(IZ)V
 
 
-