Package net.minecraft
Record Class class_8497.class_8499
java.lang.Object
java.lang.Record
net.minecraft.class_8497.class_8499
- Record Components:
type-id-name-
- Enclosing class:
class_8497
@Environment(CLIENT)
private static record class_8497.class_8499(class_8497.class_8500 type, String id, String name)
extends Record
- Mappings:
Namespace Name official fic$bintermediary net/minecraft/class_8497$class_8499named net/minecraft/class_8497$class_8499official bintermediary comp_1483named typeofficial cintermediary comp_1484named idofficial dintermediary comp_1485named name
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<class_8497.class_8499>private final StringThe field for theidrecord component.private final StringThe field for thenamerecord component.private final class_8497.class_8500The field for thetyperecord component. -
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.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Field Details
-
type
The field for thetyperecord component. -
id
The field for theidrecord component. -
name
The field for thenamerecord component. -
field_44567
- Mappings:
Namespace Name Mixin selector official aLfic$b;a:Lcom/mojang/serialization/MapCodec;intermediary field_44567Lnet/minecraft/class_8497$class_8499;field_44567:Lcom/mojang/serialization/MapCodec;named field_44567Lnet/minecraft/class_8497$class_8499;field_44567:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
class_8499
class_8499(class_8497.class_8500 class_8500, String string, String string2)
-
-
Method Details
-
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). -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-