Skip to content

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

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

The damage package implements the server’s damage pipeline, death handling, and respawn systems. It defines the Damage event that flows through a three-phase processing chain (gather, filter, inspect), the DamageCause asset system for damage types, and the DeathComponent that triggers death and respawn behavior. All systems are registered by DamageModule.

TypeKindDescription
DamageclassCancellable ECS damage event with metadata store.
Damage.SourceinterfaceIdentifies the origin of damage and generates death messages.
Damage.EntitySourceclassDamage from another entity.
Damage.ProjectileSourceclassDamage from a projectile with a shooter.
Damage.CommandSourceclassDamage from a server command.
Damage.EnvironmentSourceclassDamage from an environmental hazard.
Damage.ParticlesclassImpact particle configuration.
Damage.SoundEffectclassImpact sound effect wrapper.
Damage.CameraEffectrecordCamera effect on hit.
DamageCauseclassJSON asset defining a damage type.
TypeKindDescription
DamageModuleclassCore plugin that registers all damage systems.
DamageModule.OrderGatherFilterclassDeprecated ordering system.
DamageEventSystemabstract classBase class for damage event handler systems.
TypeKindDescription
DamageSystemsclassContainer for all damage processing systems.
DamageSystems.ApplyDamageclassSubtracts health and triggers death.
DamageSystems.CanBreatheclassDrowning and suffocation damage.
DamageSystems.OutOfWorldDamageclassDamage below the world boundary.
DamageSystems.FallDamagePlayersclassFall damage for players.
DamageSystems.FallDamageNPCsclassFall damage for NPCs.
DamageSystems.FilterPlayerWorldConfigclassCancels player damage when disabled.
DamageSystems.FilterNPCWorldConfigclassCancels NPC damage when disabled.
DamageSystems.FilterUnkillableclassCancels damage on unkillable entities.
DamageSystems.PlayerDamageFilterSystemclassSpawn protection and PvP checks.
DamageSystems.ArmorDamageReductionclassArmor damage resistance.
DamageSystems.ArmorDamageReduction.ArmorResistanceModifiersclassResistance modifier accumulator.
DamageSystems.ArmorKnockbackReductionclassArmor knockback resistance.
DamageSystems.WieldingDamageReductionclassShield/blocking damage reduction.
DamageSystems.WieldingKnockbackReductionclassShield/blocking knockback reduction.
DamageSystems.HackKnockbackValuesclassDeprecated knockback velocity scaler.
DamageSystems.ApplyParticlesclassSpawns impact particles.
DamageSystems.ApplySoundEffectsclassPlays impact sounds.
DamageSystems.HitAnimationclassPlays hurt animations.
DamageSystems.DamageArmorclassReduces armor durability.
DamageSystems.DamageAttackerToolclassReduces weapon durability.
DamageSystems.DamageStaminaclassDrains stamina on block.
DamageSystems.RecordLastCombatclassRecords combat timestamps.
DamageSystems.TrackLastDamageclassRecords last damage time.
DamageSystems.PlayerHitIndicatorsclassSends hit indicator packets.
DamageSystems.ReticleEventsclassSends reticle hit/kill events.
DamageSystems.EntityUIEventsclassSends combat text updates.
TypeKindDescription
DamageCalculatorSystemsclassSequential hit damage calculation.
DamageCalculatorSystems.DamageSequenceclassSequential hit state tracker.
DamageCalculatorSystems.SequenceclassSerializable hit counter.
DamageCalculatorSystems.SequenceModifierclassSequential damage scaling system.
TypeKindDescription
DeathComponentclassECS component marking an entity as dead.
DeathItemLossclassItem loss configuration snapshot.
DeferredCorpseRemovalclassTimer component for delayed corpse removal.
DeathSystemsclassContainer for death processing systems.
DeathSystems.OnDeathSystemabstract classBase class for death component-change systems.
DeathSystems.ClearHealthclassSets health to 0.
DeathSystems.ClearInteractionsclassClears interaction manager.
DeathSystems.ClearEntityEffectsclassRemoves active effects.
DeathSystems.PlayerKilledPlayerclassNotifies killer of PvP kill.
DeathSystems.DropPlayerDeathItemsclassDrops items on death.
DeathSystems.PlayerDropItemsConfigclassConfigures item loss from world.
DeathSystems.RunDeathInteractionsclassExecutes death interaction chain.
DeathSystems.KillFeedclassBroadcasts kill feed messages.
DeathSystems.PlayerDeathScreenclassShows respawn screen.
DeathSystems.PlayerDeathMarkerclassAdds death marker to map.
DeathSystems.CorpseRemovalclassRemoves NPC corpses.
DeathSystems.DeathAnimationclassPlays death animation.
DeathSystems.SpawnedDeathAnimationclassDeath animation on spawn.
TypeKindDescription
RespawnSystemsclassContainer for respawn systems.
RespawnSystems.OnRespawnSystemabstract classBase class for respawn systems.
RespawnSystems.ResetStatsRespawnSystemclassResets all stats.
RespawnSystems.ResetPlayerRespawnSystemclassRecords spawn time.
RespawnSystems.ClearEntityEffectsRespawnSystemclassClears effects on respawn.
RespawnSystems.ClearInteractionsRespawnSystemclassClears interactions on respawn.
RespawnSystems.CheckBrokenItemsRespawnSystemclassWarns about broken items.
RespawnSystems.ClearRespawnUIclassCloses respawn page.
TypeKindDescription
KillFeedEventclassKill feed event container.
KillFeedEvent.KillerMessageclassKiller name event.
KillFeedEvent.DecedentMessageclassVictim name event.
KillFeedEvent.DisplayclassFinal display event.
TypeKindDescription
DesyncDamageCommandclassDebug command to toggle damage desync.
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.