Class PacketUnbundler

All Implemented Interfaces:
ChannelHandler, ChannelOutboundHandler

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

    • side

      private final NetworkSide side
      Mappings:
      Namespace Name Mixin selector
      official a Lsh;a:Lup;
      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> Lsh;<init>(Lup;)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 Lsh;a(Lio/netty/channel/ChannelHandlerContext;Luo;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