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 Details Link icon

  • Constructor Details Link icon

  • Method Details Link icon

    • texture Link icon

      public String texture(RegistryKey<EquipmentAsset> equipmentKey)
      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 Link icon

      public final 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode Link icon

      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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals Link icon

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • name Link icon

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • materialKey Link icon

      public RegistryKey<ArmorTrimMaterial> materialKey()
      Returns the value of the materialKey record component.
      Returns:
      the value of the materialKey record component
    • overrideArmorMaterials Link icon

      public Map<RegistryKey<EquipmentAsset>,String> overrideArmorMaterials()
      Returns the value of the overrideArmorMaterials record component.
      Returns:
      the value of the overrideArmorMaterials record component