Package net.minecraft.network
Enum Class NetworkState
- All Implemented Interfaces:
Serializable
,Comparable<NetworkState>
,Constable
- Mappings:
Namespace Name official of
intermediary net/minecraft/class_2539
named net/minecraft/network/NetworkState
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate 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 static Map<Class<? extends Packet<?>>,NetworkState>
private static int
private static int
private Map<NetworkSide,? extends NetworkState.PacketHandler<?>>
private int
private static NetworkState[]
-
Constructor Summary
ModifierConstructorDescriptionprivate
NetworkState(int id, NetworkState.PacketHandlerInitializer packetHandlerInitializer)
-
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable NetworkState
byId(int id)
private static NetworkState.PacketHandlerInitializer
int
getId()
getPacketHandler(NetworkSide side, int packetId, PacketByteBuf buf)
static NetworkState
getPacketHandlerState(Packet<?> handler)
getPacketId(NetworkSide side, Packet<?> 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
Lof;a:Lof;
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
Lof;b:Lof;
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
Lof;c:Lof;
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
Lof;d:Lof;
intermediary field_20593
Lnet/minecraft/class_2539;field_20593:Lnet/minecraft/class_2539;
named LOGIN
Lnet/minecraft/network/NetworkState;LOGIN:Lnet/minecraft/network/NetworkState;
-
-
Field Details
-
NULL_PACKET_ID_OR_MIN_STATE_ID
private static final int NULL_PACKET_ID_OR_MIN_STATE_ID- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official e
Lof;e:I
intermediary field_33281
Lnet/minecraft/class_2539;field_33281:I
named NULL_PACKET_ID_OR_MIN_STATE_ID
Lnet/minecraft/network/NetworkState;NULL_PACKET_ID_OR_MIN_STATE_ID:I
-
MAX_STATE_ID
private static final int MAX_STATE_ID- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official f
Lof;f:I
intermediary field_33282
Lnet/minecraft/class_2539;field_33282:I
named MAX_STATE_ID
Lnet/minecraft/network/NetworkState;MAX_STATE_ID:I
-
STATES
- Mappings:
Namespace Name Mixin selector official g
Lof;g:[Lof;
intermediary field_11693
Lnet/minecraft/class_2539;field_11693:[Lnet/minecraft/class_2539;
named STATES
Lnet/minecraft/network/NetworkState;STATES:[Lnet/minecraft/network/NetworkState;
-
HANDLER_STATE_MAP
- Mappings:
Namespace Name Mixin selector official h
Lof;h:Ljava/util/Map;
intermediary field_11687
Lnet/minecraft/class_2539;field_11687:Ljava/util/Map;
named HANDLER_STATE_MAP
Lnet/minecraft/network/NetworkState;HANDLER_STATE_MAP:Ljava/util/Map;
-
stateId
private final int stateId- Mappings:
Namespace Name Mixin selector official i
Lof;i:I
intermediary field_20594
Lnet/minecraft/class_2539;field_20594:I
named stateId
Lnet/minecraft/network/NetworkState;stateId:I
-
packetHandlers
- Mappings:
Namespace Name Mixin selector official j
Lof;j: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>
Lof;<init>(Ljava/lang/String;IILof$b;)V
intermediary <init>
Lnet/minecraft/class_2539;<init>(Ljava/lang/String;IILnet/minecraft/class_2539$class_4533;)V
named <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 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
Lof;b()Lof$b;
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;
-
getPacketId
- Mappings:
Namespace Name Mixin selector official a
Lof;a(Lpl;Lpk;)Ljava/lang/Integer;
intermediary method_10781
Lnet/minecraft/class_2539;method_10781(Lnet/minecraft/class_2598;Lnet/minecraft/class_2596;)Ljava/lang/Integer;
named getPacketId
Lnet/minecraft/network/NetworkState;getPacketId(Lnet/minecraft/network/NetworkSide;Lnet/minecraft/network/Packet;)Ljava/lang/Integer;
-
getPacketHandler
@Nullable public @Nullable Packet<?> getPacketHandler(NetworkSide side, int packetId, PacketByteBuf buf)- Mappings:
Namespace Name Mixin selector official a
Lof;a(Lpl;ILog;)Lpk;
intermediary method_10783
Lnet/minecraft/class_2539;method_10783(Lnet/minecraft/class_2598;ILnet/minecraft/class_2540;)Lnet/minecraft/class_2596;
named getPacketHandler
Lnet/minecraft/network/NetworkState;getPacketHandler(Lnet/minecraft/network/NetworkSide;ILnet/minecraft/network/PacketByteBuf;)Lnet/minecraft/network/Packet;
-
getId
public int getId()- Mappings:
Namespace Name Mixin selector official a
Lof;a()I
intermediary method_10785
Lnet/minecraft/class_2539;method_10785()I
named getId
Lnet/minecraft/network/NetworkState;getId()I
-
byId
- Mappings:
Namespace Name Mixin selector official a
Lof;a(I)Lof;
intermediary method_10782
Lnet/minecraft/class_2539;method_10782(I)Lnet/minecraft/class_2539;
named byId
Lnet/minecraft/network/NetworkState;byId(I)Lnet/minecraft/network/NetworkState;
-
getPacketHandlerState
- Mappings:
Namespace Name Mixin selector official a
Lof;a(Lpk;)Lof;
intermediary method_10786
Lnet/minecraft/class_2539;method_10786(Lnet/minecraft/class_2596;)Lnet/minecraft/class_2539;
named getPacketHandlerState
Lnet/minecraft/network/NetworkState;getPacketHandlerState(Lnet/minecraft/network/Packet;)Lnet/minecraft/network/NetworkState;
-