Record Class ArmorTrimMaterial
java.lang.Object
java.lang.Record
com.viaversion.viaversion.api.minecraft.item.data.ArmorTrimMaterial
-
Field Summary
-
Constructor Summary
ConstructorDescriptionArmorTrimMaterial
(String assetName, int itemId, float itemModelIndex, Map<String, String> overrideArmorMaterials, com.viaversion.nbt.tag.Tag description) Creates an instance of aArmorTrimMaterial
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theassetName
record component.com.viaversion.nbt.tag.Tag
Returns the value of thedescription
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.int
itemId()
Returns the value of theitemId
record component.float
Returns the value of theitemModelIndex
record component.Returns the value of theoverrideArmorMaterials
record component.rewrite
(it.unimi.dsi.fastutil.ints.Int2IntFunction idRewriteFunction) final String
toString()
Returns a string representation of this record class.
-
Field Details
-
TYPE
-
-
Constructor Details
-
ArmorTrimMaterial
public ArmorTrimMaterial(String assetName, int itemId, float itemModelIndex, Map<String, String> overrideArmorMaterials, com.viaversion.nbt.tag.Tag description) Creates an instance of aArmorTrimMaterial
record class.- Parameters:
assetName
- the value for theassetName
record componentitemId
- the value for theitemId
record componentitemModelIndex
- the value for theitemModelIndex
record componentoverrideArmorMaterials
- the value for theoverrideArmorMaterials
record componentdescription
- the value for thedescription
record component
-
-
Method Details
-
rewrite
-
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
assetName
Returns the value of theassetName
record component.- Returns:
- the value of the
assetName
record component
-
itemId
public int itemId()Returns the value of theitemId
record component.- Returns:
- the value of the
itemId
record component
-
itemModelIndex
public float itemModelIndex()Returns the value of theitemModelIndex
record component.- Returns:
- the value of the
itemModelIndex
record component
-
overrideArmorMaterials
Returns the value of theoverrideArmorMaterials
record component.- Returns:
- the value of the
overrideArmorMaterials
record component
-
description
public com.viaversion.nbt.tag.Tag description()Returns the value of thedescription
record component.- Returns:
- the value of the
description
record component
-