Record Class Category

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

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

    • id

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

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

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

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

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

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

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

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

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

    • Category

      public Category(Identifier id)
      Creates an instance of a Category 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/Category;getCategory()Lnet/minecraft/util/Identifier;
      intermediary method_27328 Lnet/minecraft/class_5198;method_27328()Lnet/minecraft/class_2960;
      official a Lesj;a()Lamu;
    • method_76161

      private static Category method_76161(String string)
      Mappings:
      Namespace Name Mixin selector
      named method_76161 Lnet/minecraft/world/Category;method_76161(Ljava/lang/String;)Lnet/minecraft/world/Category;
      intermediary method_76161 Lnet/minecraft/class_5198;method_76161(Ljava/lang/String;)Lnet/minecraft/class_5198;
      official a Lesj;a(Ljava/lang/String;)Lesj;
    • method_76160

      public static Category method_76160(Identifier identifier)
      Mappings:
      Namespace Name Mixin selector
      named method_76160 Lnet/minecraft/world/Category;method_76160(Lnet/minecraft/util/Identifier;)Lnet/minecraft/world/Category;
      intermediary method_76160 Lnet/minecraft/class_5198;method_76160(Lnet/minecraft/class_2960;)Lnet/minecraft/class_5198;
      official a Lesj;a(Lamu;)Lesj;
    • method_76162

      public MutableText method_76162()
      Mappings:
      Namespace Name Mixin selector
      named method_76162 Lnet/minecraft/world/Category;method_76162()Lnet/minecraft/text/MutableText;
      intermediary method_76162 Lnet/minecraft/class_5198;method_76162()Lnet/minecraft/class_5250;
      official b Lesj;b()Lyx;
    • 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