Package net.minecraft.world
Record Class Category
java.lang.Object
java.lang.Record
net.minecraft.world.Category
- Record Components:
id-
- Mappings:
Namespace Name named net/minecraft/world/Categoryintermediary net/minecraft/class_5198official esjnamed idintermediary comp_5174official h
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.static Categorymethod_76160(Identifier identifier) private static Categorymethod_76161(String string) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
id
The field for theidrecord component. -
field_64175
- Mappings:
Namespace Name Mixin selector named field_64175Lnet/minecraft/world/Category;field_64175:Ljava/util/List;intermediary field_64175Lnet/minecraft/class_5198;field_64175:Ljava/util/List;official iLesj;i:Ljava/util/List;
-
PLAYER
- Mappings:
Namespace Name Mixin selector named PLAYERLnet/minecraft/world/Category;PLAYER:Lnet/minecraft/world/Category;intermediary field_24094Lnet/minecraft/class_5198;field_24094:Lnet/minecraft/class_5198;official aLesj;a:Lesj;
-
MOBS
- Mappings:
Namespace Name Mixin selector named MOBSLnet/minecraft/world/Category;MOBS:Lnet/minecraft/world/Category;intermediary field_24095Lnet/minecraft/class_5198;field_24095:Lnet/minecraft/class_5198;official bLesj;b:Lesj;
-
SPAWNING
- Mappings:
Namespace Name Mixin selector named SPAWNINGLnet/minecraft/world/Category;SPAWNING:Lnet/minecraft/world/Category;intermediary field_24096Lnet/minecraft/class_5198;field_24096:Lnet/minecraft/class_5198;official cLesj;c:Lesj;
-
DROPS
- Mappings:
Namespace Name Mixin selector named DROPSLnet/minecraft/world/Category;DROPS:Lnet/minecraft/world/Category;intermediary field_24097Lnet/minecraft/class_5198;field_24097:Lnet/minecraft/class_5198;official dLesj;d:Lesj;
-
UPDATES
- Mappings:
Namespace Name Mixin selector named UPDATESLnet/minecraft/world/Category;UPDATES:Lnet/minecraft/world/Category;intermediary field_24098Lnet/minecraft/class_5198;field_24098:Lnet/minecraft/class_5198;official eLesj;e:Lesj;
-
CHAT
- Mappings:
Namespace Name Mixin selector named CHATLnet/minecraft/world/Category;CHAT:Lnet/minecraft/world/Category;intermediary field_24099Lnet/minecraft/class_5198;field_24099:Lnet/minecraft/class_5198;official fLesj;f:Lesj;
-
MISC
- Mappings:
Namespace Name Mixin selector named MISCLnet/minecraft/world/Category;MISC:Lnet/minecraft/world/Category;intermediary field_24100Lnet/minecraft/class_5198;field_24100:Lnet/minecraft/class_5198;official gLesj;g:Lesj;
-
-
Constructor Details
-
Category
Creates an instance of aCategoryrecord class.- Parameters:
id- the value for theidrecord component
-
-
Method Details
-
getCategory
- Mappings:
Namespace Name Mixin selector named getCategoryLnet/minecraft/world/Category;getCategory()Lnet/minecraft/util/Identifier;intermediary method_27328Lnet/minecraft/class_5198;method_27328()Lnet/minecraft/class_2960;official aLesj;a()Lamu;
-
method_76161
- Mappings:
Namespace Name Mixin selector named method_76161Lnet/minecraft/world/Category;method_76161(Ljava/lang/String;)Lnet/minecraft/world/Category;intermediary method_76161Lnet/minecraft/class_5198;method_76161(Ljava/lang/String;)Lnet/minecraft/class_5198;official aLesj;a(Ljava/lang/String;)Lesj;
-
method_76160
- Mappings:
Namespace Name Mixin selector named method_76160Lnet/minecraft/world/Category;method_76160(Lnet/minecraft/util/Identifier;)Lnet/minecraft/world/Category;intermediary method_76160Lnet/minecraft/class_5198;method_76160(Lnet/minecraft/class_2960;)Lnet/minecraft/class_5198;official aLesj;a(Lamu;)Lesj;
-
method_76162
- Mappings:
Namespace Name Mixin selector named method_76162Lnet/minecraft/world/Category;method_76162()Lnet/minecraft/text/MutableText;intermediary method_76162Lnet/minecraft/class_5198;method_76162()Lnet/minecraft/class_5250;official bLesj;b()Lyx;
-
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
-