public static final class GameRules.Key<T extends GameRules.Rule<T>> extends Object
Modifier and Type | Field and Description |
---|---|
private GameRules.Category |
category |
private String |
name |
Constructor and Description |
---|
Key(String name,
GameRules.Category category) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
GameRules.Category |
getCategory() |
String |
getName() |
String |
getTranslationKey() |
int |
hashCode() |
String |
toString() |
private final String name
private final GameRules.Category category
public Key(String name, GameRules.Category category)
public String getName()
public String getTranslationKey()
@Environment(value=CLIENT) public GameRules.Category getCategory()