Class DamageModifierTypes
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DefaultedRegistryReference<DamageModifierType> Represents aDamageModifierthat "absorbs" damage based on thePotionEffectTypes.ABSORPTIONlevel on theEntity.static final DefaultedRegistryReference<DamageModifierType> Represents aDamageModifierthat will reduce damage based on the armorItemStacks.static final DefaultedRegistryReference<DamageModifierType> Represents aDamageModifierthat will reduce damage based on theEnchantmentTypes applicable to anItemStackthat is considered to be "armor" currently equipped on the owner.static final DefaultedRegistryReference<DamageModifierType> Represents theDamageModifierthat will reduce damage from aPlayerif their attack cooldown has not been completed yet.static final DefaultedRegistryReference<DamageModifierType> Represents aDamageModifierthat will modify damage from the attacks strength.static final DefaultedRegistryReference<DamageModifierType> Represents theDamageModifierthat will modify damage output based on the fact that the attacking source is critically hitting the target.static final DefaultedRegistryReference<DamageModifierType> Represents aDamageModifierthat will reduce damage based on thePotionEffectTypes.RESISTANCEor any otherPotionEffectTypethat can be deemed as reducing incoming damage.static final DefaultedRegistryReference<DamageModifierType> static final DefaultedRegistryReference<DamageModifierType> Represents aDamageModifierthat will modify freezing damage.static final DefaultedRegistryReference<DamageModifierType> Represents theDamageModifierthat will modify damage from aDamageSource.source()that is aFallingBlock.static final DefaultedRegistryReference<DamageModifierType> Represents aDamageModifierthat will modify damage based on magic.static final DefaultedRegistryReference<DamageModifierType> Represents aDamageModifierthat will reduce outgoing damage based on aPotionEffect.static final DefaultedRegistryReference<DamageModifierType> Represents theDamageModifierthat will increase damage from aPotionEffectaffecting the attacker.static final DefaultedRegistryReference<DamageModifierType> Represents aDamageModifierthat will reduce damage due to using a shield.static final DefaultedRegistryReference<DamageModifierType> Represents aDamageModifierthat is applied for a sweeping attack.static final DefaultedRegistryReference<DamageModifierType> Represents aDamageModifierthat will add bonus damage based on the weapon used.static final DefaultedRegistryReference<DamageModifierType> Represents theDamageModifierthat will modify damage from anEnchantmentTypeon an equippedItemStack. -
Method Summary
-
Field Details
-
ABSORPTION
Represents aDamageModifierthat "absorbs" damage based on thePotionEffectTypes.ABSORPTIONlevel on theEntity. -
ARMOR
Represents aDamageModifierthat will reduce damage based on the armorItemStacks. -
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
Represents theDamageModifierthat will reduce damage from aPlayerif their attack cooldown has not been completed yet. -
ATTACK_STRENGTH
Represents aDamageModifierthat will modify damage from the attacks strength.For vanilla this only reduces damage when repeating attacks too quickly
-
CRITICAL_HIT
Represents theDamageModifierthat will modify damage output based on the fact that the attacking source is critically hitting the target. -
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
-
FREEZING_BONUS
Represents aDamageModifierthat will modify freezing damage. E.g.Blazetake more damage from freezing sources. -
HARD_HAT
Represents theDamageModifierthat will modify damage from aDamageSource.source()that is aFallingBlock.Usually, within the
()will reside anItemStackSnapshotand anEnchantmentsignifying that theEnchantmentTypeof theItemStackis modifying the incoming/outgoing damage. -
MAGIC
Represents aDamageModifierthat will modify damage based on magic. -
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
Represents theDamageModifierthat will increase damage from aPotionEffectaffecting the attacker. -
SHIELD
Represents aDamageModifierthat will reduce damage due to using a shield. -
SWEEPING
Represents aDamageModifierthat is applied for a sweeping attack. -
WEAPON_BONUS
Represents aDamageModifierthat will add bonus damage based on the weapon used. -
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 Details
-
registry
-