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(String name, ResourceKey<TrimMaterial> materialKey, Map<ResourceKey<EquipmentAsset>,String> overrideArmorMaterials)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ResourceKey
<TrimMaterial> The field for thematerialKey
record component.private final String
The field for thename
record component.private final Map
<ResourceKey<EquipmentAsset>, String> The field for theoverrideArmorMaterials
record component. -
Constructor Summary
ConstructorsConstructorDescriptionTrimMaterialData
(String name, ResourceKey<TrimMaterial> materialKey, Map<ResourceKey<EquipmentAsset>, String> overrideArmorMaterials) Creates an instance of aTrimMaterialData
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal 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.name()
Returns the value of thename
record component.Returns the value of theoverrideArmorMaterials
record component.textureName
(ResourceKey<EquipmentAsset> p_387088_) final String
toString()
Returns a string representation of this record class.
-
Field Details
-
name
The field for thename
record component. -
materialKey
The field for thematerialKey
record component. -
overrideArmorMaterials
The field for theoverrideArmorMaterials
record component.
-
-
Constructor Details
-
TrimMaterialData
public TrimMaterialData(String name, ResourceKey<TrimMaterial> materialKey, Map<ResourceKey<EquipmentAsset>, String> overrideArmorMaterials) Creates an instance of aTrimMaterialData
record class.- Parameters:
name
- the value for thename
record componentmaterialKey
- the value for thematerialKey
record componentoverrideArmorMaterials
- the value for theoverrideArmorMaterials
record component
-
-
Method Details
-
textureName
-
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)
. -
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
materialKey
Returns the value of thematerialKey
record component.- Returns:
- the value of the
materialKey
record component
-
overrideArmorMaterials
Returns the value of theoverrideArmorMaterials
record component.- Returns:
- the value of the
overrideArmorMaterials
record component
-