Package net.minecraft.network.handler
Interface PacketBundleHandler
public interface PacketBundleHandler
- Mappings:
Namespace Name official vc
intermediary net/minecraft/class_8039
named net/minecraft/network/handler/PacketBundleHandler
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
static interface
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends PacketListener,
P extends BundlePacket<T>>
PacketBundleHandlercreate
(Class<P> bundlePacketType, Function<Iterable<Packet<T>>, P> bundleFunction, BundleSplitterPacket<T> splitter) @Nullable PacketBundleHandler.Bundler
createBundler
(Packet<?> splitter) void
forEachPacket
(Packet<?> packet, Consumer<Packet<?>> consumer)
-
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
- 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
- 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
- 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;
-