Package net.minecraft.client.network
Enum Class ServerInfo.ServerType
- All Implemented Interfaces:
Serializable,Comparable<ServerInfo.ServerType>,Constable
- Enclosing class:
ServerInfo
- Mappings:
Namespace Name official fjh$bintermediary net/minecraft/class_642$class_8678named net/minecraft/client/network/ServerInfo$ServerType
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ServerInfo.ServerTypeReturns the enum constant of this class with the specified name.static ServerInfo.ServerType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LAN
- Mappings:
Namespace Name Mixin selector official aLfjh$b;a:Lfjh$b;intermediary field_45609Lnet/minecraft/class_642$class_8678;field_45609:Lnet/minecraft/class_642$class_8678;named LANLnet/minecraft/client/network/ServerInfo$ServerType;LAN:Lnet/minecraft/client/network/ServerInfo$ServerType;
-
REALM
- Mappings:
Namespace Name Mixin selector official bLfjh$b;b:Lfjh$b;intermediary field_45610Lnet/minecraft/class_642$class_8678;field_45610:Lnet/minecraft/class_642$class_8678;named REALMLnet/minecraft/client/network/ServerInfo$ServerType;REALM:Lnet/minecraft/client/network/ServerInfo$ServerType;
-
OTHER
- Mappings:
Namespace Name Mixin selector official cLfjh$b;c:Lfjh$b;intermediary field_45611Lnet/minecraft/class_642$class_8678;field_45611:Lnet/minecraft/class_642$class_8678;named OTHERLnet/minecraft/client/network/ServerInfo$ServerType;OTHER:Lnet/minecraft/client/network/ServerInfo$ServerType;
-
-
Constructor Details
-
ServerType
private ServerType()
-
-
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
-