Class DamageStepTypes
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DefaultedRegistryReference<DamageStepType> Represents aDamageStepthat "absorbs" damage based on thePotionEffectTypes.ABSORPTIONlevel on theEntity.static final DefaultedRegistryReference<DamageStepType> Represents aDamageStepthat will reduce damage based on the armorItemStacks.static final DefaultedRegistryReference<DamageStepType> Represents aDamageStepthat will reduce damage based on theEnchantmentTypes applicable to anItemStackthat is considered to be "armor" currently equipped on the owner.static final DefaultedRegistryReference<DamageStepType> Represents theDamageStepthat will reduce the base damage from aPlayerif their attack cooldown has not been completed yet.static final DefaultedRegistryReference<DamageStepType> Represents theDamageStepthat will modify damage output based on the fact that the attacking source is critically hitting the target.static final DefaultedRegistryReference<DamageStepType> Represents aDamageStepthat will reduce damage based on thePotionEffectTypes.RESISTANCEor any otherPotionEffectTypethat can be deemed as reducing incoming damage.static final DefaultedRegistryReference<DamageStepType> Represents theDamageStepthat will reduce the enchantment damage from aPlayerif their attack cooldown has not been completed yet.static final DefaultedRegistryReference<DamageStepType> Represents the lastDamageStepapplied during a damage calculation.static final DefaultedRegistryReference<DamageStepType> Represents aDamageStepthat will modify freezing damage.static final DefaultedRegistryReference<DamageStepType> Represents theDamageStepthat will modify damage from aDamageSource.source()that is aFallingBlock.static final DefaultedRegistryReference<DamageStepType> Represents aDamageStepthat will modify damage based on magic.static final DefaultedRegistryReference<DamageStepType> Represents aDamageStepthat will reduce outgoing damage based on aPotionEffect.static final DefaultedRegistryReference<DamageStepType> Represents theDamageStepthat will increase damage from aPotionEffectaffecting the attacker.static final DefaultedRegistryReference<DamageStepType> Represents aDamageStepthat will reduce damage due to using a shield.static final DefaultedRegistryReference<DamageStepType> Represents the firstDamageStepapplied during a damage calculation.static final DefaultedRegistryReference<DamageStepType> Represents aDamageStepthat is applied for a sweeping attack.static final DefaultedRegistryReference<DamageStepType> Represents aDamageStepthat will add bonus damage based on the weapon used.static final DefaultedRegistryReference<DamageStepType> -
Method Summary
-
Field Details
-
ABSORPTION
Represents aDamageStepthat "absorbs" damage based on thePotionEffectTypes.ABSORPTIONlevel on theEntity. -
ARMOR
Represents aDamageStepthat will reduce damage based on the armorItemStacks. -
ARMOR_ENCHANTMENT
Represents aDamageStepthat will reduce damage based on theEnchantmentTypes applicable to anItemStackthat is considered to be "armor" currently equipped on the owner.Usually, within the
DamageStep.cause()will reside anItemStackSnapshotand anEnchantmentsignifying that theEnchantmentTypeof theItemStackis modifying the incoming/outgoing damage. There can be multipleDamageSteps of this type in a single event due to the variety of possibilities in customization of armor handling. -
BASE_COOLDOWN
Represents theDamageStepthat will reduce the base damage from aPlayerif their attack cooldown has not been completed yet. -
CRITICAL_HIT
Represents theDamageStepthat will modify damage output based on the fact that the attacking source is critically hitting the target. -
DEFENSIVE_POTION_EFFECT
Represents aDamageStepthat will reduce damage based on thePotionEffectTypes.RESISTANCEor any otherPotionEffectTypethat can be deemed as reducing incoming damage.Usually, within the
DamageStep.cause()will reside aPotionEffectincluding the amplifier and duration, signifying that thePotionEffectTypeis modifying the incoming damage. -
ENCHANTMENT_COOLDOWN
Represents theDamageStepthat will reduce the enchantment damage from aPlayerif their attack cooldown has not been completed yet. -
END
Represents the lastDamageStepapplied during a damage calculation. This step happens just before theDamageCalculationEvent.Post. This step does nothing but can be used to add modifiers to the final damage. -
FREEZING_BONUS
Represents aDamageStepthat will modify freezing damage. E.g.Blazetake more damage from freezing sources. -
HARD_HAT
Represents theDamageStepthat will modify damage from aDamageSource.source()that is aFallingBlock.Usually, within the
DamageStep.cause()will reside anItemStackSnapshotand anEnchantmentsignifying that theEnchantmentTypeof theItemStackis modifying the incoming/outgoing damage. -
MAGIC
Represents aDamageStepthat will modify damage based on magic. -
NEGATIVE_POTION_EFFECT
Represents aDamageStepthat will reduce outgoing damage based on aPotionEffect.Usually, within the
DamageStep.cause()will reside aPotionEffectincluding the amplifier and duration, signifying that thePotionEffectTypeis reducing the outgoing damage. -
OFFENSIVE_POTION_EFFECT
Represents theDamageStepthat will increase damage from aPotionEffectaffecting the attacker. -
SHIELD
Represents aDamageStepthat will reduce damage due to using a shield. -
START
Represents the firstDamageStepapplied during a damage calculation. This step happens just after theDamageCalculationEvent.Pre. This step does nothing but can be used to add modifiers to the base damage. -
SWEEPING
Represents aDamageStepthat is applied for a sweeping attack. -
WEAPON_BONUS
Represents aDamageStepthat will add bonus damage based on the weapon used. -
WEAPON_ENCHANTMENT
Represents theDamageStepthat will modify damage from anEnchantmentTypeon an equippedItemStack.Usually, within the
DamageStep.cause()will reside anItemStackSnapshotand anEnchantmentsignifying that theEnchantmentTypeof theItemStackis modifying the incoming/outgoing damage.
-
-
Method Details
-
registry
-