Package net.minecraft.world.rule
Record Class GameRuleCategory
java.lang.Object
java.lang.Record
net.minecraft.world.rule.GameRuleCategory
- Record Components:
id-
- Mappings:
Namespace Name named net/minecraft/world/rule/GameRuleCategoryintermediary net/minecraft/class_5198official esonamed idintermediary comp_5174official h
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final List<GameRuleCategory> static final GameRuleCategorystatic final GameRuleCategoryprivate final IdentifierThe field for theidrecord component.static final GameRuleCategorystatic final GameRuleCategorystatic final GameRuleCategorystatic final GameRuleCategorystatic final GameRuleCategory -
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aGameRuleCategoryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.getText()final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.private static GameRuleCategorystatic GameRuleCategoryregister(Identifier id) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
id
The field for theidrecord component. -
CATEGORIES
- Mappings:
Namespace Name Mixin selector named CATEGORIESLnet/minecraft/world/rule/GameRuleCategory;CATEGORIES:Ljava/util/List;intermediary field_64175Lnet/minecraft/class_5198;field_64175:Ljava/util/List;official iLeso;i:Ljava/util/List;
-
PLAYER
- Mappings:
Namespace Name Mixin selector named PLAYERLnet/minecraft/world/rule/GameRuleCategory;PLAYER:Lnet/minecraft/world/rule/GameRuleCategory;intermediary field_24094Lnet/minecraft/class_5198;field_24094:Lnet/minecraft/class_5198;official aLeso;a:Leso;
-
MOBS
- Mappings:
Namespace Name Mixin selector named MOBSLnet/minecraft/world/rule/GameRuleCategory;MOBS:Lnet/minecraft/world/rule/GameRuleCategory;intermediary field_24095Lnet/minecraft/class_5198;field_24095:Lnet/minecraft/class_5198;official bLeso;b:Leso;
-
SPAWNING
- Mappings:
Namespace Name Mixin selector named SPAWNINGLnet/minecraft/world/rule/GameRuleCategory;SPAWNING:Lnet/minecraft/world/rule/GameRuleCategory;intermediary field_24096Lnet/minecraft/class_5198;field_24096:Lnet/minecraft/class_5198;official cLeso;c:Leso;
-
DROPS
- Mappings:
Namespace Name Mixin selector named DROPSLnet/minecraft/world/rule/GameRuleCategory;DROPS:Lnet/minecraft/world/rule/GameRuleCategory;intermediary field_24097Lnet/minecraft/class_5198;field_24097:Lnet/minecraft/class_5198;official dLeso;d:Leso;
-
UPDATES
- Mappings:
Namespace Name Mixin selector named UPDATESLnet/minecraft/world/rule/GameRuleCategory;UPDATES:Lnet/minecraft/world/rule/GameRuleCategory;intermediary field_24098Lnet/minecraft/class_5198;field_24098:Lnet/minecraft/class_5198;official eLeso;e:Leso;
-
CHAT
- Mappings:
Namespace Name Mixin selector named CHATLnet/minecraft/world/rule/GameRuleCategory;CHAT:Lnet/minecraft/world/rule/GameRuleCategory;intermediary field_24099Lnet/minecraft/class_5198;field_24099:Lnet/minecraft/class_5198;official fLeso;f:Leso;
-
MISC
- Mappings:
Namespace Name Mixin selector named MISCLnet/minecraft/world/rule/GameRuleCategory;MISC:Lnet/minecraft/world/rule/GameRuleCategory;intermediary field_24100Lnet/minecraft/class_5198;field_24100:Lnet/minecraft/class_5198;official gLeso;g:Leso;
-
-
Constructor Details
-
GameRuleCategory
Creates an instance of aGameRuleCategoryrecord class.- Parameters:
id- the value for theidrecord component
-
-
Method Details
-
getCategory
- Mappings:
Namespace Name Mixin selector named getCategoryLnet/minecraft/world/rule/GameRuleCategory;getCategory()Lnet/minecraft/util/Identifier;intermediary method_27328Lnet/minecraft/class_5198;method_27328()Lnet/minecraft/class_2960;official aLeso;a()Lamo;
-
register
- Mappings:
Namespace Name Mixin selector named registerLnet/minecraft/world/rule/GameRuleCategory;register(Ljava/lang/String;)Lnet/minecraft/world/rule/GameRuleCategory;intermediary method_76161Lnet/minecraft/class_5198;method_76161(Ljava/lang/String;)Lnet/minecraft/class_5198;official aLeso;a(Ljava/lang/String;)Leso;
-
register
- Mappings:
Namespace Name Mixin selector named registerLnet/minecraft/world/rule/GameRuleCategory;register(Lnet/minecraft/util/Identifier;)Lnet/minecraft/world/rule/GameRuleCategory;intermediary method_76160Lnet/minecraft/class_5198;method_76160(Lnet/minecraft/class_2960;)Lnet/minecraft/class_5198;official aLeso;a(Lamo;)Leso;
-
getText
- Mappings:
Namespace Name Mixin selector named getTextLnet/minecraft/world/rule/GameRuleCategory;getText()Lnet/minecraft/text/MutableText;intermediary method_76162Lnet/minecraft/class_5198;method_76162()Lnet/minecraft/class_5250;official bLeso;b()Lyw;
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-