Package net.minecraft.network
Enum NetworkState
- All Implemented Interfaces:
Serializable,Comparable<NetworkState>,java.lang.constant.Constable
public enum NetworkState extends Enum<NetworkState>
- Mappings:
Namespace Name official elintermediary net/minecraft/class_1434named 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 Enum Constant Description HANDSHAKINGLOGINPLAYSTATUS -
Field Summary
Fields Modifier and Type Field Description private static intfield_5981private static intfield_5982private static NetworkState[]field_5983private static Map<Class<? extends Packet>,NetworkState>field_5984private Map<NetworkSide,BiMap<Integer,Class<? extends Packet>>>field_5986private intstateId -
Constructor Summary
Constructors Modifier Constructor Description privateNetworkState(int int2) -
Method Summary
Modifier and Type Method Description static NetworkStatebyId(int id)intgetId()static NetworkStategetPacketHandlerState(Packet handler)Packetmethod_5123(NetworkSide networkSide, int int2)Integermethod_5124(NetworkSide networkSide, Packet packet)protected NetworkStatemethod_5125(NetworkSide networkSide, Class<? extends Packet> class2)static NetworkStatevalueOf(String name)Returns the enum constant of this type with the specified name.static NetworkState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
HANDSHAKING
- Mappings:
Namespace Name Mixin selector official aLel;a:Lel;intermediary field_5977Lnet/minecraft/class_1434;field_5977:Lnet/minecraft/class_1434;named HANDSHAKINGLnet/minecraft/network/NetworkState;HANDSHAKING:Lnet/minecraft/network/NetworkState;
-
PLAY
- Mappings:
Namespace Name Mixin selector official bLel;b:Lel;intermediary field_5978Lnet/minecraft/class_1434;field_5978:Lnet/minecraft/class_1434;named PLAYLnet/minecraft/network/NetworkState;PLAY:Lnet/minecraft/network/NetworkState;
-
STATUS
- Mappings:
Namespace Name Mixin selector official cLel;c:Lel;intermediary field_5979Lnet/minecraft/class_1434;field_5979:Lnet/minecraft/class_1434;named STATUSLnet/minecraft/network/NetworkState;STATUS:Lnet/minecraft/network/NetworkState;
-
LOGIN
- Mappings:
Namespace Name Mixin selector official dLel;d:Lel;intermediary field_5980Lnet/minecraft/class_1434;field_5980:Lnet/minecraft/class_1434;named LOGINLnet/minecraft/network/NetworkState;LOGIN:Lnet/minecraft/network/NetworkState;
-
-
Field Details
-
field_5981
private static int field_5981- Mappings:
Namespace Name Mixin selector official eLel;e:Iintermediary field_5981Lnet/minecraft/class_1434;field_5981:Inamed field_5981Lnet/minecraft/network/NetworkState;field_5981:I
-
field_5982
private static int field_5982- Mappings:
Namespace Name Mixin selector official fLel;f:Iintermediary field_5982Lnet/minecraft/class_1434;field_5982:Inamed field_5982Lnet/minecraft/network/NetworkState;field_5982:I
-
field_5983
- Mappings:
Namespace Name Mixin selector official gLel;g:[Lel;intermediary field_5983Lnet/minecraft/class_1434;field_5983:[Lnet/minecraft/class_1434;named field_5983Lnet/minecraft/network/NetworkState;field_5983:[Lnet/minecraft/network/NetworkState;
-
field_5984
- Mappings:
Namespace Name Mixin selector official hLel;h:Ljava/util/Map;intermediary field_5984Lnet/minecraft/class_1434;field_5984:Ljava/util/Map;named field_5984Lnet/minecraft/network/NetworkState;field_5984:Ljava/util/Map;
-
stateId
private final int stateId- Mappings:
Namespace Name Mixin selector official iLel;i:Iintermediary field_5985Lnet/minecraft/class_1434;field_5985:Inamed stateIdLnet/minecraft/network/NetworkState;stateId:I
-
field_5986
- Mappings:
Namespace Name Mixin selector official jLel;j:Ljava/util/Map;intermediary field_5986Lnet/minecraft/class_1434;field_5986:Ljava/util/Map;named field_5986Lnet/minecraft/network/NetworkState;field_5986:Ljava/util/Map;
-
-
Constructor Details
-
NetworkState
private NetworkState(int int2)
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
method_5125
- Mappings:
Namespace Name Mixin selector official aLel;a(Lfg;Ljava/lang/Class;)Lel;intermediary method_5125Lnet/minecraft/class_1434;method_5125(Lnet/minecraft/class_1458;Ljava/lang/Class;)Lnet/minecraft/class_1434;named method_5125Lnet/minecraft/network/NetworkState;method_5125(Lnet/minecraft/network/NetworkSide;Ljava/lang/Class;)Lnet/minecraft/network/NetworkState;
-
method_5124
- Mappings:
Namespace Name Mixin selector official aLel;a(Lfg;Lff;)Ljava/lang/Integer;intermediary method_5124Lnet/minecraft/class_1434;method_5124(Lnet/minecraft/class_1458;Lnet/minecraft/class_1457;)Ljava/lang/Integer;named method_5124Lnet/minecraft/network/NetworkState;method_5124(Lnet/minecraft/network/NetworkSide;Lnet/minecraft/network/Packet;)Ljava/lang/Integer;
-
method_5123
public Packet method_5123(NetworkSide networkSide, int int2) throws IllegalAccessException, InstantiationException- Throws:
IllegalAccessExceptionInstantiationException- Mappings:
Namespace Name Mixin selector official aLel;a(Lfg;I)Lff;intermediary method_5123Lnet/minecraft/class_1434;method_5123(Lnet/minecraft/class_1458;I)Lnet/minecraft/class_1457;named method_5123Lnet/minecraft/network/NetworkState;method_5123(Lnet/minecraft/network/NetworkSide;I)Lnet/minecraft/network/Packet;
-
getId
public int getId()- Mappings:
Namespace Name Mixin selector official aLel;a()Iintermediary method_5120Lnet/minecraft/class_1434;method_5120()Inamed getIdLnet/minecraft/network/NetworkState;getId()I
-
byId
- Mappings:
Namespace Name Mixin selector official aLel;a(I)Lel;intermediary method_5121Lnet/minecraft/class_1434;method_5121(I)Lnet/minecraft/class_1434;named byIdLnet/minecraft/network/NetworkState;byId(I)Lnet/minecraft/network/NetworkState;
-
getPacketHandlerState
- Mappings:
Namespace Name Mixin selector official aLel;a(Lff;)Lel;intermediary method_5122Lnet/minecraft/class_1434;method_5122(Lnet/minecraft/class_1457;)Lnet/minecraft/class_1434;named getPacketHandlerStateLnet/minecraft/network/NetworkState;getPacketHandlerState(Lnet/minecraft/network/Packet;)Lnet/minecraft/network/NetworkState;
-