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(TrimMaterials.Palette palette, ResourceKey<TrimMaterial> materialKey)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ResourceKey<TrimMaterial> The field for thematerialKeyrecord component.private final TrimMaterials.PaletteThe field for thepaletterecord component. -
Constructor Summary
ConstructorsConstructorDescriptionTrimMaterialData(TrimMaterials.Palette palette, ResourceKey<TrimMaterial> materialKey) Creates an instance of aTrimMaterialDatarecord class. -
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.Returns the value of thematerialKeyrecord component.palette()Returns the value of thepaletterecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
palette
The field for thepaletterecord component. -
materialKey
The field for thematerialKeyrecord component.
-
-
Constructor Details
-
TrimMaterialData
Creates an instance of aTrimMaterialDatarecord class.- Parameters:
palette- the value for thepaletterecord componentmaterialKey- the value for thematerialKeyrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
palette
Returns the value of thepaletterecord component.- Returns:
- the value of the
paletterecord component
-
materialKey
Returns the value of thematerialKeyrecord component.- Returns:
- the value of the
materialKeyrecord component
-