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 nvintermediary net/minecraft/class_2539named net/minecraft/network/NetworkState
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classNetworkState.PacketHandler<T extends PacketListener>(package private) static classNetworkState.PacketHandlerInitializerNested 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 Map<Class<? extends Packet<?>>,NetworkState>HANDLER_STATE_MAPprivate Map<NetworkSide,? extends NetworkState.PacketHandler<?>>packetHandlersprivate intstateIdprivate static NetworkState[]STATES -
Constructor Summary
Constructors Modifier Constructor Description privateNetworkState(int id, NetworkState.PacketHandlerInitializer packetHandlerInitializer) -
Method Summary
Modifier and Type Method Description static NetworkStatebyId(int id)private static NetworkState.PacketHandlerInitializercreatePacketHandlerInitializer()intgetId()Packet<?>getPacketHandler(NetworkSide side, int packetId)static NetworkStategetPacketHandlerState(Packet<?> handler)IntegergetPacketId(NetworkSide side, Packet<?> packet)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 aLnv;a:Lnv;intermediary field_20590Lnet/minecraft/class_2539;field_20590:Lnet/minecraft/class_2539;named HANDSHAKINGLnet/minecraft/network/NetworkState;HANDSHAKING:Lnet/minecraft/network/NetworkState;
-
PLAY
- Mappings:
Namespace Name Mixin selector official bLnv;b:Lnv;intermediary field_20591Lnet/minecraft/class_2539;field_20591:Lnet/minecraft/class_2539;named PLAYLnet/minecraft/network/NetworkState;PLAY:Lnet/minecraft/network/NetworkState;
-
STATUS
- Mappings:
Namespace Name Mixin selector official cLnv;c:Lnv;intermediary field_20592Lnet/minecraft/class_2539;field_20592:Lnet/minecraft/class_2539;named STATUSLnet/minecraft/network/NetworkState;STATUS:Lnet/minecraft/network/NetworkState;
-
LOGIN
- Mappings:
Namespace Name Mixin selector official dLnv;d:Lnv;intermediary field_20593Lnet/minecraft/class_2539;field_20593:Lnet/minecraft/class_2539;named LOGINLnet/minecraft/network/NetworkState;LOGIN:Lnet/minecraft/network/NetworkState;
-
-
Field Details
-
STATES
- Mappings:
Namespace Name Mixin selector official eLnv;e:[Lnv;intermediary field_11693Lnet/minecraft/class_2539;field_11693:[Lnet/minecraft/class_2539;named STATESLnet/minecraft/network/NetworkState;STATES:[Lnet/minecraft/network/NetworkState;
-
HANDLER_STATE_MAP
- Mappings:
Namespace Name Mixin selector official fLnv;f:Ljava/util/Map;intermediary field_11687Lnet/minecraft/class_2539;field_11687: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 official gLnv;g:Iintermediary field_20594Lnet/minecraft/class_2539;field_20594:Inamed stateIdLnet/minecraft/network/NetworkState;stateId:I
-
packetHandlers
- Mappings:
Namespace Name Mixin selector official hLnv;h:Ljava/util/Map;intermediary field_20595Lnet/minecraft/class_2539;field_20595:Ljava/util/Map;named packetHandlersLnet/minecraft/network/NetworkState;packetHandlers:Ljava/util/Map;
-
-
Constructor Details
-
NetworkState
- Mappings:
Namespace Name Mixin selector official <init>Lnv;<init>(Ljava/lang/String;IILnv$b;)Vintermediary <init>Lnet/minecraft/class_2539;<init>(Ljava/lang/String;IILnet/minecraft/class_2539$class_4533;)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 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
-
createPacketHandlerInitializer
- Mappings:
Namespace Name Mixin selector official bLnv;b()Lnv$b;intermediary method_22308Lnet/minecraft/class_2539;method_22308()Lnet/minecraft/class_2539$class_4533;named createPacketHandlerInitializerLnet/minecraft/network/NetworkState;createPacketHandlerInitializer()Lnet/minecraft/network/NetworkState$PacketHandlerInitializer;
-
getPacketId
- Mappings:
Namespace Name Mixin selector official aLnv;a(Lpb;Lpa;)Ljava/lang/Integer;intermediary method_10781Lnet/minecraft/class_2539;method_10781(Lnet/minecraft/class_2598;Lnet/minecraft/class_2596;)Ljava/lang/Integer;named getPacketIdLnet/minecraft/network/NetworkState;getPacketId(Lnet/minecraft/network/NetworkSide;Lnet/minecraft/network/Packet;)Ljava/lang/Integer;
-
getPacketHandler
- Mappings:
Namespace Name Mixin selector official aLnv;a(Lpb;I)Lpa;intermediary method_10783Lnet/minecraft/class_2539;method_10783(Lnet/minecraft/class_2598;I)Lnet/minecraft/class_2596;named getPacketHandlerLnet/minecraft/network/NetworkState;getPacketHandler(Lnet/minecraft/network/NetworkSide;I)Lnet/minecraft/network/Packet;
-
getId
public int getId()- Mappings:
Namespace Name Mixin selector official aLnv;a()Iintermediary method_10785Lnet/minecraft/class_2539;method_10785()Inamed getIdLnet/minecraft/network/NetworkState;getId()I
-
byId
- Mappings:
Namespace Name Mixin selector official aLnv;a(I)Lnv;intermediary method_10782Lnet/minecraft/class_2539;method_10782(I)Lnet/minecraft/class_2539;named byIdLnet/minecraft/network/NetworkState;byId(I)Lnet/minecraft/network/NetworkState;
-
getPacketHandlerState
- Mappings:
Namespace Name Mixin selector official aLnv;a(Lpa;)Lnv;intermediary method_10786Lnet/minecraft/class_2539;method_10786(Lnet/minecraft/class_2596;)Lnet/minecraft/class_2539;named getPacketHandlerStateLnet/minecraft/network/NetworkState;getPacketHandlerState(Lnet/minecraft/network/Packet;)Lnet/minecraft/network/NetworkState;
-