Package org.spongepowered.api.event.cause.entity.damage
@DefaultQualifier(org.checkerframework.checker.nullness.qual.NonNull.class)
package org.spongepowered.api.event.cause.entity.damage
-
ClassDescriptionRepresents 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 a
DoubleUnaryOperator
such that the output will be the final damage applied to theEntity
.A builder that createsDamageModifier
s, for use in both plugin and implementation requirements.A type ofDamageModifier
that can apply a "grouping" so to speak for the damage modifier.ADamageType
is a type of "grouping" forDamageSource
s since aDamageSource
instance can be inherently different from anotherDamageSource
by virtue of theObject
backing the source.A builder to createDamageType
s.A function associating aDamageModifier
with aDoubleUnaryOperator
of the resultant effect.