public final class DamageModifierTypes extends Object
Modifier and Type | Field and Description |
---|---|
static DamageModifierType |
ABSORPTION
Represents a
DamageModifier that "absorbs" damage based on
the PotionEffectTypes.ABSORPTION level on the
Entity . |
static DamageModifierType |
ARMOR
Represents a
DamageModifier that will reduce damage based on
the armor ItemStack s. |
static DamageModifierType |
ARMOR_ENCHANTMENT
Represents a
DamageModifier that will reduce damage based on
the EnchantmentType s applicable to an ItemStack that is
considered to be "armor" currently equipped on the owner. |
static DamageModifierType |
ATTACK_COOLDOWN
Represents the
DamageModifier that will reduce damage from a
Player if their attack cooldown has not been completed yet. |
static DamageModifierType |
CRITICAL_HIT
Represents the
DamageModifier that will modify damage output
based on the fact that the attacking source is critically hitting the
target. |
static DamageModifierType |
DEFENSIVE_POTION_EFFECT
Represents a
DamageModifier that will reduce damage based on
the PotionEffectTypes.RESISTANCE or any other
PotionEffectType that can be deemed as reducing incoming damage. |
static DamageModifierType |
DIFFICULTY
|
static DamageModifierType |
HARD_HAT
Represents the
DamageModifier that will modify damage from
a FallingBlockDamageSource . |
static DamageModifierType |
MAGIC
Represents a
DamageModifier that will modify damage based on
magic. |
static DamageModifierType |
NEGATIVE_POTION_EFFECT
Represents a
DamageModifier that will reduce outgoing damage
based on a PotionEffect . |
static DamageModifierType |
OFFENSIVE_POTION_EFFECT
Represents the
DamageModifier that will increase damage from
a PotionEffect affecting the attacker. |
static DamageModifierType |
SHIELD
Represents a
DamageModifier that will reduce damage due to
using a shield. |
static DamageModifierType |
SWEAPING
Deprecated.
use
SWEEPING |
static DamageModifierType |
SWEEPING
Represents a
DamageModifier that is applied for a sweeping
attack. |
static DamageModifierType |
WEAPON_ENCHANTMENT
Represents the
DamageModifier that will modify damage from
an EnchantmentType on an equipped ItemStack . |
public static final DamageModifierType ABSORPTION
DamageModifier
that "absorbs" damage based on
the PotionEffectTypes.ABSORPTION
level on the
Entity
.public static final DamageModifierType ARMOR
DamageModifier
that will reduce damage based on
the armor ItemStack
s.public static final DamageModifierType ARMOR_ENCHANTMENT
DamageModifier
that will reduce damage based on
the EnchantmentType
s applicable to an ItemStack
that is
considered to be "armor" currently equipped on the owner.
Usually, within the DamageModifier.getCause()
will reside
an ItemStackSnapshot
and an Enchantment
signifying
that the EnchantmentType
of the ItemStack
is modifying the
incoming/outgoing damage. There can be multiple DamageModifier
s
of this type in a single event due to the variety of possibilities in
customization of armor handling.
public static final DamageModifierType ATTACK_COOLDOWN
DamageModifier
that will reduce damage from a
Player
if their attack cooldown has not been completed yet.public static final DamageModifierType CRITICAL_HIT
DamageModifier
that will modify damage output
based on the fact that the attacking source is critically hitting the
target.public static final DamageModifierType DEFENSIVE_POTION_EFFECT
DamageModifier
that will reduce damage based on
the PotionEffectTypes.RESISTANCE
or any other
PotionEffectType
that can be deemed as reducing incoming damage.
Usually, within the DamageModifier.getCause()
will reside
a PotionEffect
including the amplifier and duration, signifying
that the PotionEffectType
is modifying the incoming damage.
public static final DamageModifierType DIFFICULTY
public static final DamageModifierType HARD_HAT
DamageModifier
that will modify damage from
a FallingBlockDamageSource
.
Usually, within the DamageModifier.getCause()
will reside
an ItemStackSnapshot
and an Enchantment
signifying
that the EnchantmentType
of the ItemStack
is modifying the
incoming/outgoing damage.
public static final DamageModifierType MAGIC
DamageModifier
that will modify damage based on
magic.public static final DamageModifierType NEGATIVE_POTION_EFFECT
DamageModifier
that will reduce outgoing damage
based on a PotionEffect
.
Usually, within the DamageModifier.getCause()
will reside
a PotionEffect
including the amplifier and duration, signifying
that the PotionEffectType
is reducing the outgoing damage.
public static final DamageModifierType OFFENSIVE_POTION_EFFECT
DamageModifier
that will increase damage from
a PotionEffect
affecting the attacker.public static final DamageModifierType SHIELD
DamageModifier
that will reduce damage due to
using a shield.public static final DamageModifierType SWEEPING
DamageModifier
that is applied for a sweeping
attack.@Deprecated public static final DamageModifierType SWEAPING
SWEEPING
DamageModifier
that is applied for a sweaping
attack.public static final DamageModifierType WEAPON_ENCHANTMENT
DamageModifier
that will modify damage from
an EnchantmentType
on an equipped ItemStack
.
Usually, within the DamageModifier.getCause()
will reside
an ItemStackSnapshot
and an Enchantment
signifying
that the EnchantmentType
of the ItemStack
is modifying the
incoming/outgoing damage.