From dc085155df3347e77938a8855a91099ca1feadba Mon Sep 17 00:00:00 2001 From: Anselm Brehme Date: Tue, 4 Jun 2024 22:31:07 +0200 Subject: [PATCH] bye to another overwrite --- .../entity/damage/DamageModifierTypes.java | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/spongepowered/api/event/cause/entity/damage/DamageModifierTypes.java b/src/main/java/org/spongepowered/api/event/cause/entity/damage/DamageModifierTypes.java index 44601a2cd9..53a05c9428 100644 --- a/src/main/java/org/spongepowered/api/event/cause/entity/damage/DamageModifierTypes.java +++ b/src/main/java/org/spongepowered/api/event/cause/entity/damage/DamageModifierTypes.java @@ -144,17 +144,26 @@ public final class DamageModifierTypes { public static final DefaultedRegistryReference OFFENSIVE_POTION_EFFECT = DamageModifierTypes.key(ResourceKey.sponge("offensive_potion_effect")); /** - * Represents a {@link DamageModifier} that will reduce damage due to - * using a shield. + * Represents a {@link DamageModifier} that will reduce damage due to using a shield. */ public static final DefaultedRegistryReference SHIELD = DamageModifierTypes.key(ResourceKey.sponge("shield")); /** - * Represents a {@link DamageModifier} that is applied for a sweeping - * attack. + * Represents a {@link DamageModifier} that will modify damage from the attacks strength. + *

For vanilla this only reduces damage when repeating attacks too quickly

+ */ + public static final DefaultedRegistryReference ATTACK_STRENGTH = DamageModifierTypes.key(ResourceKey.sponge("attack_strength")); + + /** + * Represents a {@link DamageModifier} that is applied for a sweeping attack. */ public static final DefaultedRegistryReference SWEEPING = DamageModifierTypes.key(ResourceKey.sponge("sweeping")); + /** + * Represents a {@link DamageModifier} that will add bonus damage based on the weapon used. + */ + public static final DefaultedRegistryReference WEAPON_BONUS = DamageModifierTypes.key(ResourceKey.sponge("weapon_bonus")); + /** * Represents the {@link DamageModifier} that will modify damage from * an {@link EnchantmentType} on an equipped {@link ItemStack}.