Class PacketInflater

All Implemented Interfaces:
ChannelHandler, ChannelInboundHandler

public class PacketInflater
extends ByteToMessageDecoder
Mappings:
Namespace Name
official ns
intermediary net/minecraft/class_2532
named net/minecraft/network/PacketInflater
  • Field Details

    • inflater

      private final Inflater inflater
      Mappings:
      Namespace Name Mixin selector
      official a Lns;a:Ljava/util/zip/Inflater;
      intermediary field_11622 Lnet/minecraft/class_2532;field_11622:Ljava/util/zip/Inflater;
      named inflater Lnet/minecraft/network/PacketInflater;inflater:Ljava/util/zip/Inflater;
    • compressionThreshold

      private int compressionThreshold
      Mappings:
      Namespace Name Mixin selector
      official b Lns;b:I
      intermediary field_11623 Lnet/minecraft/class_2532;field_11623:I
      named compressionThreshold Lnet/minecraft/network/PacketInflater;compressionThreshold:I
  • Constructor Details

    • PacketInflater

      public PacketInflater​(int compressionThreshold)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lns;<init>(I)V
      intermediary <init> Lnet/minecraft/class_2532;<init>(I)V
      named <init> Lnet/minecraft/network/PacketInflater;<init>(I)V
  • Method Details

    • decode

      protected void decode​(ChannelHandlerContext channelHandlerContext, ByteBuf byteBuf, List<Object> list) throws Exception
      Specified by:
      decode in class ByteToMessageDecoder
      Throws:
      Exception
      Mappings:
      Namespace Name Mixin selector
      official decode Lns;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
      named decode Lnet/minecraft/network/PacketInflater;decode(Lio/netty/channel/ChannelHandlerContext;Lio/netty/buffer/ByteBuf;Ljava/util/List;)V
    • setCompressionThreshold

      public void setCompressionThreshold​(int compressionThreshold)
      Mappings:
      Namespace Name Mixin selector
      official a Lns;a(I)V
      intermediary method_10739 Lnet/minecraft/class_2532;method_10739(I)V
      named setCompressionThreshold Lnet/minecraft/network/PacketInflater;setCompressionThreshold(I)V