Record Class EquipmentLayerRenderer.TrimSpriteKey
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.entity.layers.EquipmentLayerRenderer.TrimSpriteKey
- Enclosing class:
EquipmentLayerRenderer
static record EquipmentLayerRenderer.TrimSpriteKey(ArmorTrim trim, EquipmentClientInfo.LayerType layerType, ResourceKey<EquipmentAsset> equipmentAssetId)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ResourceKey
<EquipmentAsset> The field for theequipmentAssetId
record component.private final EquipmentClientInfo.LayerType
The field for thelayerType
record component.private final ArmorTrim
The field for thetrim
record component. -
Constructor Summary
ConstructorsConstructorDescriptionTrimSpriteKey
(ArmorTrim trim, EquipmentClientInfo.LayerType layerType, ResourceKey<EquipmentAsset> equipmentAssetId) Creates an instance of aTrimSpriteKey
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.Returns the value of theequipmentAssetId
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of thelayerType
record component.spriteId()
final String
toString()
Returns a string representation of this record class.trim()
Returns the value of thetrim
record component.
-
Field Details
-
trim
The field for thetrim
record component. -
layerType
The field for thelayerType
record component. -
equipmentAssetId
The field for theequipmentAssetId
record component.
-
-
Constructor Details
-
TrimSpriteKey
TrimSpriteKey(ArmorTrim trim, EquipmentClientInfo.LayerType layerType, ResourceKey<EquipmentAsset> equipmentAssetId) Creates an instance of aTrimSpriteKey
record class.- Parameters:
trim
- the value for thetrim
record componentlayerType
- the value for thelayerType
record componentequipmentAssetId
- the value for theequipmentAssetId
record component
-
-
Method Details
-
spriteId
-
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)
. -
trim
Returns the value of thetrim
record component.- Returns:
- the value of the
trim
record component
-
layerType
Returns the value of thelayerType
record component.- Returns:
- the value of the
layerType
record component
-
equipmentAssetId
Returns the value of theequipmentAssetId
record component.- Returns:
- the value of the
equipmentAssetId
record component
-