Package net.minecraft.network
Enum Class NetworkState
- All Implemented Interfaces:
Serializable,Comparable<NetworkState>,Constable
- Direct Known Subclasses:
HandshakeState,LoginState,PlayState,QueryState
- Mappings:
Namespace Name official ejintermediary 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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic NetworkStatebyId(int id) intgetId()static NetworkStategetPacketHandlerState(Packet handler) method_7414(boolean bool) method_7417(boolean bool) protected NetworkStateregisterClient2Server(int id, Class packetClass) protected NetworkStateregisterServer2Client(int id, Class packetClass) 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 aLej;a:Lej;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 bLej;b:Lej;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 cLej;c:Lej;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 dLej;d:Lej;intermediary field_8448Lnet/minecraft/class_1962;field_8448:Lnet/minecraft/class_1962;named LOGINLnet/minecraft/network/NetworkState;LOGIN:Lnet/minecraft/network/NetworkState;
-
-
Field Details
-
TYPE
private static final gnu.trove.map.TIntObjectMap TYPE- Mappings:
Namespace Name Mixin selector official eLej;e:Lgnu/trove/map/TIntObjectMap;intermediary field_8449Lnet/minecraft/class_1962;field_8449:Lgnu/trove/map/TIntObjectMap;named TYPELnet/minecraft/network/NetworkState;TYPE:Lgnu/trove/map/TIntObjectMap;
-
PACKET_TO_STATE
- Mappings:
Namespace Name Mixin selector official fLej;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 gLej;g:Iintermediary field_8451Lnet/minecraft/class_1962;field_8451:Inamed stateIdLnet/minecraft/network/NetworkState;stateId:I
-
CLIENT2SERVER
- Mappings:
Namespace Name Mixin selector official hLej;h:Lcom/google/common/collect/BiMap;intermediary field_8452Lnet/minecraft/class_1962;field_8452:Lcom/google/common/collect/BiMap;named CLIENT2SERVERLnet/minecraft/network/NetworkState;CLIENT2SERVER:Lcom/google/common/collect/BiMap;
-
SERVER2CLIENT
- Mappings:
Namespace Name Mixin selector official iLej;i:Lcom/google/common/collect/BiMap;intermediary field_8453Lnet/minecraft/class_1962;field_8453:Lcom/google/common/collect/BiMap;named SERVER2CLIENTLnet/minecraft/network/NetworkState;SERVER2CLIENT:Lcom/google/common/collect/BiMap;
-
-
Constructor Details
-
NetworkState
private NetworkState(int stateId) - Mappings:
Namespace Name Mixin selector official <init>Lej;<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
-
registerClient2Server
- Mappings:
Namespace Name Mixin selector official aLej;a(ILjava/lang/Class;)Lej;intermediary method_7412Lnet/minecraft/class_1962;method_7412(ILjava/lang/Class;)Lnet/minecraft/class_1962;named registerClient2ServerLnet/minecraft/network/NetworkState;registerClient2Server(ILjava/lang/Class;)Lnet/minecraft/network/NetworkState;
-
registerServer2Client
- Mappings:
Namespace Name Mixin selector official bLej;b(ILjava/lang/Class;)Lej;intermediary method_7416Lnet/minecraft/class_1962;method_7416(ILjava/lang/Class;)Lnet/minecraft/class_1962;named registerServer2ClientLnet/minecraft/network/NetworkState;registerServer2Client(ILjava/lang/Class;)Lnet/minecraft/network/NetworkState;
-
getClientToServer
- Mappings:
Namespace Name Mixin selector official aLej;a()Lcom/google/common/collect/BiMap;intermediary method_7410Lnet/minecraft/class_1962;method_7410()Lcom/google/common/collect/BiMap;named getClientToServerLnet/minecraft/network/NetworkState;getClientToServer()Lcom/google/common/collect/BiMap;
-
getServerToClient
- Mappings:
Namespace Name Mixin selector official bLej;b()Lcom/google/common/collect/BiMap;intermediary method_7415Lnet/minecraft/class_1962;method_7415()Lcom/google/common/collect/BiMap;named getServerToClientLnet/minecraft/network/NetworkState;getServerToClient()Lcom/google/common/collect/BiMap;
-
method_7414
- Mappings:
Namespace Name Mixin selector official aLej;a(Z)Lcom/google/common/collect/BiMap;intermediary method_7414Lnet/minecraft/class_1962;method_7414(Z)Lcom/google/common/collect/BiMap;named method_7414Lnet/minecraft/network/NetworkState;method_7414(Z)Lcom/google/common/collect/BiMap;
-
method_7417
- Mappings:
Namespace Name Mixin selector official bLej;b(Z)Lcom/google/common/collect/BiMap;intermediary method_7417Lnet/minecraft/class_1962;method_7417(Z)Lcom/google/common/collect/BiMap;named method_7417Lnet/minecraft/network/NetworkState;method_7417(Z)Lcom/google/common/collect/BiMap;
-
getId
public int getId()- Mappings:
Namespace Name Mixin selector official cLej;c()Iintermediary method_7418Lnet/minecraft/class_1962;method_7418()Inamed getIdLnet/minecraft/network/NetworkState;getId()I
-
byId
- Mappings:
Namespace Name Mixin selector official aLej;a(I)Lej;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 aLej;a(Lfj;)Lej;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;
-