DamageSystems
Package: com.hypixel.hytale.server.core.modules.entity.damage
public class DamageSystemsContainer class for all ECS systems that process damage events on the EntityStore. Provides static utility methods for dispatching damage and defines inner system classes organized into three groups: gather (damage generation), filter (damage modification/cancellation), and inspect (post-damage effects). All systems are registered by DamageModule.
Static Fields
Section titled “Static Fields”| Field | Type | Description |
|---|---|---|
DEFAULT_DAMAGE_DELAY | float | Default delay between damage ticks: 1.0 seconds. |
Static Methods
Section titled “Static Methods”public static void executeDamage(@Nonnull Ref<EntityStore> ref, @Nonnull ComponentAccessor<EntityStore> componentAccessor, @Nonnull Damage damage)Dispatches a damage event to the specified entity via a ComponentAccessor.
public static void executeDamage(int index, @Nonnull ArchetypeChunk<EntityStore> chunk, @Nonnull CommandBuffer<EntityStore> commandBuffer, @Nonnull Damage damage)Dispatches a damage event to the entity at the given index within an archetype chunk.
public static void executeDamage(@Nonnull Ref<EntityStore> ref, @Nonnull CommandBuffer<EntityStore> commandBuffer, @Nonnull Damage damage)Dispatches a damage event to the specified entity via a CommandBuffer.
Inner Types — Gather Group
Section titled “Inner Types — Gather Group”- DamageSystems.CanBreathe — drowning and suffocation damage
- DamageSystems.OutOfWorldDamage — damage from falling below the world
- DamageSystems.FallDamagePlayers — fall damage for players
- DamageSystems.FallDamageNPCs — fall damage for NPCs
Inner Types — Filter Group
Section titled “Inner Types — Filter Group”- DamageSystems.FilterPlayerWorldConfig — cancels player damage when disabled
- DamageSystems.FilterNPCWorldConfig — cancels NPC damage when disabled
- DamageSystems.FilterUnkillable — cancels damage on dead, invulnerable, or intangible entities
- DamageSystems.PlayerDamageFilterSystem — spawn protection and PvP checks
- DamageSystems.ArmorDamageReduction — reduces damage based on armor resistances
- DamageSystems.ArmorKnockbackReduction — reduces knockback based on armor
- DamageSystems.WieldingDamageReduction — reduces damage when blocking
- DamageSystems.WieldingKnockbackReduction — reduces knockback when blocking
- DamageSystems.HackKnockbackValues — scales knockback velocity
Inner Types — Inspect Group
Section titled “Inner Types — Inspect Group”- DamageSystems.ApplyDamage — subtracts health and triggers death
- DamageSystems.ApplyParticles — spawns impact particles
- DamageSystems.ApplySoundEffects — plays impact sounds
- DamageSystems.HitAnimation — plays hurt animations
- DamageSystems.DamageArmor — reduces armor durability
- DamageSystems.DamageAttackerTool — reduces attacker weapon durability
- DamageSystems.DamageStamina — drains stamina on blocked hits
- DamageSystems.RecordLastCombat — records combat timestamps
- DamageSystems.TrackLastDamage — records last damage time
- DamageSystems.PlayerHitIndicators — sends hit indicator packets
- DamageSystems.ReticleEvents — sends reticle hit/kill events
- DamageSystems.EntityUIEvents — sends combat text UI updates
Related Types
Section titled “Related Types”- Damage — the event processed by these systems
- DamageEventSystem — abstract base for most inner systems
- DamageModule — registers all these systems
- DeathSystems — handles death after damage kills an entity
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.