Interface PacketBundleHandler


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

    • MAX_PACKETS

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

      static final PacketBundleHandler NOOP
      Mappings:
      Namespace Name Mixin selector
      official b Lvc;b:Lvc;
      intermediary field_41879 Lnet/minecraft/class_8039;field_41879:Lnet/minecraft/class_8039;
      named NOOP Lnet/minecraft/network/handler/PacketBundleHandler;NOOP:Lnet/minecraft/network/handler/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 Lvc;a(Ljava/lang/Class;Ljava/util/function/Function;Lva;)Lvc;
      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/handler/PacketBundleHandler;create(Ljava/lang/Class;Ljava/util/function/Function;Lnet/minecraft/network/packet/BundleSplitterPacket;)Lnet/minecraft/network/handler/PacketBundleHandler;
    • forEachPacket

      void forEachPacket(Packet<?> packet, Consumer<Packet<?>> consumer)
      Mappings:
      Namespace Name Mixin selector
      official a Lvc;a(Lvd;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/handler/PacketBundleHandler;forEachPacket(Lnet/minecraft/network/packet/Packet;Ljava/util/function/Consumer;)V
    • createBundler

      @Nullable @Nullable PacketBundleHandler.Bundler createBundler(Packet<?> splitter)
      Mappings:
      Namespace Name Mixin selector
      official a Lvc;a(Lvd;)Lvc$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/handler/PacketBundleHandler;createBundler(Lnet/minecraft/network/packet/Packet;)Lnet/minecraft/network/handler/PacketBundleHandler$Bundler;