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 wu
  • 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 Lwu;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 Lwu;b:Lwx;
  • 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> Lwu;<init>(Lwx;)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 Lwu;a(Lio/netty/channel/ChannelHandlerContext;Lzw;Lio/netty/buffer/ByteBuf;)V