Class PacketEncoder

All Implemented Interfaces:
ChannelHandler, ChannelOutboundHandler

public class PacketEncoder extends MessageToByteEncoder<Packet<?>>
Mappings:
Namespace Name
official qz
intermediary net/minecraft/class_2545
named net/minecraft/network/PacketEncoder
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official a Lqz;a:Lorg/slf4j/Logger;
      intermediary field_11721 Lnet/minecraft/class_2545;field_11721:Lorg/slf4j/Logger;
      named LOGGER Lnet/minecraft/network/PacketEncoder;LOGGER:Lorg/slf4j/Logger;
    • side

      private final NetworkSide side
      Mappings:
      Namespace Name Mixin selector
      official b Lqz;b:Ltd;
      intermediary field_11720 Lnet/minecraft/class_2545;field_11720:Lnet/minecraft/class_2598;
      named side Lnet/minecraft/network/PacketEncoder;side:Lnet/minecraft/network/NetworkSide;
  • Constructor Details

    • PacketEncoder

      public PacketEncoder(NetworkSide side)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lqz;<init>(Ltd;)V
      intermediary <init> Lnet/minecraft/class_2545;<init>(Lnet/minecraft/class_2598;)V
      named <init> Lnet/minecraft/network/PacketEncoder;<init>(Lnet/minecraft/network/NetworkSide;)V
  • Method Details

    • encode

      protected void encode(ChannelHandlerContext channelHandlerContext, Packet<?> packet, ByteBuf byteBuf) throws Exception
      Specified by:
      encode in class MessageToByteEncoder<Packet<?>>
      Throws:
      Exception
      Mappings:
      Namespace Name Mixin selector
      official a Lqz;a(Lio/netty/channel/ChannelHandlerContext;Ltc;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
      named encode Lnet/minecraft/network/PacketEncoder;encode(Lio/netty/channel/ChannelHandlerContext;Lnet/minecraft/network/Packet;Lio/netty/buffer/ByteBuf;)V