Package net.minecraft.network
Enum Class NetworkState
- All Implemented Interfaces:
Serializable
,Comparable<NetworkState>
,Constable
- Mappings:
Namespace Name official sn
intermediary net/minecraft/class_2539
named net/minecraft/network/NetworkState
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static class
static class
NetworkState.PacketHandler<T extends PacketListener>
private static class
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Map<NetworkSide,
NetworkState.PacketHandler<?>> private final String
static final int
-
Constructor Summary
ModifierConstructorDescriptionprivate
NetworkState
(String stateId, NetworkState.PacketHandlerInitializer initializer) -
Method Summary
Modifier and TypeMethodDescriptionprivate static NetworkState.PacketHandlerInitializer
getHandler
(NetworkSide side) getId()
Int2ObjectMap<Class<? extends Packet<?>>>
static NetworkState
Returns 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 a
Lsn;a:Lsn;
intermediary field_20590
Lnet/minecraft/class_2539;field_20590:Lnet/minecraft/class_2539;
named HANDSHAKING
Lnet/minecraft/network/NetworkState;HANDSHAKING:Lnet/minecraft/network/NetworkState;
-
PLAY
- Mappings:
Namespace Name Mixin selector official b
Lsn;b:Lsn;
intermediary field_20591
Lnet/minecraft/class_2539;field_20591:Lnet/minecraft/class_2539;
named PLAY
Lnet/minecraft/network/NetworkState;PLAY:Lnet/minecraft/network/NetworkState;
-
STATUS
- Mappings:
Namespace Name Mixin selector official c
Lsn;c:Lsn;
intermediary field_20592
Lnet/minecraft/class_2539;field_20592:Lnet/minecraft/class_2539;
named STATUS
Lnet/minecraft/network/NetworkState;STATUS:Lnet/minecraft/network/NetworkState;
-
LOGIN
- Mappings:
Namespace Name Mixin selector official d
Lsn;d:Lsn;
intermediary field_20593
Lnet/minecraft/class_2539;field_20593:Lnet/minecraft/class_2539;
named LOGIN
Lnet/minecraft/network/NetworkState;LOGIN:Lnet/minecraft/network/NetworkState;
-
CONFIGURATION
- Mappings:
Namespace Name Mixin selector official e
Lsn;e:Lsn;
intermediary field_45671
Lnet/minecraft/class_2539;field_45671:Lnet/minecraft/class_2539;
named CONFIGURATION
Lnet/minecraft/network/NetworkState;CONFIGURATION:Lnet/minecraft/network/NetworkState;
-
-
Field Details
-
UNKNOWN_PACKET_ID
public static final int UNKNOWN_PACKET_ID- See Also:
- Mappings:
Namespace Name Mixin selector official f
Lsn;f:I
intermediary field_41866
Lnet/minecraft/class_2539;field_41866:I
named UNKNOWN_PACKET_ID
Lnet/minecraft/network/NetworkState;UNKNOWN_PACKET_ID:I
-
stateId
- Mappings:
Namespace Name Mixin selector official g
Lsn;g:Ljava/lang/String;
intermediary field_20594
Lnet/minecraft/class_2539;field_20594:Ljava/lang/String;
named stateId
Lnet/minecraft/network/NetworkState;stateId:Ljava/lang/String;
-
packetHandlers
- Mappings:
Namespace Name Mixin selector official h
Lsn;h:Ljava/util/Map;
intermediary field_20595
Lnet/minecraft/class_2539;field_20595:Ljava/util/Map;
named packetHandlers
Lnet/minecraft/network/NetworkState;packetHandlers:Ljava/util/Map;
-
-
Constructor Details
-
NetworkState
- Mappings:
Namespace Name Mixin selector official <init>
Lsn;<init>(Ljava/lang/String;ILjava/lang/String;Lsn$c;)V
intermediary <init>
Lnet/minecraft/class_2539;<init>(Ljava/lang/String;ILjava/lang/String;Lnet/minecraft/class_2539$class_4533;)V
named <init>
Lnet/minecraft/network/NetworkState;<init>(Ljava/lang/String;ILjava/lang/String;Lnet/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 official b
Lsn;b()Lsn$c;
intermediary method_22308
Lnet/minecraft/class_2539;method_22308()Lnet/minecraft/class_2539$class_4533;
named createPacketHandlerInitializer
Lnet/minecraft/network/NetworkState;createPacketHandlerInitializer()Lnet/minecraft/network/NetworkState$PacketHandlerInitializer;
-
getPacketIdToPacketMap
- Mappings:
Namespace Name Mixin selector official a
Lsn;a(Lve;)Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
intermediary method_39498
Lnet/minecraft/class_2539;method_39498(Lnet/minecraft/class_2598;)Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
named getPacketIdToPacketMap
Lnet/minecraft/network/NetworkState;getPacketIdToPacketMap(Lnet/minecraft/network/NetworkSide;)Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
-
getId
- Mappings:
Namespace Name Mixin selector official a
Lsn;a()Ljava/lang/String;
intermediary method_10785
Lnet/minecraft/class_2539;method_10785()Ljava/lang/String;
named getId
Lnet/minecraft/network/NetworkState;getId()Ljava/lang/String;
-
getHandler
- Mappings:
Namespace Name Mixin selector official b
Lsn;b(Lve;)Lsn$a;
intermediary method_52921
Lnet/minecraft/class_2539;method_52921(Lnet/minecraft/class_2598;)Lnet/minecraft/class_2539$class_8698;
named getHandler
Lnet/minecraft/network/NetworkState;getHandler(Lnet/minecraft/network/NetworkSide;)Lnet/minecraft/network/NetworkState$PacketHandler;
-