Skip to content

DamageModule

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

public class DamageModule extends JavaPlugin

Core server module that registers all damage-related ECS components, systems, and system groups on the EntityStore. Acts as the central coordination point for the damage pipeline. Depends on EntityModule, EntityStatsModule, and EntityUIModule.

The module registers three system groups that define the damage processing order:

  1. Gather — systems that generate damage events (fall, drowning, out-of-world)
  2. Filter — systems that cancel or modify damage (armor, invulnerability, world config)
  3. Inspect — systems that react to final damage (particles, sounds, animations, UI)
public static DamageModule get()

Returns the singleton instance of the module.

public DamageModule(@Nonnull JavaPluginInit init)

Constructs the module and sets the singleton instance.

public ComponentType<EntityStore, DeathComponent> getDeathComponentType()

Returns the registered ComponentType for DeathComponent.

public ComponentType<EntityStore, DeferredCorpseRemoval> getDeferredCorpseRemovalComponentType()

Returns the registered ComponentType for DeferredCorpseRemoval.

public SystemGroup<EntityStore> getGatherDamageGroup()

Returns the system group for damage-gathering systems.

public SystemGroup<EntityStore> getFilterDamageGroup()

Returns the system group for damage-filtering systems.

public SystemGroup<EntityStore> getInspectDamageGroup()

Returns the system group for damage-inspection systems.

The setup() method registers all of the following systems on the entity store:

Damage Processing:

Filtering:

Post-Damage:

Death:

Respawn:

Calculator:

Commands:

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