Class PacketDeflater

All Implemented Interfaces:
ChannelHandler, ChannelOutboundHandler

public class PacketDeflater extends MessageToByteEncoder<ByteBuf>
Mappings:
Namespace Name
official sl
intermediary net/minecraft/class_2534
named net/minecraft/network/handler/PacketDeflater
  • Field Details

    • deflateBuffer

      private final byte[] deflateBuffer
      Mappings:
      Namespace Name Mixin selector
      official a Lsl;a:[B
      intermediary field_11637 Lnet/minecraft/class_2534;field_11637:[B
      named deflateBuffer Lnet/minecraft/network/handler/PacketDeflater;deflateBuffer:[B
    • deflater

      private final Deflater deflater
      Mappings:
      Namespace Name Mixin selector
      official b Lsl;b:Ljava/util/zip/Deflater;
      intermediary field_11638 Lnet/minecraft/class_2534;field_11638:Ljava/util/zip/Deflater;
      named deflater Lnet/minecraft/network/handler/PacketDeflater;deflater:Ljava/util/zip/Deflater;
    • compressionThreshold

      private int compressionThreshold
      Mappings:
      Namespace Name Mixin selector
      official c Lsl;c:I
      intermediary field_11636 Lnet/minecraft/class_2534;field_11636:I
      named compressionThreshold Lnet/minecraft/network/handler/PacketDeflater;compressionThreshold:I
  • Constructor Details

    • PacketDeflater

      public PacketDeflater(int compressionThreshold)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lsl;<init>(I)V
      intermediary <init> Lnet/minecraft/class_2534;<init>(I)V
      named <init> Lnet/minecraft/network/handler/PacketDeflater;<init>(I)V
  • Method Details

    • encode

      protected void encode(ChannelHandlerContext channelHandlerContext, ByteBuf byteBuf, ByteBuf byteBuf2)
      Specified by:
      encode in class MessageToByteEncoder<ByteBuf>
      Mappings:
      Namespace Name Mixin selector
      official a Lsl;a(Lio/netty/channel/ChannelHandlerContext;Lio/netty/buffer/ByteBuf;Lio/netty/buffer/ByteBuf;)V
      intermediary method_10741 Lnet/minecraft/class_2534;method_10741(Lio/netty/channel/ChannelHandlerContext;Lio/netty/buffer/ByteBuf;Lio/netty/buffer/ByteBuf;)V
      named encode Lnet/minecraft/network/handler/PacketDeflater;encode(Lio/netty/channel/ChannelHandlerContext;Lio/netty/buffer/ByteBuf;Lio/netty/buffer/ByteBuf;)V
    • getCompressionThreshold

      public int getCompressionThreshold()
      Mappings:
      Namespace Name Mixin selector
      official a Lsl;a()I
      intermediary method_36120 Lnet/minecraft/class_2534;method_36120()I
      named getCompressionThreshold Lnet/minecraft/network/handler/PacketDeflater;getCompressionThreshold()I
    • setCompressionThreshold

      public void setCompressionThreshold(int compressionThreshold)
      Mappings:
      Namespace Name Mixin selector
      official a Lsl;a(I)V
      intermediary method_10742 Lnet/minecraft/class_2534;method_10742(I)V
      named setCompressionThreshold Lnet/minecraft/network/handler/PacketDeflater;setCompressionThreshold(I)V