Record Class GameRuleCategory

java.lang.Object
java.lang.Record
net.minecraft.world.rule.GameRuleCategory
Record Components:
id -

public record GameRuleCategory(Identifier id) extends Record
Mappings:
Namespace Name
named net/minecraft/world/rule/GameRuleCategory
intermediary net/minecraft/class_5198
official eso
named id
intermediary comp_5174
official h
  • Field Details

    • id

      private final Identifier id
      The field for the id record component.
    • CATEGORIES

      private static final List<GameRuleCategory> CATEGORIES
      Mappings:
      Namespace Name Mixin selector
      named CATEGORIES Lnet/minecraft/world/rule/GameRuleCategory;CATEGORIES:Ljava/util/List;
      intermediary field_64175 Lnet/minecraft/class_5198;field_64175:Ljava/util/List;
      official i Leso;i:Ljava/util/List;
    • PLAYER

      public static final GameRuleCategory PLAYER
      Mappings:
      Namespace Name Mixin selector
      named PLAYER Lnet/minecraft/world/rule/GameRuleCategory;PLAYER:Lnet/minecraft/world/rule/GameRuleCategory;
      intermediary field_24094 Lnet/minecraft/class_5198;field_24094:Lnet/minecraft/class_5198;
      official a Leso;a:Leso;
    • MOBS

      public static final GameRuleCategory MOBS
      Mappings:
      Namespace Name Mixin selector
      named MOBS Lnet/minecraft/world/rule/GameRuleCategory;MOBS:Lnet/minecraft/world/rule/GameRuleCategory;
      intermediary field_24095 Lnet/minecraft/class_5198;field_24095:Lnet/minecraft/class_5198;
      official b Leso;b:Leso;
    • SPAWNING

      public static final GameRuleCategory SPAWNING
      Mappings:
      Namespace Name Mixin selector
      named SPAWNING Lnet/minecraft/world/rule/GameRuleCategory;SPAWNING:Lnet/minecraft/world/rule/GameRuleCategory;
      intermediary field_24096 Lnet/minecraft/class_5198;field_24096:Lnet/minecraft/class_5198;
      official c Leso;c:Leso;
    • DROPS

      public static final GameRuleCategory DROPS
      Mappings:
      Namespace Name Mixin selector
      named DROPS Lnet/minecraft/world/rule/GameRuleCategory;DROPS:Lnet/minecraft/world/rule/GameRuleCategory;
      intermediary field_24097 Lnet/minecraft/class_5198;field_24097:Lnet/minecraft/class_5198;
      official d Leso;d:Leso;
    • UPDATES

      public static final GameRuleCategory UPDATES
      Mappings:
      Namespace Name Mixin selector
      named UPDATES Lnet/minecraft/world/rule/GameRuleCategory;UPDATES:Lnet/minecraft/world/rule/GameRuleCategory;
      intermediary field_24098 Lnet/minecraft/class_5198;field_24098:Lnet/minecraft/class_5198;
      official e Leso;e:Leso;
    • CHAT

      public static final GameRuleCategory CHAT
      Mappings:
      Namespace Name Mixin selector
      named CHAT Lnet/minecraft/world/rule/GameRuleCategory;CHAT:Lnet/minecraft/world/rule/GameRuleCategory;
      intermediary field_24099 Lnet/minecraft/class_5198;field_24099:Lnet/minecraft/class_5198;
      official f Leso;f:Leso;
    • MISC

      public static final GameRuleCategory MISC
      Mappings:
      Namespace Name Mixin selector
      named MISC Lnet/minecraft/world/rule/GameRuleCategory;MISC:Lnet/minecraft/world/rule/GameRuleCategory;
      intermediary field_24100 Lnet/minecraft/class_5198;field_24100:Lnet/minecraft/class_5198;
      official g Leso;g:Leso;
  • Constructor Details

    • GameRuleCategory

      public GameRuleCategory(Identifier id)
      Creates an instance of a GameRuleCategory record class.
      Parameters:
      id - the value for the id record component
  • Method Details

    • getCategory

      public Identifier getCategory()
      Mappings:
      Namespace Name Mixin selector
      named getCategory Lnet/minecraft/world/rule/GameRuleCategory;getCategory()Lnet/minecraft/util/Identifier;
      intermediary method_27328 Lnet/minecraft/class_5198;method_27328()Lnet/minecraft/class_2960;
      official a Leso;a()Lamo;
    • register

      private static GameRuleCategory register(String name)
      Mappings:
      Namespace Name Mixin selector
      named register Lnet/minecraft/world/rule/GameRuleCategory;register(Ljava/lang/String;)Lnet/minecraft/world/rule/GameRuleCategory;
      intermediary method_76161 Lnet/minecraft/class_5198;method_76161(Ljava/lang/String;)Lnet/minecraft/class_5198;
      official a Leso;a(Ljava/lang/String;)Leso;
    • register

      public static GameRuleCategory register(Identifier id)
      Mappings:
      Namespace Name Mixin selector
      named register Lnet/minecraft/world/rule/GameRuleCategory;register(Lnet/minecraft/util/Identifier;)Lnet/minecraft/world/rule/GameRuleCategory;
      intermediary method_76160 Lnet/minecraft/class_5198;method_76160(Lnet/minecraft/class_2960;)Lnet/minecraft/class_5198;
      official a Leso;a(Lamo;)Leso;
    • getText

      public MutableText getText()
      Mappings:
      Namespace Name Mixin selector
      named getText Lnet/minecraft/world/rule/GameRuleCategory;getText()Lnet/minecraft/text/MutableText;
      intermediary method_76162 Lnet/minecraft/class_5198;method_76162()Lnet/minecraft/class_5250;
      official b Leso;b()Lyw;
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • id

      public Identifier id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component