Class PacketUnbundler

All Implemented Interfaces:
ChannelHandler, ChannelOutboundHandler

public class PacketUnbundler extends MessageToMessageEncoder<Packet<?>>
Mappings:
Namespace Name
official su
intermediary net/minecraft/class_8036
named net/minecraft/network/PacketUnbundler
  • Field Details

    • side

      private final NetworkSide side
      Mappings:
      Namespace Name Mixin selector
      official a Lsu;a:Lvc;
      intermediary field_41872 Lnet/minecraft/class_8036;field_41872:Lnet/minecraft/class_2598;
      named side Lnet/minecraft/network/PacketUnbundler;side:Lnet/minecraft/network/NetworkSide;
  • Constructor Details

    • PacketUnbundler

      public PacketUnbundler(NetworkSide side)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lsu;<init>(Lvc;)V
      intermediary <init> Lnet/minecraft/class_8036;<init>(Lnet/minecraft/class_2598;)V
      named <init> Lnet/minecraft/network/PacketUnbundler;<init>(Lnet/minecraft/network/NetworkSide;)V
  • Method Details

    • encode

      protected void encode(ChannelHandlerContext channelHandlerContext, Packet<?> packet, List<Object> list) throws Exception
      Specified by:
      encode in class MessageToMessageEncoder<Packet<?>>
      Throws:
      Exception
      Mappings:
      Namespace Name Mixin selector
      official a Lsu;a(Lio/netty/channel/ChannelHandlerContext;Lvb;Ljava/util/List;)V
      intermediary method_48319 Lnet/minecraft/class_8036;method_48319(Lio/netty/channel/ChannelHandlerContext;Lnet/minecraft/class_2596;Ljava/util/List;)V
      named encode Lnet/minecraft/network/PacketUnbundler;encode(Lio/netty/channel/ChannelHandlerContext;Lnet/minecraft/network/packet/Packet;Ljava/util/List;)V