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>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IChatComponent
getMotd()
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
-
-
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
-
getMotd
public IChatComponent getMotd()
-
-