Package net.minecraft.client.data
Record Class ItemModelGenerator.TrimMaterial
java.lang.Object
java.lang.Record
net.minecraft.client.data.ItemModelGenerator.TrimMaterial
- Record Components:
assets
-materialKey
-
- Enclosing class:
ItemModelGenerator
@Environment(CLIENT)
public static record ItemModelGenerator.TrimMaterial(ArmorTrimAssets assets, RegistryKey<ArmorTrimMaterial> materialKey)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/data/ItemModelGenerator$TrimMaterial
intermediary net/minecraft/class_4915$class_8072
official fsj$a
named assets
intermediary comp_3607
official a
named materialKey
intermediary comp_3367
official b
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ArmorTrimAssets
The field for theassets
record component.private final RegistryKey
<ArmorTrimMaterial> The field for thematerialKey
record component. -
Constructor Summary
ConstructorsConstructorDescriptionTrimMaterial
(ArmorTrimAssets armorTrimAssets, RegistryKey<ArmorTrimMaterial> registryKey) -
Method Summary
Modifier and TypeMethodDescriptionassets()
Returns the value of theassets
record component.final 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.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
assets
The field for theassets
record component. -
materialKey
The field for thematerialKey
record component.
-
-
Constructor Details
-
Method Details
-
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)
. -
assets
Returns the value of theassets
record component.- Returns:
- the value of the
assets
record component
-
materialKey
Returns the value of thematerialKey
record component.- Returns:
- the value of the
materialKey
record component
-