Package net.minecraft.network.handler
Interface PacketBundleHandler
public interface PacketBundleHandler
- Mappings:
Namespace Name official xe
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) 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
Lxe;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
Lxe;b:Lxe;
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
Lxe;a(Ljava/lang/Class;Ljava/util/function/Function;Lxc;)Lxe;
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
Lxe;a(Lxf;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
Lxe;a(Lxf;)Lxe$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;
-