Class DecoderHandler

java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.handler.codec.ByteToMessageDecoder
net.minecraft.network.DecoderHandler
All Implemented Interfaces:
io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler

public class DecoderHandler
extends io.netty.handler.codec.ByteToMessageDecoder
Mappings:
Namespace Name
official nx
intermediary net/minecraft/class_2543
named net/minecraft/network/DecoderHandler
  • Nested Class Summary

    Nested classes/interfaces inherited from class io.netty.handler.codec.ByteToMessageDecoder

    io.netty.handler.codec.ByteToMessageDecoder.Cumulator

    Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler

    io.netty.channel.ChannelHandler.Sharable
  • Field Summary

    Fields
    Modifier and Type Field Description
    private static Logger LOGGER  
    private static Marker MARKER  
    private NetworkSide side  

    Fields inherited from class io.netty.handler.codec.ByteToMessageDecoder

    COMPOSITE_CUMULATOR, MERGE_CUMULATOR
  • Constructor Summary

    Constructors
    Constructor Description
    DecoderHandler​(NetworkSide side)  
  • Method Summary

    Modifier and Type Method Description
    protected void decode​(io.netty.channel.ChannelHandlerContext channelHandlerContext, io.netty.buffer.ByteBuf byteBuf, List<Object> list)  

    Methods inherited from class io.netty.handler.codec.ByteToMessageDecoder

    actualReadableBytes, callDecode, channelInactive, channelRead, channelReadComplete, decodeLast, discardSomeReadBytes, handlerRemoved, handlerRemoved0, internalBuffer, isSingleDecode, setCumulator, setDiscardAfterReads, setSingleDecode, userEventTriggered

    Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter

    channelActive, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught

    Methods inherited from class io.netty.channel.ChannelHandlerAdapter

    ensureNotSharable, handlerAdded, isSharable

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.netty.channel.ChannelHandler

    handlerAdded
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official a Lnx;a:Lorg/apache/logging/log4j/Logger;
      intermediary field_11715 Lnet/minecraft/class_2543;field_11715:Lorg/apache/logging/log4j/Logger;
      named LOGGER Lnet/minecraft/network/DecoderHandler;LOGGER:Lorg/apache/logging/log4j/Logger;
    • MARKER

      private static final Marker MARKER
      Mappings:
      Namespace Name Mixin selector
      official b Lnx;b:Lorg/apache/logging/log4j/Marker;
      intermediary field_11713 Lnet/minecraft/class_2543;field_11713:Lorg/apache/logging/log4j/Marker;
      named MARKER Lnet/minecraft/network/DecoderHandler;MARKER:Lorg/apache/logging/log4j/Marker;
    • side

      private final NetworkSide side
      Mappings:
      Namespace Name Mixin selector
      official c Lnx;c:Lpb;
      intermediary field_11714 Lnet/minecraft/class_2543;field_11714:Lnet/minecraft/class_2598;
      named side Lnet/minecraft/network/DecoderHandler;side:Lnet/minecraft/network/NetworkSide;
  • Constructor Details

    • DecoderHandler

      public DecoderHandler​(NetworkSide side)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lnx;<init>(Lpb;)V
      intermediary <init> Lnet/minecraft/class_2543;<init>(Lnet/minecraft/class_2598;)V
      named <init> Lnet/minecraft/network/DecoderHandler;<init>(Lnet/minecraft/network/NetworkSide;)V
  • Method Details

    • decode

      protected void decode​(io.netty.channel.ChannelHandlerContext channelHandlerContext, io.netty.buffer.ByteBuf byteBuf, List<Object> list) throws Exception
      Specified by:
      decode in class io.netty.handler.codec.ByteToMessageDecoder
      Throws:
      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_2543;decode(Lio/netty/channel/ChannelHandlerContext;Lio/netty/buffer/ByteBuf;Ljava/util/List;)V
      named decode Lnet/minecraft/network/DecoderHandler;decode(Lio/netty/channel/ChannelHandlerContext;Lio/netty/buffer/ByteBuf;Ljava/util/List;)V