Enum Class NetworkState

java.lang.Object
java.lang.Enum<NetworkState>
net.minecraft.network.NetworkState
All Implemented Interfaces:
Serializable, Comparable<NetworkState>, Constable

public enum NetworkState extends Enum<NetworkState>
Mappings:
Namespace Name
official up
intermediary net/minecraft/class_2539
named net/minecraft/network/NetworkState
  • Enum Constant Details

    • HANDSHAKING

      public static final NetworkState HANDSHAKING
      Mappings:
      Namespace Name Mixin selector
      official a Lup;a:Lup;
      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

      public static final NetworkState PLAY
      Mappings:
      Namespace Name Mixin selector
      official b Lup;b:Lup;
      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

      public static final NetworkState STATUS
      Mappings:
      Namespace Name Mixin selector
      official c Lup;c:Lup;
      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

      public static final NetworkState LOGIN
      Mappings:
      Namespace Name Mixin selector
      official d Lup;d:Lup;
      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

      public static final NetworkState CONFIGURATION
      Mappings:
      Namespace Name Mixin selector
      official e Lup;e:Lup;
      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

    • stateId

      private final String stateId
      Mappings:
      Namespace Name Mixin selector
      official f Lup;f: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;
  • Constructor Details

    • NetworkState

      private NetworkState(String stateId)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lup;<init>(Ljava/lang/String;ILjava/lang/String;)V
      intermediary <init> Lnet/minecraft/class_2539;<init>(Ljava/lang/String;ILjava/lang/String;)V
      named <init> Lnet/minecraft/network/NetworkState;<init>(Ljava/lang/String;ILjava/lang/String;)V
  • Method Details

    • values

      public static NetworkState[] 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

      public static NetworkState valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getId

      public String getId()
      Mappings:
      Namespace Name Mixin selector
      official a Lup;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;