Interface PacketBundleHandler


public interface PacketBundleHandler
Mappings:
Namespace Name
official un
intermediary net/minecraft/class_8039
named net/minecraft/network/PacketBundleHandler
  • Field Details

    • KEY

      Mappings:
      Namespace Name Mixin selector
      official a Lun;a:Lio/netty/util/AttributeKey;
      intermediary field_41877 Lnet/minecraft/class_8039;field_41877:Lio/netty/util/AttributeKey;
      named KEY Lnet/minecraft/network/PacketBundleHandler;KEY:Lio/netty/util/AttributeKey;
    • MAX_PACKETS

      static final int MAX_PACKETS
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lun;b:I
      intermediary field_41878 Lnet/minecraft/class_8039;field_41878:I
      named MAX_PACKETS Lnet/minecraft/network/PacketBundleHandler;MAX_PACKETS:I
    • NOOP

      static final PacketBundleHandler NOOP
      Mappings:
      Namespace Name Mixin selector
      official c Lun;c:Lun;
      intermediary field_41879 Lnet/minecraft/class_8039;field_41879:Lnet/minecraft/class_8039;
      named NOOP Lnet/minecraft/network/PacketBundleHandler;NOOP:Lnet/minecraft/network/PacketBundleHandler;
  • Method Details

    • create

      static <T extends PacketListener, P extends BundlePacket<T>> PacketBundleHandler create(Class<P> bundlePacketType, Function<Iterable<Packet<T>>,P> bundleFunction, BundleSplitterPacket<T> splitter)
      Mappings:
      Namespace Name Mixin selector
      official a Lun;a(Ljava/lang/Class;Ljava/util/function/Function;Lul;)Lun;
      intermediary method_48325 Lnet/minecraft/class_8039;method_48325(Ljava/lang/Class;Ljava/util/function/Function;Lnet/minecraft/class_8037;)Lnet/minecraft/class_8039;
      named create Lnet/minecraft/network/PacketBundleHandler;create(Ljava/lang/Class;Ljava/util/function/Function;Lnet/minecraft/network/packet/BundleSplitterPacket;)Lnet/minecraft/network/PacketBundleHandler;
    • forEachPacket

      void forEachPacket(Packet<?> packet, Consumer<Packet<?>> consumer)
      Mappings:
      Namespace Name Mixin selector
      official a Lun;a(Luo;Ljava/util/function/Consumer;)V
      intermediary method_48327 Lnet/minecraft/class_8039;method_48327(Lnet/minecraft/class_2596;Ljava/util/function/Consumer;)V
      named forEachPacket Lnet/minecraft/network/PacketBundleHandler;forEachPacket(Lnet/minecraft/network/packet/Packet;Ljava/util/function/Consumer;)V
    • createBundler

      Mappings:
      Namespace Name Mixin selector
      official a Lun;a(Luo;)Lun$a;
      intermediary method_48326 Lnet/minecraft/class_8039;method_48326(Lnet/minecraft/class_2596;)Lnet/minecraft/class_8039$class_8040;
      named createBundler Lnet/minecraft/network/PacketBundleHandler;createBundler(Lnet/minecraft/network/packet/Packet;)Lnet/minecraft/network/PacketBundleHandler$Bundler;