Class DecoderHandler

All Implemented Interfaces:
ChannelHandler, ChannelInboundHandler, NetworkStateTransitionHandler

public class DecoderHandler extends ByteToMessageDecoder implements NetworkStateTransitionHandler
Mappings:
Namespace Name
official ul
intermediary net/minecraft/class_2543
named net/minecraft/network/handler/DecoderHandler
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official a Lul;a:Lorg/slf4j/Logger;
      intermediary field_11715 Lnet/minecraft/class_2543;field_11715:Lorg/slf4j/Logger;
      named LOGGER Lnet/minecraft/network/handler/DecoderHandler;LOGGER:Lorg/slf4j/Logger;
    • protocolKey

      private final AttributeKey<NetworkState.PacketHandler<?>> protocolKey
      Mappings:
      Namespace Name Mixin selector
      official b Lul;b:Lio/netty/util/AttributeKey;
      intermediary field_45677 Lnet/minecraft/class_2543;field_45677:Lio/netty/util/AttributeKey;
      named protocolKey Lnet/minecraft/network/handler/DecoderHandler;protocolKey:Lio/netty/util/AttributeKey;
  • Constructor Details

    • DecoderHandler

      public DecoderHandler(AttributeKey<NetworkState.PacketHandler<?>> protocolKey)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lul;<init>(Lio/netty/util/AttributeKey;)V
      intermediary <init> Lnet/minecraft/class_2543;<init>(Lio/netty/util/AttributeKey;)V
      named <init> Lnet/minecraft/network/handler/DecoderHandler;<init>(Lio/netty/util/AttributeKey;)V
  • Method Details

    • decode

      protected void decode(ChannelHandlerContext ctx, ByteBuf buf, List<Object> objects) throws Exception
      Specified by:
      decode in class ByteToMessageDecoder
      Throws:
      Exception
      Mappings:
      Namespace Name Mixin selector
      official decode Lul;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/handler/DecoderHandler;decode(Lio/netty/channel/ChannelHandlerContext;Lio/netty/buffer/ByteBuf;Ljava/util/List;)V