Interface DamageModifier
public interface DamageModifier
A damage modifier that will create a
DamageStep
.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
A builder to createDamageModifier
s.static interface
-
Method Summary
Modifier and TypeMethodDescriptionstatic DamageModifier.Builder
builder()
Creates a newDamageModifier.Builder
to createDamageModifier
s.Gets the function that will modify the damage.Gets the consumer that will modify the cause frame.type()
Gets theDamageStepType
of this modifier.
-
Method Details
-
type
DamageStepType type()Gets theDamageStepType
of 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.Builder
to createDamageModifier
s.- Returns:
- The new builder
-