public static enum GameRules.RuleCategory extends Enum<GameRules.RuleCategory>
| Enum Constant and Description |
|---|
CHAT |
DROPS |
MISC |
MOBS |
PLAYER |
SPAWNING |
UPDATES |
| Modifier and Type | Method and Description |
|---|---|
String |
getCategory() |
static GameRules.RuleCategory |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GameRules.RuleCategory[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GameRules.RuleCategory PLAYER
public static final GameRules.RuleCategory MOBS
public static final GameRules.RuleCategory SPAWNING
public static final GameRules.RuleCategory DROPS
public static final GameRules.RuleCategory UPDATES
public static final GameRules.RuleCategory CHAT
public static final GameRules.RuleCategory MISC
private final String category
public static GameRules.RuleCategory[] values()
for (GameRules.RuleCategory c : GameRules.RuleCategory.values()) System.out.println(c);
public static GameRules.RuleCategory 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()