Interface DamageModifier
public interface DamageModifier
A damage modifier that will create a
DamageStep.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceA builder to createDamageModifiers.static interface -
Method Summary
Modifier and TypeMethodDescriptionstatic DamageModifier.Builderbuilder()Creates a newDamageModifier.Builderto createDamageModifiers.Gets the function that will modify the damage.Gets the consumer that will modify the cause frame.type()Gets theDamageStepTypeof this modifier.
-
Method Details
-
type
DamageStepType type()Gets theDamageStepTypeof this modifier.- Returns:
- the step type
-
frameModifier
Optional<Consumer<CauseStackManager.StackFrame>> frameModifier()Gets the consumer that will modify the cause frame.- Returns:
- The cause frame modifier
-
damageFunction
Optional<DamageModifier.Function> damageFunction()Gets the function that will modify the damage. The function may be absent if the sole purpose of this modifier is to apply children steps.- Returns:
- the damage modifier
-
builder
Creates a newDamageModifier.Builderto createDamageModifiers.- Returns:
- The new builder
-