Package net.minecraft.client.multiplayer
Enum ServerData.ServerResourceMode
- java.lang.Object
-
- java.lang.Enum<ServerData.ServerResourceMode>
-
- net.minecraft.client.multiplayer.ServerData.ServerResourceMode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ServerData.ServerResourceMode>
- Enclosing class:
- ServerData
public static enum ServerData.ServerResourceMode extends java.lang.Enum<ServerData.ServerResourceMode>
-
-
Field Summary
Fields Modifier and Type Field Description private ITextComponent
name
-
Constructor Summary
Constructors Modifier Constructor Description private
ServerResourceMode(java.lang.String p_i1053_3_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ITextComponent
getName()
static ServerData.ServerResourceMode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ServerData.ServerResourceMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ENABLED
public static final ServerData.ServerResourceMode ENABLED
-
DISABLED
public static final ServerData.ServerResourceMode DISABLED
-
PROMPT
public static final ServerData.ServerResourceMode PROMPT
-
-
Field Detail
-
name
private final ITextComponent name
-
-
Method Detail
-
values
public static ServerData.ServerResourceMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ServerData.ServerResourceMode c : ServerData.ServerResourceMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ServerData.ServerResourceMode valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getName
public ITextComponent getName()
-
-