Class DamageSources
- java.lang.Object
-
- org.spongepowered.api.event.cause.entity.damage.source.DamageSources
-
public final class DamageSources extends Object
A static collection of variousDamageSources that remain static, or otherwise "ambiguous" with regards to the actual source. Examples include: in the event anEntityis being damaged due to falling through the "void", anEntitybeing damaged for being "on fire" in which case anKeys.FIRE_TICKSmay be present from theEntity, etc.DamageSources that rely on live instances of various objects, including otherEntityinstances, or a block at a specificServerLocationrely on the various other types ofDamageSources.
-
-
Field Summary
Fields Modifier and Type Field Description static DamageSourceDROWNINGstatic DamageSourceDRYOUTstatic DamageSourceFALLINGstatic DamageSourceFIRE_TICKstatic DamageSourceGENERICstatic DamageSourceMAGICstatic DamageSourceSTARVATIONstatic DamageSourceVOIDstatic DamageSourceWITHER
-
-
-
Field Detail
-
DROWNING
public static final DamageSource DROWNING
-
DRYOUT
public static final DamageSource DRYOUT
-
FALLING
public static final DamageSource FALLING
-
FIRE_TICK
public static final DamageSource FIRE_TICK
-
GENERIC
public static final DamageSource GENERIC
-
MAGIC
public static final DamageSource MAGIC
-
STARVATION
public static final DamageSource STARVATION
-
VOID
public static final DamageSource VOID
-
WITHER
public static final DamageSource WITHER
-
-