Package net.minecraft.network
Interface PacketBundleHandler
public interface PacketBundleHandler
- Mappings:
Namespace Name official va
intermediary net/minecraft/class_8039
named net/minecraft/network/PacketBundleHandler
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
static interface
-
Field Summary
Modifier and TypeFieldDescriptionstatic final AttributeKey<PacketBundleHandler.BundlerGetter>
static final int
static final PacketBundleHandler
-
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
-
KEY
- Mappings:
Namespace Name Mixin selector official a
Lva;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
Lva;b:I
intermediary field_41878
Lnet/minecraft/class_8039;field_41878:I
named MAX_PACKETS
Lnet/minecraft/network/PacketBundleHandler;MAX_PACKETS:I
-
NOOP
- Mappings:
Namespace Name Mixin selector official c
Lva;c:Lva;
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
Lva;a(Ljava/lang/Class;Ljava/util/function/Function;Luy;)Lva;
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
- Mappings:
Namespace Name Mixin selector official a
Lva;a(Lvb;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
Lva;a(Lvb;)Lva$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;
-