Skip to content

DamageSystems.ArmorDamageReduction

Package: com.hypixel.hytale.server.core.modules.entity.damage

@Deprecated
public static class DamageSystems.ArmorDamageReduction extends DamageEventSystem

Reduces incoming damage based on the target entity’s equipped armor resistances. Part of the filter damage group. For each armor piece, collects flat and multiplicative resistance modifiers per damage cause. If the cause does not bypass resistances, applies flat reduction first then multiplicative reduction. Walks the damage cause inheritance chain to apply parent resistances. Also includes resistance contributions from active entity effects. Applies broken item penalties when applicable.

@Nonnull
public static Map<DamageCause, DamageSystems.ArmorDamageReduction.ArmorResistanceModifiers> getResistanceModifiers(
@Nonnull World world,
@Nonnull ItemContainer inventory,
boolean canApplyItemStackPenalties,
@Nullable EffectControllerComponent effectControllerComponent
)

Calculates aggregate resistance modifiers from an armor inventory and active entity effects. Returns a map of DamageCause to accumulated flat and multiplicative modifiers.

Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.