Package net.minecraft.client.data
Record Class ItemModelGenerator.TrimMaterial
java.lang.Object
java.lang.Record
net.minecraft.client.data.ItemModelGenerator.TrimMaterial
- Record Components:
- name-
- materialKey-
- overrideArmorMaterials-
- Enclosing class:
- ItemModelGenerator
@Environment(CLIENT)
private static record ItemModelGenerator.TrimMaterial(String name, RegistryKey<ArmorTrimMaterial> materialKey, Map<RegistryKey<EquipmentAsset>,String> overrideArmorMaterials)
extends Record 
- Mappings:
- Namespace - Name - named - net/minecraft/client/data/ItemModelGenerator$TrimMaterial- intermediary - net/minecraft/class_4915$class_8072- official - fnc$a- named - name- intermediary - comp_1219- official - a- named - materialKey- intermediary - comp_3367- official - b- named - overrideArmorMaterials- intermediary - comp_1239- official - c
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final RegistryKey<ArmorTrimMaterial> The field for thematerialKeyrecord component.private final StringThe field for thenamerecord component.private final Map<RegistryKey<EquipmentAsset>, String> The field for theoverrideArmorMaterialsrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionTrimMaterial(String string, RegistryKey<ArmorTrimMaterial> registryKey, Map<RegistryKey<EquipmentAsset>, String> map) 
- 
Method SummaryModifier 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.name()Returns the value of thenamerecord component.Returns the value of theoverrideArmorMaterialsrecord component.texture(RegistryKey<EquipmentAsset> equipmentKey) final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
nameThe field for thenamerecord component.
- 
materialKeyThe field for thematerialKeyrecord component.
- 
overrideArmorMaterialsThe field for theoverrideArmorMaterialsrecord component.
 
- 
- 
Constructor Details- 
TrimMaterialTrimMaterial(String string, RegistryKey<ArmorTrimMaterial> registryKey, Map<RegistryKey<EquipmentAsset>, String> map) 
 
- 
- 
Method Details- 
texture- Mappings:
- Namespace - Name - Mixin selector - named - texture- Lnet/minecraft/client/data/ItemModelGenerator$TrimMaterial;texture(Lnet/minecraft/registry/RegistryKey;)Ljava/lang/String;- intermediary - method_65458- Lnet/minecraft/class_4915$class_8072;method_65458(Lnet/minecraft/class_5321;)Ljava/lang/String;- official - a- Lfnc$a;a(Laku;)Ljava/lang/String;
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
nameReturns the value of thenamerecord component.- Returns:
- the value of the namerecord component
 
- 
materialKeyReturns the value of thematerialKeyrecord component.- Returns:
- the value of the materialKeyrecord component
 
- 
overrideArmorMaterialsReturns the value of theoverrideArmorMaterialsrecord component.- Returns:
- the value of the overrideArmorMaterialsrecord component
 
 
-