of

@Contract(value = "_, _, _, _ -> new", pure = true)
fun of(uuid: UUID, name: String, amount: Double, operation: ModifierOperation): AttributeModifier

Creates a new attribute modifier with the given values.

Return

a new attribute modifier

Parameters

uuid

the unique ID of the modifier

name

the name of the modifier

amount

the amount to modify attribute values by

operation

the operation to perform on the modifier