Enum Class ServerInfo.ServerType

java.lang.Object
java.lang.Enum<ServerInfo.ServerType>
net.minecraft.client.network.ServerInfo.ServerType
All Implemented Interfaces:
Serializable, Comparable<ServerInfo.ServerType>, Constable
Enclosing class:
ServerInfo

@Environment(CLIENT) public static enum ServerInfo.ServerType extends Enum<ServerInfo.ServerType>
Mappings:
Namespace Name
official fod$b
intermediary net/minecraft/class_642$class_8678
named net/minecraft/client/network/ServerInfo$ServerType
  • Enum Constant Details

    • LAN

      public static final ServerInfo.ServerType LAN
      Mappings:
      Namespace Name Mixin selector
      official a Lfod$b;a:Lfod$b;
      intermediary field_45609 Lnet/minecraft/class_642$class_8678;field_45609:Lnet/minecraft/class_642$class_8678;
      named LAN Lnet/minecraft/client/network/ServerInfo$ServerType;LAN:Lnet/minecraft/client/network/ServerInfo$ServerType;
    • REALM

      public static final ServerInfo.ServerType REALM
      Mappings:
      Namespace Name Mixin selector
      official b Lfod$b;b:Lfod$b;
      intermediary field_45610 Lnet/minecraft/class_642$class_8678;field_45610:Lnet/minecraft/class_642$class_8678;
      named REALM Lnet/minecraft/client/network/ServerInfo$ServerType;REALM:Lnet/minecraft/client/network/ServerInfo$ServerType;
    • OTHER

      public static final ServerInfo.ServerType OTHER
      Mappings:
      Namespace Name Mixin selector
      official c Lfod$b;c:Lfod$b;
      intermediary field_45611 Lnet/minecraft/class_642$class_8678;field_45611:Lnet/minecraft/class_642$class_8678;
      named OTHER Lnet/minecraft/client/network/ServerInfo$ServerType;OTHER:Lnet/minecraft/client/network/ServerInfo$ServerType;
  • Constructor Details

    • ServerType

      private ServerType()
  • Method Details

    • values

      public static ServerInfo.ServerType[] 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 ServerInfo.ServerType 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