Package net.minecraft
Record Class class_10151.class_10154
java.lang.Object
java.lang.Record
net.minecraft.class_10151.class_10154
- Record Components:
id-type-defines-
- Enclosing class:
class_10151
@Environment(CLIENT)
private static record class_10151.class_10154(Identifier id, class_10141.Type type, class_10149 defines)
extends Record
- Mappings:
Namespace Name named net/minecraft/class_10151$class_10154intermediary net/minecraft/class_10151$class_10154official ghx$cnamed idintermediary comp_3108official anamed typeintermediary comp_3109official bnamed definesintermediary comp_3110official c
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final class_10149The field for thedefinesrecord component.private final IdentifierThe field for theidrecord component.private final class_10141.TypeThe field for thetyperecord component. -
Constructor Summary
ConstructorsConstructorDescriptionclass_10154(Identifier identifier, class_10141.Type type, class_10149 class_10149) -
Method Summary
Modifier and TypeMethodDescriptiondefines()Returns the value of thedefinesrecord component.final 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.toString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Field Details
-
Constructor Details
-
class_10154
class_10154(Identifier identifier, class_10141.Type type, class_10149 class_10149)
-
-
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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
defines
Returns the value of thedefinesrecord component.- Returns:
- the value of the
definesrecord component
-