@DefaultQualifier(org.checkerframework.checker.nullness.qual.NonNull.class)
Package org.spongepowered.api.event.cause.entity.damage
-
Interface Summary Interface Description DamageModifier Represents a modifier that will apply a function on a damage value to deal towards an entity such that the raw damage is the input of aDoubleUnaryOperator
such that the output will be the final damage applied to theEntity
.DamageModifierType A type ofDamageModifier
that can apply a "grouping" so to speak for the damage modifier.DamageType ADamageType
is a type of "grouping" forDamageSource
s since aDamageSource
instance can be inherently different from anotherDamageSource
by virtue of theObject
backing the source.DamageType.Builder A builder to createDamageType
s.ModifierFunction<M> A function associating aDamageModifier
with aDoubleUnaryOperator
of the resultant effect. -
Class Summary Class Description DamageFunction DamageModifier.Builder A builder that createsDamageModifier
s, for use in both plugin and implementation requirements.DamageModifierTypes DamageTypes