Class PacketUnbundler

All Implemented Interfaces:
ChannelHandler, ChannelOutboundHandler

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

    • protocolKey

      private final AttributeKey<? extends PacketBundleHandler.BundlerGetter> protocolKey
      Mappings:
      Namespace Name Mixin selector
      official a Luk;a:Lio/netty/util/AttributeKey;
      intermediary field_45676 Lnet/minecraft/class_8036;field_45676:Lio/netty/util/AttributeKey;
      named protocolKey Lnet/minecraft/network/handler/PacketUnbundler;protocolKey:Lio/netty/util/AttributeKey;
  • Constructor Details

    • PacketUnbundler

      public PacketUnbundler(AttributeKey<? extends PacketBundleHandler.BundlerGetter> protocolKey)
      Mappings:
      Namespace Name Mixin selector
      official <init> Luk;<init>(Lio/netty/util/AttributeKey;)V
      intermediary <init> Lnet/minecraft/class_8036;<init>(Lio/netty/util/AttributeKey;)V
      named <init> Lnet/minecraft/network/handler/PacketUnbundler;<init>(Lio/netty/util/AttributeKey;)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 Luk;a(Lio/netty/channel/ChannelHandlerContext;Lxf;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/handler/PacketUnbundler;encode(Lio/netty/channel/ChannelHandlerContext;Lnet/minecraft/network/packet/Packet;Ljava/util/List;)V