Class EncoderHandler<T extends PacketListener>

All Implemented Interfaces:
ChannelHandler, ChannelOutboundHandler

public class EncoderHandler<T extends PacketListener> extends MessageToByteEncoder<Packet<T>>
Mappings:
Namespace Name
named net/minecraft/network/handler/EncoderHandler
intermediary net/minecraft/class_2545
official we
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      named LOGGER Lnet/minecraft/network/handler/EncoderHandler;LOGGER:Lorg/slf4j/Logger;
      intermediary field_11721 Lnet/minecraft/class_2545;field_11721:Lorg/slf4j/Logger;
      official a Lwe;a:Lorg/slf4j/Logger;
    • state

      private final NetworkState<T extends PacketListener> state
      Mappings:
      Namespace Name Mixin selector
      named state Lnet/minecraft/network/handler/EncoderHandler;state:Lnet/minecraft/network/NetworkState;
      intermediary field_48537 Lnet/minecraft/class_2545;field_48537:Lnet/minecraft/class_9127;
      official b Lwe;b:Lwh;
  • Constructor Details

    • EncoderHandler

      public EncoderHandler(NetworkState<T> state)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/network/handler/EncoderHandler;<init>(Lnet/minecraft/network/NetworkState;)V
      intermediary <init> Lnet/minecraft/class_2545;<init>(Lnet/minecraft/class_9127;)V
      official <init> Lwe;<init>(Lwh;)V
  • Method Details

    • encode

      protected void encode(ChannelHandlerContext channelHandlerContext, Packet<T> packet, ByteBuf byteBuf) throws Exception
      Specified by:
      encode in class MessageToByteEncoder<Packet<T extends PacketListener>>
      Throws:
      Exception
      Mappings:
      Namespace Name Mixin selector
      named encode Lnet/minecraft/network/handler/EncoderHandler;encode(Lio/netty/channel/ChannelHandlerContext;Lnet/minecraft/network/packet/Packet;Lio/netty/buffer/ByteBuf;)V
      intermediary method_10838 Lnet/minecraft/class_2545;method_10838(Lio/netty/channel/ChannelHandlerContext;Lnet/minecraft/class_2596;Lio/netty/buffer/ByteBuf;)V
      official a Lwe;a(Lio/netty/channel/ChannelHandlerContext;Lzg;Lio/netty/buffer/ByteBuf;)V