Package net.minecraft.network
Class CompressionDecoder
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.handler.codec.ByteToMessageDecoder
net.minecraft.network.CompressionDecoder
- All Implemented Interfaces:
- io.netty.channel.ChannelHandler,- io.netty.channel.ChannelInboundHandler
public class CompressionDecoder
extends io.netty.handler.codec.ByteToMessageDecoder
- 
Nested Class SummaryNested classes/interfaces inherited from class io.netty.handler.codec.ByteToMessageDecoderio.netty.handler.codec.ByteToMessageDecoder.CumulatorNested classes/interfaces inherited from interface io.netty.channel.ChannelHandlerio.netty.channel.ChannelHandler.Sharable
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final Inflaterstatic final intstatic final intprivate intprivate booleanFields inherited from class io.netty.handler.codec.ByteToMessageDecoderCOMPOSITE_CUMULATOR, MERGE_CUMULATOR
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voiddecode(io.netty.channel.ChannelHandlerContext p_129441_, io.netty.buffer.ByteBuf p_129442_, List<Object> p_129443_) private io.netty.buffer.ByteBufinflate(io.netty.channel.ChannelHandlerContext p_300050_, int p_298909_) voidsetThreshold(int p_182678_, boolean p_182679_) private voidsetupInflaterInput(io.netty.buffer.ByteBuf p_299798_) 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- 
MAXIMUM_COMPRESSED_LENGTHpublic static final int MAXIMUM_COMPRESSED_LENGTH- See Also:
 
- 
MAXIMUM_UNCOMPRESSED_LENGTHpublic static final int MAXIMUM_UNCOMPRESSED_LENGTH- See Also:
 
- 
inflater
- 
thresholdprivate int threshold
- 
validateDecompressedprivate boolean validateDecompressed
 
- 
- 
Constructor Details- 
CompressionDecoderpublic CompressionDecoder(int p_182675_, boolean p_182676_) 
 
- 
- 
Method Details- 
decodeprotected void decode(io.netty.channel.ChannelHandlerContext p_129441_, io.netty.buffer.ByteBuf p_129442_, List<Object> p_129443_) throws Exception - Specified by:
- decodein class- io.netty.handler.codec.ByteToMessageDecoder
- Throws:
- Exception
 
- 
setupInflaterInputprivate void setupInflaterInput(io.netty.buffer.ByteBuf p_299798_) 
- 
inflateprivate io.netty.buffer.ByteBuf inflate(io.netty.channel.ChannelHandlerContext p_300050_, int p_298909_) throws DataFormatException - Throws:
- DataFormatException
 
- 
setThresholdpublic void setThreshold(int p_182678_, boolean p_182679_) 
 
-