BasicModifierOperation

An operation that can be applied to attribute modifiers.

Entries

Link copied to clipboard

Adds each modifier's amount to the base value.

Link copied to clipboard

Multiplies the base value by 1 + the sum of all the modifier amounts.

Link copied to clipboard

Multiplies the base by each value + 1.

Functions

Link copied to clipboard
abstract fun apply(base: Double, modifiers: Collection<AttributeModifier>): Double

Applies this operation to the given base value, modifying it with the given modifiers, and returns the result.

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.

Properties

Link copied to clipboard
Link copied to clipboard