Package net.minecraft.client.data.models
Record Class ItemModelGenerators.TrimMaterialData
java.lang.Object
java.lang.Record
net.minecraft.client.data.models.ItemModelGenerators.TrimMaterialData
- Enclosing class:
ItemModelGenerators
public static record ItemModelGenerators.TrimMaterialData(MaterialAssetGroup assets, ResourceKey<TrimMaterial> materialKey)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final MaterialAssetGroup
The field for theassets
record component.private final ResourceKey
<TrimMaterial> The field for thematerialKey
record component. -
Constructor Summary
ConstructorsConstructorDescriptionTrimMaterialData
(MaterialAssetGroup assets, ResourceKey<TrimMaterial> materialKey) Creates an instance of aTrimMaterialData
record class. -
Method Summary
Modifier and TypeMethodDescriptionassets()
Returns the value of theassets
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of thematerialKey
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
assets
The field for theassets
record component. -
materialKey
The field for thematerialKey
record component.
-
-
Constructor Details
-
TrimMaterialData
Creates an instance of aTrimMaterialData
record class.- Parameters:
assets
- the value for theassets
record componentmaterialKey
- the value for thematerialKey
record component
-
-
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)
. -
assets
Returns the value of theassets
record component.- Returns:
- the value of the
assets
record component
-
materialKey
Returns the value of thematerialKey
record component.- Returns:
- the value of the
materialKey
record component
-