类 PacketInflater

    • 字段详细资料

      • 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 a Lnx;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 Lnx;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 Lnx;c:I
        intermediary field_11623 Lnet/minecraft/class_2532;field_11623:I
        named compressionThreshold Lnet/minecraft/network/PacketInflater;compressionThreshold:I
    • 构造器详细资料

      • PacketInflater

        public PacketInflater​(int compressionThreshold)
        Mappings:
        Namespace Name Mixin selector
        official <init> Lnx;<init>(I)V
        intermediary <init> Lnet/minecraft/class_2532;<init>(I)V
        named <init> Lnet/minecraft/network/PacketInflater;<init>(I)V
    • 方法详细资料

      • decode

        protected void decode​(ChannelHandlerContext channelHandlerContext,
                              ByteBuf byteBuf,
                              List<Object> list)
                       throws Exception
        指定者:
        decode 在类中 ByteToMessageDecoder
        抛出:
        Exception
        Mappings:
        Namespace Name Mixin selector
        official decode Lnx;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
      • getCompressionThreshold

        public int getCompressionThreshold()
        Mappings:
        Namespace Name Mixin selector
        official a Lnx;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 Lnx;a(I)V
        intermediary method_10739 Lnet/minecraft/class_2532;method_10739(I)V
        named setCompressionThreshold Lnet/minecraft/network/PacketInflater;setCompressionThreshold(I)V