Class DamageModifierTypes
- java.lang.Object
-
- org.spongepowered.api.event.cause.entity.damage.DamageModifierTypes
-
public final class DamageModifierTypes extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static DefaultedRegistryReference<DamageModifierType>ABSORPTIONRepresents aDamageModifierthat "absorbs" damage based on thePotionEffectTypes.ABSORPTIONlevel on theEntity.static DefaultedRegistryReference<DamageModifierType>ARMORRepresents aDamageModifierthat will reduce damage based on the armorItemStacks.static DefaultedRegistryReference<DamageModifierType>ARMOR_ENCHANTMENTRepresents aDamageModifierthat will reduce damage based on theEnchantmentTypes applicable to anItemStackthat is considered to be "armor" currently equipped on the owner.static DefaultedRegistryReference<DamageModifierType>ATTACK_COOLDOWNRepresents theDamageModifierthat will reduce damage from aPlayerif their attack cooldown has not been completed yet.static DefaultedRegistryReference<DamageModifierType>CRITICAL_HITRepresents theDamageModifierthat will modify damage output based on the fact that the attacking source is critically hitting the target.static DefaultedRegistryReference<DamageModifierType>DEFENSIVE_POTION_EFFECTRepresents aDamageModifierthat will reduce damage based on thePotionEffectTypes.RESISTANCEor any otherPotionEffectTypethat can be deemed as reducing incoming damage.static DefaultedRegistryReference<DamageModifierType>DIFFICULTYstatic DefaultedRegistryReference<DamageModifierType>HARD_HATRepresents theDamageModifierthat will modify damage from aFallingBlockDamageSource.static DefaultedRegistryReference<DamageModifierType>MAGICRepresents aDamageModifierthat will modify damage based on magic.static DefaultedRegistryReference<DamageModifierType>NEGATIVE_POTION_EFFECTRepresents aDamageModifierthat will reduce outgoing damage based on aPotionEffect.static DefaultedRegistryReference<DamageModifierType>OFFENSIVE_POTION_EFFECTRepresents theDamageModifierthat will increase damage from aPotionEffectaffecting the attacker.static DefaultedRegistryReference<DamageModifierType>SHIELDRepresents aDamageModifierthat will reduce damage due to using a shield.static DefaultedRegistryReference<DamageModifierType>SWEEPINGRepresents aDamageModifierthat is applied for a sweeping attack.static DefaultedRegistryReference<DamageModifierType>WEAPON_ENCHANTMENTRepresents theDamageModifierthat will modify damage from anEnchantmentTypeon an equippedItemStack.
-
-
-
Field Detail
-
ABSORPTION
public static final DefaultedRegistryReference<DamageModifierType> ABSORPTION
Represents aDamageModifierthat "absorbs" damage based on thePotionEffectTypes.ABSORPTIONlevel on theEntity.
-
ARMOR
public static final DefaultedRegistryReference<DamageModifierType> ARMOR
Represents aDamageModifierthat will reduce damage based on the armorItemStacks.
-
ARMOR_ENCHANTMENT
public static final DefaultedRegistryReference<DamageModifierType> ARMOR_ENCHANTMENT
Represents aDamageModifierthat will reduce damage based on theEnchantmentTypes applicable to anItemStackthat is considered to be "armor" currently equipped on the owner.Usually, within the
()will reside anItemStackSnapshotand anEnchantmentsignifying that theEnchantmentTypeof theItemStackis modifying the incoming/outgoing damage. There can be multipleDamageModifiers of this type in a single event due to the variety of possibilities in customization of armor handling.
-
ATTACK_COOLDOWN
public static final DefaultedRegistryReference<DamageModifierType> ATTACK_COOLDOWN
Represents theDamageModifierthat will reduce damage from aPlayerif their attack cooldown has not been completed yet.
-
CRITICAL_HIT
public static final DefaultedRegistryReference<DamageModifierType> CRITICAL_HIT
Represents theDamageModifierthat will modify damage output based on the fact that the attacking source is critically hitting the target.
-
DEFENSIVE_POTION_EFFECT
public static final DefaultedRegistryReference<DamageModifierType> DEFENSIVE_POTION_EFFECT
Represents aDamageModifierthat will reduce damage based on thePotionEffectTypes.RESISTANCEor any otherPotionEffectTypethat can be deemed as reducing incoming damage.Usually, within the
()will reside aPotionEffectincluding the amplifier and duration, signifying that thePotionEffectTypeis modifying the incoming damage.
-
DIFFICULTY
public static final DefaultedRegistryReference<DamageModifierType> DIFFICULTY
-
HARD_HAT
public static final DefaultedRegistryReference<DamageModifierType> HARD_HAT
Represents theDamageModifierthat will modify damage from aFallingBlockDamageSource.Usually, within the
()will reside anItemStackSnapshotand anEnchantmentsignifying that theEnchantmentTypeof theItemStackis modifying the incoming/outgoing damage.
-
MAGIC
public static final DefaultedRegistryReference<DamageModifierType> MAGIC
Represents aDamageModifierthat will modify damage based on magic.
-
NEGATIVE_POTION_EFFECT
public static final DefaultedRegistryReference<DamageModifierType> NEGATIVE_POTION_EFFECT
Represents aDamageModifierthat will reduce outgoing damage based on aPotionEffect.Usually, within the
()will reside aPotionEffectincluding the amplifier and duration, signifying that thePotionEffectTypeis reducing the outgoing damage.
-
OFFENSIVE_POTION_EFFECT
public static final DefaultedRegistryReference<DamageModifierType> OFFENSIVE_POTION_EFFECT
Represents theDamageModifierthat will increase damage from aPotionEffectaffecting the attacker.
-
SHIELD
public static final DefaultedRegistryReference<DamageModifierType> SHIELD
Represents aDamageModifierthat will reduce damage due to using a shield.
-
SWEEPING
public static final DefaultedRegistryReference<DamageModifierType> SWEEPING
Represents aDamageModifierthat is applied for a sweeping attack.
-
WEAPON_ENCHANTMENT
public static final DefaultedRegistryReference<DamageModifierType> WEAPON_ENCHANTMENT
Represents theDamageModifierthat will modify damage from anEnchantmentTypeon an equippedItemStack.Usually, within the
()will reside anItemStackSnapshotand anEnchantmentsignifying that theEnchantmentTypeof theItemStackis modifying the incoming/outgoing damage.
-
-
Method Detail
-
registry
public static Registry<DamageModifierType> registry()
-
-