public static enum GameRules.Category extends Enum<GameRules.Category>
Enum Constant and Description |
---|
CHAT |
DROPS |
MISC |
MOBS |
PLAYER |
SPAWNING |
UPDATES |
Modifier and Type | Method and Description |
---|---|
String |
getCategory() |
static GameRules.Category |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GameRules.Category[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GameRules.Category PLAYER
public static final GameRules.Category MOBS
public static final GameRules.Category SPAWNING
public static final GameRules.Category DROPS
public static final GameRules.Category UPDATES
public static final GameRules.Category CHAT
public static final GameRules.Category MISC
private final String category
public static GameRules.Category[] values()
for (GameRules.Category c : GameRules.Category.values()) System.out.println(c);
public static GameRules.Category valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null@Environment(value=CLIENT) public String getCategory()