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 Enchantment s applicable to an ItemStack that is
considered to be "armor" currently equipped on the owner. |
static DamageModifierType |
BLOCKING
Represents a
DamageModifier that will reduce damage due to
an attempt at blocking. |
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 |
WEAPON_ENCHANTMENT
|
public static final DamageModifierType WEAPON_ENCHANTMENT
DamageModifier
that will modify damage from
an Enchantment
on an equipped ItemStack
.
Usually, within the DamageModifier.getCause()
will reside
an ItemStackSnapshot
and an ItemEnchantment
signifying
that the Enchantment
of the ItemStack
is modifying the
incoming/outgoing damage.
public static final DamageModifierType OFFENSIVE_POTION_EFFECT
DamageModifier
that will increase damage from
a PotionEffect
affecting the attacker.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 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 HARD_HAT
DamageModifier
that will modify damage from
a FallingBlockDamageSource
.
Usually, within the DamageModifier.getCause()
will reside
an ItemStackSnapshot
and an ItemEnchantment
signifying
that the Enchantment
of the ItemStack
is modifying the
incoming/outgoing damage.
public static final DamageModifierType BLOCKING
DamageModifier
that will reduce damage due to
an attempt at blocking.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 Enchantment
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 ItemEnchantment
signifying
that the Enchantment
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 MAGIC
DamageModifier
that will modify damage based on
magic.public static final DamageModifierType ABSORPTION
DamageModifier
that "absorbs" damage based on
the PotionEffectTypes.ABSORPTION
level on the
Entity
.public static final DamageModifierType DIFFICULTY