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 Summary
FieldsModifier and TypeFieldDescriptionprivate final RegistryKey
<ArmorTrimMaterial> The field for thematerialKey
record component.private final String
The field for thename
record component.private final Map
<RegistryKey<EquipmentAsset>, String> The field for theoverrideArmorMaterials
record component. -
Constructor Summary
ConstructorsConstructorDescriptionTrimMaterial
(String string, RegistryKey<ArmorTrimMaterial> registryKey, Map<RegistryKey<EquipmentAsset>, String> map) -
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.texture
(RegistryKey<EquipmentAsset> equipmentKey) 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
-
TrimMaterial
TrimMaterial(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;
-
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
-