Package net.minecraft.network
Enum Class NetworkState
- All Implemented Interfaces:
Serializable,Comparable<NetworkState>,Constable
- Mappings:
Namespace Name official gxintermediary net/minecraft/class_1962named net/minecraft/network/NetworkState
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final NetworkState[]private static final Map<Class<? extends Packet<?>>,NetworkState> private final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic NetworkStatebyId(int id) intgetId()static NetworkStategetPacketHandlerState(Packet<?> handler) Packet<?>method_10597(NetworkSide networkSide, int int2) method_10598(NetworkSide networkSide, Packet<?> packet) protected NetworkStatemethod_10599(NetworkSide networkSide, Class<? extends Packet<?>> class2) 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 official aLgx;a:Lgx;intermediary field_8445Lnet/minecraft/class_1962;field_8445:Lnet/minecraft/class_1962;named HANDSHAKINGLnet/minecraft/network/NetworkState;HANDSHAKING:Lnet/minecraft/network/NetworkState;
-
PLAY
- Mappings:
Namespace Name Mixin selector official bLgx;b:Lgx;intermediary field_8446Lnet/minecraft/class_1962;field_8446:Lnet/minecraft/class_1962;named PLAYLnet/minecraft/network/NetworkState;PLAY:Lnet/minecraft/network/NetworkState;
-
STATUS
- Mappings:
Namespace Name Mixin selector official cLgx;c:Lgx;intermediary field_8447Lnet/minecraft/class_1962;field_8447:Lnet/minecraft/class_1962;named STATUSLnet/minecraft/network/NetworkState;STATUS:Lnet/minecraft/network/NetworkState;
-
LOGIN
- Mappings:
Namespace Name Mixin selector official dLgx;d:Lgx;intermediary field_8448Lnet/minecraft/class_1962;field_8448:Lnet/minecraft/class_1962;named LOGINLnet/minecraft/network/NetworkState;LOGIN:Lnet/minecraft/network/NetworkState;
-
-
Field Details
-
field_11568
- Mappings:
Namespace Name Mixin selector official eLgx;e:[Lgx;intermediary field_11568Lnet/minecraft/class_1962;field_11568:[Lnet/minecraft/class_1962;named field_11568Lnet/minecraft/network/NetworkState;field_11568:[Lnet/minecraft/network/NetworkState;
-
PACKET_TO_STATE
- Mappings:
Namespace Name Mixin selector official fLgx;f:Ljava/util/Map;intermediary field_8450Lnet/minecraft/class_1962;field_8450:Ljava/util/Map;named PACKET_TO_STATELnet/minecraft/network/NetworkState;PACKET_TO_STATE:Ljava/util/Map;
-
stateId
private final int stateId- Mappings:
Namespace Name Mixin selector official gLgx;g:Iintermediary field_8451Lnet/minecraft/class_1962;field_8451:Inamed stateIdLnet/minecraft/network/NetworkState;stateId:I
-
field_11569
- Mappings:
Namespace Name Mixin selector official hLgx;h:Ljava/util/Map;intermediary field_11569Lnet/minecraft/class_1962;field_11569:Ljava/util/Map;named field_11569Lnet/minecraft/network/NetworkState;field_11569:Ljava/util/Map;
-
-
Constructor Details
-
NetworkState
private NetworkState(int stateId) - Mappings:
Namespace Name Mixin selector official <init>Lgx;<init>(Ljava/lang/String;II)Vintermediary <init>Lnet/minecraft/class_1962;<init>(Ljava/lang/String;II)Vnamed <init>Lnet/minecraft/network/NetworkState;<init>(Ljava/lang/String;II)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
-
method_10599
- Mappings:
Namespace Name Mixin selector official aLgx;a(Lhu;Ljava/lang/Class;)Lgx;intermediary method_10599Lnet/minecraft/class_1962;method_10599(Lnet/minecraft/class_2569;Ljava/lang/Class;)Lnet/minecraft/class_1962;named method_10599Lnet/minecraft/network/NetworkState;method_10599(Lnet/minecraft/network/NetworkSide;Ljava/lang/Class;)Lnet/minecraft/network/NetworkState;
-
method_10598
- Throws:
Exception- Mappings:
Namespace Name Mixin selector official aLgx;a(Lhu;Lht;)Ljava/lang/Integer;intermediary method_10598Lnet/minecraft/class_1962;method_10598(Lnet/minecraft/class_2569;Lnet/minecraft/class_700;)Ljava/lang/Integer;named method_10598Lnet/minecraft/network/NetworkState;method_10598(Lnet/minecraft/network/NetworkSide;Lnet/minecraft/network/Packet;)Ljava/lang/Integer;
-
method_10597
@Nullable public Packet<?> method_10597(NetworkSide networkSide, int int2) throws IllegalAccessException, InstantiationException - Throws:
IllegalAccessExceptionInstantiationException- Mappings:
Namespace Name Mixin selector official aLgx;a(Lhu;I)Lht;intermediary method_10597Lnet/minecraft/class_1962;method_10597(Lnet/minecraft/class_2569;I)Lnet/minecraft/class_700;named method_10597Lnet/minecraft/network/NetworkState;method_10597(Lnet/minecraft/network/NetworkSide;I)Lnet/minecraft/network/Packet;
-
getId
public int getId()- Mappings:
Namespace Name Mixin selector official aLgx;a()Iintermediary method_7418Lnet/minecraft/class_1962;method_7418()Inamed getIdLnet/minecraft/network/NetworkState;getId()I
-
byId
- Mappings:
Namespace Name Mixin selector official aLgx;a(I)Lgx;intermediary method_7411Lnet/minecraft/class_1962;method_7411(I)Lnet/minecraft/class_1962;named byIdLnet/minecraft/network/NetworkState;byId(I)Lnet/minecraft/network/NetworkState;
-
getPacketHandlerState
- Mappings:
Namespace Name Mixin selector official aLgx;a(Lht;)Lgx;intermediary method_7413Lnet/minecraft/class_1962;method_7413(Lnet/minecraft/class_700;)Lnet/minecraft/class_1962;named getPacketHandlerStateLnet/minecraft/network/NetworkState;getPacketHandlerState(Lnet/minecraft/network/Packet;)Lnet/minecraft/network/NetworkState;
-