createAttributeModifier

public static Object createAttributeModifier(Object attributeObject, double amount, EquipmentSlot slot)

Create an attribute modifier with support for legacy versions.

Return

The created attribute modifier

Parameters

attributeObject

The attribute object

amount

The amount to add

slot

The equipment slot