Package net.minecraft.network
Class NetworkState.PacketHandler<T extends PacketListener>
java.lang.Object
net.minecraft.network.NetworkState.PacketHandler<T>
- All Implemented Interfaces:
PacketBundleHandler.BundlerGetter
- Enclosing class:
NetworkState
public static class NetworkState.PacketHandler<T extends PacketListener>
extends Object
implements PacketBundleHandler.BundlerGetter
- Mappings:
Namespace Name official sn$a
intermediary net/minecraft/class_2539$class_8698
named net/minecraft/network/NetworkState$PacketHandler
-
Field Summary
Modifier and TypeFieldDescriptionprivate final NetworkState.InternalPacketHandler<T>
private final NetworkSide
private final NetworkState
-
Constructor Summary
ConstructorDescriptionPacketHandler
(NetworkState state, NetworkSide side, NetworkState.InternalPacketHandler<T> backingHandler) -
Method Summary
Modifier and TypeMethodDescriptionboolean
@Nullable Packet<?>
createPacket
(int id, PacketByteBuf buf) int
(package private) Int2ObjectMap<Class<? extends Packet<?>>>
getSide()
getState()
-
Field Details
-
state
- Mappings:
Namespace Name Mixin selector official a
Lsn$a;a:Lsn;
intermediary field_45672
Lnet/minecraft/class_2539$class_8698;field_45672:Lnet/minecraft/class_2539;
named state
Lnet/minecraft/network/NetworkState$PacketHandler;state:Lnet/minecraft/network/NetworkState;
-
side
- Mappings:
Namespace Name Mixin selector official b
Lsn$a;b:Lve;
intermediary field_45673
Lnet/minecraft/class_2539$class_8698;field_45673:Lnet/minecraft/class_2598;
named side
Lnet/minecraft/network/NetworkState$PacketHandler;side:Lnet/minecraft/network/NetworkSide;
-
backingHandler
- Mappings:
Namespace Name Mixin selector official c
Lsn$a;c:Lsn$b;
intermediary field_45674
Lnet/minecraft/class_2539$class_8698;field_45674:Lnet/minecraft/class_2539$class_4532;
named backingHandler
Lnet/minecraft/network/NetworkState$PacketHandler;backingHandler:Lnet/minecraft/network/NetworkState$InternalPacketHandler;
-
-
Constructor Details
-
PacketHandler
public PacketHandler(NetworkState state, NetworkSide side, NetworkState.InternalPacketHandler<T> backingHandler) - Mappings:
Namespace Name Mixin selector official <init>
Lsn$a;<init>(Lsn;Lve;Lsn$b;)V
intermediary <init>
Lnet/minecraft/class_2539$class_8698;<init>(Lnet/minecraft/class_2539;Lnet/minecraft/class_2598;Lnet/minecraft/class_2539$class_4532;)V
named <init>
Lnet/minecraft/network/NetworkState$PacketHandler;<init>(Lnet/minecraft/network/NetworkState;Lnet/minecraft/network/NetworkSide;Lnet/minecraft/network/NetworkState$InternalPacketHandler;)V
-
-
Method Details
-
getState
- Mappings:
Namespace Name Mixin selector official a
Lsn$a;a()Lsn;
intermediary method_52922
Lnet/minecraft/class_2539$class_8698;method_52922()Lnet/minecraft/class_2539;
named getState
Lnet/minecraft/network/NetworkState$PacketHandler;getState()Lnet/minecraft/network/NetworkState;
-
getSide
- Mappings:
Namespace Name Mixin selector official b
Lsn$a;b()Lve;
intermediary method_52926
Lnet/minecraft/class_2539$class_8698;method_52926()Lnet/minecraft/class_2598;
named getSide
Lnet/minecraft/network/NetworkState$PacketHandler;getSide()Lnet/minecraft/network/NetworkSide;
-
getId
- Mappings:
Namespace Name Mixin selector official a
Lsn$a;a(Lvd;)I
intermediary method_52925
Lnet/minecraft/class_2539$class_8698;method_52925(Lnet/minecraft/class_2596;)I
named getId
Lnet/minecraft/network/NetworkState$PacketHandler;getId(Lnet/minecraft/network/packet/Packet;)I
-
getBundler
- Specified by:
getBundler
in interfacePacketBundleHandler.BundlerGetter
- Mappings:
Namespace Name Mixin selector official c
Lvc$b;c()Lvc;
intermediary method_48312
Lnet/minecraft/class_8039$class_8041;method_48312()Lnet/minecraft/class_8039;
named getBundler
Lnet/minecraft/network/handler/PacketBundleHandler$BundlerGetter;getBundler()Lnet/minecraft/network/handler/PacketBundleHandler;
-
getPacketIdToPacketMap
Int2ObjectMap<Class<? extends Packet<?>>> getPacketIdToPacketMap()- Mappings:
Namespace Name Mixin selector official d
Lsn$a;d()Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
intermediary method_52928
Lnet/minecraft/class_2539$class_8698;method_52928()Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
named getPacketIdToPacketMap
Lnet/minecraft/network/NetworkState$PacketHandler;getPacketIdToPacketMap()Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
-
createPacket
- Mappings:
Namespace Name Mixin selector official a
Lsn$a;a(ILso;)Lvd;
intermediary method_52923
Lnet/minecraft/class_2539$class_8698;method_52923(ILnet/minecraft/class_2540;)Lnet/minecraft/class_2596;
named createPacket
Lnet/minecraft/network/NetworkState$PacketHandler;createPacket(ILnet/minecraft/network/PacketByteBuf;)Lnet/minecraft/network/packet/Packet;
-
canHandle
- Mappings:
Namespace Name Mixin selector official b
Lsn$a;b(Lvd;)Z
intermediary method_52927
Lnet/minecraft/class_2539$class_8698;method_52927(Lnet/minecraft/class_2596;)Z
named canHandle
Lnet/minecraft/network/NetworkState$PacketHandler;canHandle(Lnet/minecraft/network/packet/Packet;)Z
-