Package net.minecraft.world
Class GameRules.RuleKey<T extends GameRules.RuleValue<T>>
- java.lang.Object
-
- net.minecraft.world.GameRules.RuleKey<T>
-
- Enclosing class:
- GameRules
public static final class GameRules.RuleKey<T extends GameRules.RuleValue<T>> extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private GameRules.Category
category
private java.lang.String
id
-
Constructor Summary
Constructors Constructor Description RuleKey(java.lang.String p_i231614_1_, GameRules.Category p_i231614_2_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object p_equals_1_)
GameRules.Category
getCategory()
java.lang.String
getDescriptionId()
java.lang.String
getId()
int
hashCode()
java.lang.String
toString()
-
-
-
Field Detail
-
id
private final java.lang.String id
-
category
private final GameRules.Category category
-
-
Constructor Detail
-
RuleKey
public RuleKey(java.lang.String p_i231614_1_, GameRules.Category p_i231614_2_)
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object p_equals_1_)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
getId
public java.lang.String getId()
-
getDescriptionId
public java.lang.String getDescriptionId()
-
getCategory
public GameRules.Category getCategory()
-
-