Class SplitterHandler

All Implemented Interfaces:
ChannelHandler, ChannelInboundHandler

public class SplitterHandler extends ByteToMessageDecoder
Mappings:
Namespace Name
named net/minecraft/network/handler/SplitterHandler
intermediary net/minecraft/class_2550
official xi
  • Field Details

    • LENGTH_BYTES

      private static final int LENGTH_BYTES
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named LENGTH_BYTES Lnet/minecraft/network/handler/SplitterHandler;LENGTH_BYTES:I
      intermediary field_45690 Lnet/minecraft/class_2550;field_45690:I
      official a Lxi;a:I
    • reusableBuf

      private final ByteBuf reusableBuf
      Mappings:
      Namespace Name Mixin selector
      named reusableBuf Lnet/minecraft/network/handler/SplitterHandler;reusableBuf:Lio/netty/buffer/ByteBuf;
      intermediary field_45691 Lnet/minecraft/class_2550;field_45691:Lio/netty/buffer/ByteBuf;
      official b Lxi;b:Lio/netty/buffer/ByteBuf;
    • packetSizeLogger

      @Nullable private final @Nullable PacketSizeLogger packetSizeLogger
      Mappings:
      Namespace Name Mixin selector
      named packetSizeLogger Lnet/minecraft/network/handler/SplitterHandler;packetSizeLogger:Lnet/minecraft/network/handler/PacketSizeLogger;
      intermediary field_45956 Lnet/minecraft/class_2550;field_45956:Lnet/minecraft/class_8762;
      official c Lxi;c:Lwd;
  • Constructor Details

    • SplitterHandler

      public SplitterHandler(@Nullable @Nullable PacketSizeLogger packetSizeLogger)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/network/handler/SplitterHandler;<init>(Lnet/minecraft/network/handler/PacketSizeLogger;)V
      intermediary <init> Lnet/minecraft/class_2550;<init>(Lnet/minecraft/class_8762;)V
      official <init> Lxi;<init>(Lwd;)V
  • Method Details

    • handlerRemoved0

      protected void handlerRemoved0(ChannelHandlerContext context)
      Overrides:
      handlerRemoved0 in class ByteToMessageDecoder
      Mappings:
      Namespace Name Mixin selector
      named handlerRemoved0 Lnet/minecraft/network/handler/SplitterHandler;handlerRemoved0(Lio/netty/channel/ChannelHandlerContext;)V
      intermediary handlerRemoved0 Lnet/minecraft/class_2550;handlerRemoved0(Lio/netty/channel/ChannelHandlerContext;)V
      official handlerRemoved0 Lxi;handlerRemoved0(Lio/netty/channel/ChannelHandlerContext;)V
    • shouldSplit

      private static boolean shouldSplit(ByteBuf source, ByteBuf sizeBuf)
      Mappings:
      Namespace Name Mixin selector
      named shouldSplit Lnet/minecraft/network/handler/SplitterHandler;shouldSplit(Lio/netty/buffer/ByteBuf;Lio/netty/buffer/ByteBuf;)Z
      intermediary method_53022 Lnet/minecraft/class_2550;method_53022(Lio/netty/buffer/ByteBuf;Lio/netty/buffer/ByteBuf;)Z
      official a Lxi;a(Lio/netty/buffer/ByteBuf;Lio/netty/buffer/ByteBuf;)Z
    • decode

      protected void decode(ChannelHandlerContext ctx, ByteBuf buf, List<Object> bytes)
      Specified by:
      decode in class ByteToMessageDecoder
      Mappings:
      Namespace Name Mixin selector
      named decode Lnet/minecraft/network/handler/SplitterHandler;decode(Lio/netty/channel/ChannelHandlerContext;Lio/netty/buffer/ByteBuf;Ljava/util/List;)V
      intermediary decode Lnet/minecraft/class_2550;decode(Lio/netty/channel/ChannelHandlerContext;Lio/netty/buffer/ByteBuf;Ljava/util/List;)V
      official decode Lxi;decode(Lio/netty/channel/ChannelHandlerContext;Lio/netty/buffer/ByteBuf;Ljava/util/List;)V