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$TrimMaterialintermediary net/minecraft/class_4915$class_8072official fnc$anamed nameintermediary comp_1219official anamed materialKeyintermediary comp_3367official bnamed overrideArmorMaterialsintermediary comp_1239official c
-
Field Summary
FieldsModifier 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 Summary
ConstructorsConstructorDescriptionTrimMaterial(String string, RegistryKey<ArmorTrimMaterial> registryKey, Map<RegistryKey<EquipmentAsset>, String> map) -
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.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
-
name
The field for thenamerecord component. -
materialKey
The field for thematerialKeyrecord component. -
overrideArmorMaterials
The field for theoverrideArmorMaterialsrecord component.
-
-
Constructor Details
-
TrimMaterial
TrimMaterial(String string, RegistryKey<ArmorTrimMaterial> registryKey, Map<RegistryKey<EquipmentAsset>, String> map)
-
-
Method Details
-
texture
- Mappings:
Namespace Name Mixin selector named textureLnet/minecraft/client/data/ItemModelGenerator$TrimMaterial;texture(Lnet/minecraft/registry/RegistryKey;)Ljava/lang/String;intermediary method_65458Lnet/minecraft/class_4915$class_8072;method_65458(Lnet/minecraft/class_5321;)Ljava/lang/String;official aLfnc$a;a(Laku;)Ljava/lang/String;
-
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 thenamerecord component.- Returns:
- the value of the
namerecord component
-
materialKey
Returns the value of thematerialKeyrecord component.- Returns:
- the value of the
materialKeyrecord component
-
overrideArmorMaterials
Returns the value of theoverrideArmorMaterialsrecord component.- Returns:
- the value of the
overrideArmorMaterialsrecord component
-