getAttributeValue

fun DataComponentGetter.getAttributeValue(attribute: Holder<Attribute>, slot: EquipmentSlot? = null, baseValue: Double = attribute.value().defaultValue): Double

Parameters

slot

if null, all modifiers for the attribute will be applied, otherwise only modifiers for the specified slot

See also

ItemAttributeModifiers
AttributeInstance