Package net.minecraft.network
Enum Class NetworkState
- All Implemented Interfaces:
Serializable,Comparable<NetworkState>,Constable,PacketBundleHandler.BundlerGetter
- Mappings:
Namespace Name intermediary net/minecraft/class_2539official senamed net/minecraft/network/NetworkState
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classNetworkState.PacketHandler<T extends PacketListener>private static classNested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intprivate static final Map<Class<? extends Packet<?>>,NetworkState> private static final intprivate static final intprivate final Map<NetworkSide,? extends NetworkState.PacketHandler<?>> private final intprivate static final NetworkState[] -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateNetworkState(int id, NetworkState.PacketHandlerInitializer initializer) -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable NetworkStatebyId(int id) private static NetworkState.PacketHandlerInitializergetBundler(NetworkSide side) intgetId()getPacketHandler(NetworkSide side, int packetId, PacketByteBuf buf) static @Nullable NetworkStategetPacketHandlerState(Packet<?> handler) intgetPacketId(NetworkSide side, Packet<?> packet) Int2ObjectMap<Class<? extends Packet<?>>>static NetworkStateReturns the enum constant of this class with the specified name.static NetworkState[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
HANDSHAKING
- Mappings:
Namespace Name Mixin selector intermediary field_20590Lnet/minecraft/class_2539;field_20590:Lnet/minecraft/class_2539;official aLse;a:Lse;named HANDSHAKINGLnet/minecraft/network/NetworkState;HANDSHAKING:Lnet/minecraft/network/NetworkState;
-
PLAY
- Mappings:
Namespace Name Mixin selector intermediary field_20591Lnet/minecraft/class_2539;field_20591:Lnet/minecraft/class_2539;official bLse;b:Lse;named PLAYLnet/minecraft/network/NetworkState;PLAY:Lnet/minecraft/network/NetworkState;
-
STATUS
- Mappings:
Namespace Name Mixin selector intermediary field_20592Lnet/minecraft/class_2539;field_20592:Lnet/minecraft/class_2539;official cLse;c:Lse;named STATUSLnet/minecraft/network/NetworkState;STATUS:Lnet/minecraft/network/NetworkState;
-
LOGIN
- Mappings:
Namespace Name Mixin selector intermediary field_20593Lnet/minecraft/class_2539;field_20593:Lnet/minecraft/class_2539;official dLse;d:Lse;named LOGINLnet/minecraft/network/NetworkState;LOGIN:Lnet/minecraft/network/NetworkState;
-
-
Field Details
-
field_41866
public static final int field_41866- See Also:
- Mappings:
Namespace Name Mixin selector intermediary field_41866Lnet/minecraft/class_2539;field_41866:Iofficial eLse;e:Inamed field_41866Lnet/minecraft/network/NetworkState;field_41866:I
-
NULL_PACKET_ID_OR_MIN_STATE_ID
private static final int NULL_PACKET_ID_OR_MIN_STATE_ID- See Also:
- Mappings:
Namespace Name Mixin selector intermediary field_33281Lnet/minecraft/class_2539;field_33281:Iofficial fLse;f:Inamed NULL_PACKET_ID_OR_MIN_STATE_IDLnet/minecraft/network/NetworkState;NULL_PACKET_ID_OR_MIN_STATE_ID:I
-
MAX_STATE_ID
private static final int MAX_STATE_ID- See Also:
- Mappings:
Namespace Name Mixin selector intermediary field_33282Lnet/minecraft/class_2539;field_33282:Iofficial gLse;g:Inamed MAX_STATE_IDLnet/minecraft/network/NetworkState;MAX_STATE_ID:I
-
STATES
- Mappings:
Namespace Name Mixin selector intermediary field_11693Lnet/minecraft/class_2539;field_11693:[Lnet/minecraft/class_2539;official hLse;h:[Lse;named STATESLnet/minecraft/network/NetworkState;STATES:[Lnet/minecraft/network/NetworkState;
-
HANDLER_STATE_MAP
- Mappings:
Namespace Name Mixin selector intermediary field_11687Lnet/minecraft/class_2539;field_11687:Ljava/util/Map;official iLse;i:Ljava/util/Map;named HANDLER_STATE_MAPLnet/minecraft/network/NetworkState;HANDLER_STATE_MAP:Ljava/util/Map;
-
stateId
private final int stateId- Mappings:
Namespace Name Mixin selector intermediary field_20594Lnet/minecraft/class_2539;field_20594:Iofficial jLse;j:Inamed stateIdLnet/minecraft/network/NetworkState;stateId:I
-
packetHandlers
- Mappings:
Namespace Name Mixin selector intermediary field_20595Lnet/minecraft/class_2539;field_20595:Ljava/util/Map;official kLse;k:Ljava/util/Map;named packetHandlersLnet/minecraft/network/NetworkState;packetHandlers:Ljava/util/Map;
-
-
Constructor Details
-
NetworkState
- Mappings:
Namespace Name Mixin selector intermediary <init>Lnet/minecraft/class_2539;<init>(Ljava/lang/String;IILnet/minecraft/class_2539$class_4533;)Vofficial <init>Lse;<init>(Ljava/lang/String;IILse$b;)Vnamed <init>Lnet/minecraft/network/NetworkState;<init>(Ljava/lang/String;IILnet/minecraft/network/NetworkState$PacketHandlerInitializer;)V
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
createPacketHandlerInitializer
- Mappings:
Namespace Name Mixin selector intermediary method_22308Lnet/minecraft/class_2539;method_22308()Lnet/minecraft/class_2539$class_4533;official bLse;b()Lse$b;named createPacketHandlerInitializerLnet/minecraft/network/NetworkState;createPacketHandlerInitializer()Lnet/minecraft/network/NetworkState$PacketHandlerInitializer;
-
getPacketId
- Mappings:
Namespace Name Mixin selector intermediary method_10781Lnet/minecraft/class_2539;method_10781(Lnet/minecraft/class_2598;Lnet/minecraft/class_2596;)Iofficial aLse;a(Lup;Luo;)Inamed getPacketIdLnet/minecraft/network/NetworkState;getPacketId(Lnet/minecraft/network/NetworkSide;Lnet/minecraft/network/packet/Packet;)I
-
getBundler
- Specified by:
getBundlerin interfacePacketBundleHandler.BundlerGetter- Mappings:
Namespace Name Mixin selector intermediary method_48312Lnet/minecraft/class_8039$class_8041;method_48312(Lnet/minecraft/class_2598;)Lnet/minecraft/class_8039;official aLun$b;a(Lup;)Lun;named getBundlerLnet/minecraft/network/PacketBundleHandler$BundlerGetter;getBundler(Lnet/minecraft/network/NetworkSide;)Lnet/minecraft/network/PacketBundleHandler;
-
getPacketIdToPacketMap
- Mappings:
Namespace Name Mixin selector intermediary method_39498Lnet/minecraft/class_2539;method_39498(Lnet/minecraft/class_2598;)Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;official bLse;b(Lup;)Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;named getPacketIdToPacketMapLnet/minecraft/network/NetworkState;getPacketIdToPacketMap(Lnet/minecraft/network/NetworkSide;)Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
-
getPacketHandler
@Nullable public @Nullable Packet<?> getPacketHandler(NetworkSide side, int packetId, PacketByteBuf buf) - Mappings:
Namespace Name Mixin selector intermediary method_10783Lnet/minecraft/class_2539;method_10783(Lnet/minecraft/class_2598;ILnet/minecraft/class_2540;)Lnet/minecraft/class_2596;official aLse;a(Lup;ILsf;)Luo;named getPacketHandlerLnet/minecraft/network/NetworkState;getPacketHandler(Lnet/minecraft/network/NetworkSide;ILnet/minecraft/network/PacketByteBuf;)Lnet/minecraft/network/packet/Packet;
-
getId
public int getId()- Mappings:
Namespace Name Mixin selector intermediary method_10785Lnet/minecraft/class_2539;method_10785()Iofficial aLse;a()Inamed getIdLnet/minecraft/network/NetworkState;getId()I
-
byId
- Mappings:
Namespace Name Mixin selector intermediary method_10782Lnet/minecraft/class_2539;method_10782(I)Lnet/minecraft/class_2539;official aLse;a(I)Lse;named byIdLnet/minecraft/network/NetworkState;byId(I)Lnet/minecraft/network/NetworkState;
-
getPacketHandlerState
- Mappings:
Namespace Name Mixin selector intermediary method_10786Lnet/minecraft/class_2539;method_10786(Lnet/minecraft/class_2596;)Lnet/minecraft/class_2539;official aLse;a(Luo;)Lse;named getPacketHandlerStateLnet/minecraft/network/NetworkState;getPacketHandlerState(Lnet/minecraft/network/packet/Packet;)Lnet/minecraft/network/NetworkState;
-