Class DamageModifierTypes
- java.lang.Object
-
- org.spongepowered.api.event.cause.entity.damage.DamageModifierTypes
-
public final class DamageModifierTypes extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static DefaultedRegistryReference<DamageModifierType>
ABSORPTION
Represents aDamageModifier
that "absorbs" damage based on thePotionEffectTypes.ABSORPTION
level on theEntity
.static DefaultedRegistryReference<DamageModifierType>
ARMOR
Represents aDamageModifier
that will reduce damage based on the armorItemStack
s.static DefaultedRegistryReference<DamageModifierType>
ARMOR_ENCHANTMENT
Represents aDamageModifier
that will reduce damage based on theEnchantmentType
s applicable to anItemStack
that is considered to be "armor" currently equipped on the owner.static DefaultedRegistryReference<DamageModifierType>
ATTACK_COOLDOWN
Represents theDamageModifier
that will reduce damage from aPlayer
if their attack cooldown has not been completed yet.static DefaultedRegistryReference<DamageModifierType>
CRITICAL_HIT
Represents theDamageModifier
that will modify damage output based on the fact that the attacking source is critically hitting the target.static DefaultedRegistryReference<DamageModifierType>
DEFENSIVE_POTION_EFFECT
Represents aDamageModifier
that will reduce damage based on thePotionEffectTypes.RESISTANCE
or any otherPotionEffectType
that can be deemed as reducing incoming damage.static DefaultedRegistryReference<DamageModifierType>
DIFFICULTY
static DefaultedRegistryReference<DamageModifierType>
HARD_HAT
Represents theDamageModifier
that will modify damage from aFallingBlockDamageSource
.static DefaultedRegistryReference<DamageModifierType>
MAGIC
Represents aDamageModifier
that will modify damage based on magic.static DefaultedRegistryReference<DamageModifierType>
NEGATIVE_POTION_EFFECT
Represents aDamageModifier
that will reduce outgoing damage based on aPotionEffect
.static DefaultedRegistryReference<DamageModifierType>
OFFENSIVE_POTION_EFFECT
Represents theDamageModifier
that will increase damage from aPotionEffect
affecting the attacker.static DefaultedRegistryReference<DamageModifierType>
SHIELD
Represents aDamageModifier
that will reduce damage due to using a shield.static DefaultedRegistryReference<DamageModifierType>
SWEEPING
Represents aDamageModifier
that is applied for a sweeping attack.static DefaultedRegistryReference<DamageModifierType>
WEAPON_ENCHANTMENT
Represents theDamageModifier
that will modify damage from anEnchantmentType
on an equippedItemStack
.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Registry<DamageModifierType>
registry()
-
-
-
Field Detail
-
ABSORPTION
public static final DefaultedRegistryReference<DamageModifierType> ABSORPTION
Represents aDamageModifier
that "absorbs" damage based on thePotionEffectTypes.ABSORPTION
level on theEntity
.
-
ARMOR
public static final DefaultedRegistryReference<DamageModifierType> ARMOR
Represents aDamageModifier
that will reduce damage based on the armorItemStack
s.
-
ARMOR_ENCHANTMENT
public static final DefaultedRegistryReference<DamageModifierType> ARMOR_ENCHANTMENT
Represents aDamageModifier
that will reduce damage based on theEnchantmentType
s applicable to anItemStack
that is considered to be "armor" currently equipped on the owner.Usually, within the
()
will reside anItemStackSnapshot
and anEnchantment
signifying that theEnchantmentType
of theItemStack
is modifying the incoming/outgoing damage. There can be multipleDamageModifier
s 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 theDamageModifier
that will reduce damage from aPlayer
if their attack cooldown has not been completed yet.
-
CRITICAL_HIT
public static final DefaultedRegistryReference<DamageModifierType> CRITICAL_HIT
Represents theDamageModifier
that 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 aDamageModifier
that will reduce damage based on thePotionEffectTypes.RESISTANCE
or any otherPotionEffectType
that can be deemed as reducing incoming damage.Usually, within the
()
will reside aPotionEffect
including the amplifier and duration, signifying that thePotionEffectType
is modifying the incoming damage.
-
DIFFICULTY
public static final DefaultedRegistryReference<DamageModifierType> DIFFICULTY
-
HARD_HAT
public static final DefaultedRegistryReference<DamageModifierType> HARD_HAT
Represents theDamageModifier
that will modify damage from aFallingBlockDamageSource
.Usually, within the
()
will reside anItemStackSnapshot
and anEnchantment
signifying that theEnchantmentType
of theItemStack
is modifying the incoming/outgoing damage.
-
MAGIC
public static final DefaultedRegistryReference<DamageModifierType> MAGIC
Represents aDamageModifier
that will modify damage based on magic.
-
NEGATIVE_POTION_EFFECT
public static final DefaultedRegistryReference<DamageModifierType> NEGATIVE_POTION_EFFECT
Represents aDamageModifier
that will reduce outgoing damage based on aPotionEffect
.Usually, within the
()
will reside aPotionEffect
including the amplifier and duration, signifying that thePotionEffectType
is reducing the outgoing damage.
-
OFFENSIVE_POTION_EFFECT
public static final DefaultedRegistryReference<DamageModifierType> OFFENSIVE_POTION_EFFECT
Represents theDamageModifier
that will increase damage from aPotionEffect
affecting the attacker.
-
SHIELD
public static final DefaultedRegistryReference<DamageModifierType> SHIELD
Represents aDamageModifier
that will reduce damage due to using a shield.
-
SWEEPING
public static final DefaultedRegistryReference<DamageModifierType> SWEEPING
Represents aDamageModifier
that is applied for a sweeping attack.
-
WEAPON_ENCHANTMENT
public static final DefaultedRegistryReference<DamageModifierType> WEAPON_ENCHANTMENT
Represents theDamageModifier
that will modify damage from anEnchantmentType
on an equippedItemStack
.Usually, within the
()
will reside anItemStackSnapshot
and anEnchantment
signifying that theEnchantmentType
of theItemStack
is modifying the incoming/outgoing damage.
-
-
Method Detail
-
registry
public static Registry<DamageModifierType> registry()
-
-