Interface Modifier<C extends ModifierContext>
- Type Parameters:
C- context type
public interface Modifier<C extends ModifierContext>
A prioritized calculation step in a
ModifierType pipeline.-
Method Details
-
key
@NotNull @NotNull net.kyori.adventure.key.Key key()- Returns:
- unique namespaced key of this modifier (e.g.
Key.key("myaddon", "vip_boost"))
-
priority
default int priority()- Returns:
- priority ordering (lower runs earlier; default is
0)
-
operation
- Returns:
- mathematical operation to perform
-
evaluate
Evaluates the modifier's operand for the given context. Returning the identity value (0.0forOperation.ADD,1.0forOperation.MULTIPLY, orDouble.NaNfor any operation) skips this modifier for the current evaluation. -
displayTag
-