Class PacketInflater

All Implemented Interfaces:
ChannelHandler, ChannelInboundHandler

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

    • MAXIMUM_PACKET_SIZE

      public static final int MAXIMUM_PACKET_SIZE
      The maximum size allowed for a compressed packet. Has value 2097152.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Loc;a:I
      intermediary field_33279 Lnet/minecraft/class_2532;field_33279:I
      named MAXIMUM_PACKET_SIZE Lnet/minecraft/network/PacketInflater;MAXIMUM_PACKET_SIZE:I
    • inflater

      private final Inflater inflater
      Mappings:
      Namespace Name Mixin selector
      official b Loc;b: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 c Loc;c: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> Loc;<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
    • getCompressionThreshold

      public int getCompressionThreshold()
      Mappings:
      Namespace Name Mixin selector
      official a Loc;a()I
      intermediary method_36119 Lnet/minecraft/class_2532;method_36119()I
      named getCompressionThreshold Lnet/minecraft/network/PacketInflater;getCompressionThreshold()I
    • setCompressionThreshold

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