Package net.minecraft.network
Class NetworkState.InternalPacketHandler<T extends PacketListener>
java.lang.Object
net.minecraft.network.NetworkState.InternalPacketHandler<T>
- Enclosing class:
NetworkState
- Mappings:
Namespace Name official sn$b
intermediary net/minecraft/class_2539$class_4532
named net/minecraft/network/NetworkState$InternalPacketHandler
-
Field Summary
Modifier and TypeFieldDescriptionprivate PacketBundleHandler
private static final Logger
private final List<Function<PacketByteBuf,
? extends Packet<? super T>>> (package private) final Object2IntMap<Class<? extends Packet<? super T>>>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
createPacket
(int id, PacketByteBuf buf) int
<P extends Packet<? super T>>
NetworkState.InternalPacketHandler<T>register
(Class<P> type, Function<PacketByteBuf, P> packetFactory) <P extends BundlePacket<T>>
NetworkState.InternalPacketHandler<T>
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official a
Lsn$b;a:Lorg/slf4j/Logger;
intermediary field_36381
Lnet/minecraft/class_2539$class_4532;field_36381:Lorg/slf4j/Logger;
named LOGGER
Lnet/minecraft/network/NetworkState$InternalPacketHandler;LOGGER:Lorg/slf4j/Logger;
-
packetIds
- Mappings:
Namespace Name Mixin selector official b
Lsn$b;b:Lit/unimi/dsi/fastutil/objects/Object2IntMap;
intermediary field_20596
Lnet/minecraft/class_2539$class_4532;field_20596:Lit/unimi/dsi/fastutil/objects/Object2IntMap;
named packetIds
Lnet/minecraft/network/NetworkState$InternalPacketHandler;packetIds:Lit/unimi/dsi/fastutil/objects/Object2IntMap;
-
packetFactories
private final List<Function<PacketByteBuf,? extends Packet<? super T extends PacketListener>>> packetFactories- Mappings:
Namespace Name Mixin selector official c
Lsn$b;c:Ljava/util/List;
intermediary field_20597
Lnet/minecraft/class_2539$class_4532;field_20597:Ljava/util/List;
named packetFactories
Lnet/minecraft/network/NetworkState$InternalPacketHandler;packetFactories:Ljava/util/List;
-
bundler
- Mappings:
Namespace Name Mixin selector official d
Lsn$b;d:Lvc;
intermediary field_41867
Lnet/minecraft/class_2539$class_4532;field_41867:Lnet/minecraft/class_8039;
named bundler
Lnet/minecraft/network/NetworkState$InternalPacketHandler;bundler:Lnet/minecraft/network/handler/PacketBundleHandler;
-
bundlePacketTypes
- Mappings:
Namespace Name Mixin selector official e
Lsn$b;e:Ljava/util/Set;
intermediary field_41868
Lnet/minecraft/class_2539$class_4532;field_41868:Ljava/util/Set;
named bundlePacketTypes
Lnet/minecraft/network/NetworkState$InternalPacketHandler;bundlePacketTypes:Ljava/util/Set;
-
-
Constructor Details
-
InternalPacketHandler
InternalPacketHandler()
-
-
Method Details
-
register
public <P extends Packet<? super T>> NetworkState.InternalPacketHandler<T> register(Class<P> type, Function<PacketByteBuf, P> packetFactory) - Mappings:
Namespace Name Mixin selector official a
Lsn$b;a(Ljava/lang/Class;Ljava/util/function/Function;)Lsn$b;
intermediary method_22313
Lnet/minecraft/class_2539$class_4532;method_22313(Ljava/lang/Class;Ljava/util/function/Function;)Lnet/minecraft/class_2539$class_4532;
named register
Lnet/minecraft/network/NetworkState$InternalPacketHandler;register(Ljava/lang/Class;Ljava/util/function/Function;)Lnet/minecraft/network/NetworkState$InternalPacketHandler;
-
registerBundlePacket
public <P extends BundlePacket<T>> NetworkState.InternalPacketHandler<T> registerBundlePacket(Class<P> bundlePacketType, Function<Iterable<Packet<T>>, P> bundleFunction) - Mappings:
Namespace Name Mixin selector official b
Lsn$b;b(Ljava/lang/Class;Ljava/util/function/Function;)Lsn$b;
intermediary method_48317
Lnet/minecraft/class_2539$class_4532;method_48317(Ljava/lang/Class;Ljava/util/function/Function;)Lnet/minecraft/class_2539$class_4532;
named registerBundlePacket
Lnet/minecraft/network/NetworkState$InternalPacketHandler;registerBundlePacket(Ljava/lang/Class;Ljava/util/function/Function;)Lnet/minecraft/network/NetworkState$InternalPacketHandler;
-
getId
- Mappings:
Namespace Name Mixin selector official a
Lsn$b;a(Ljava/lang/Class;)I
intermediary method_22312
Lnet/minecraft/class_2539$class_4532;method_22312(Ljava/lang/Class;)I
named getId
Lnet/minecraft/network/NetworkState$InternalPacketHandler;getId(Ljava/lang/Class;)I
-
canHandle
- Mappings:
Namespace Name Mixin selector official b
Lsn$b;b(Ljava/lang/Class;)Z
intermediary method_52929
Lnet/minecraft/class_2539$class_4532;method_52929(Ljava/lang/Class;)Z
named canHandle
Lnet/minecraft/network/NetworkState$InternalPacketHandler;canHandle(Ljava/lang/Class;)Z
-
createPacket
- Mappings:
Namespace Name Mixin selector official a
Lsn$b;a(ILso;)Lvd;
intermediary method_22310
Lnet/minecraft/class_2539$class_4532;method_22310(ILnet/minecraft/class_2540;)Lnet/minecraft/class_2596;
named createPacket
Lnet/minecraft/network/NetworkState$InternalPacketHandler;createPacket(ILnet/minecraft/network/PacketByteBuf;)Lnet/minecraft/network/packet/Packet;
-
getBundler
- Mappings:
Namespace Name Mixin selector official a
Lsn$b;a()Lvc;
intermediary method_48313
Lnet/minecraft/class_2539$class_4532;method_48313()Lnet/minecraft/class_8039;
named getBundler
Lnet/minecraft/network/NetworkState$InternalPacketHandler;getBundler()Lnet/minecraft/network/handler/PacketBundleHandler;
-