Skip to content

DamageSystems

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

public class DamageSystems

Container 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.

FieldTypeDescription
DEFAULT_DAMAGE_DELAYfloatDefault delay between damage ticks: 1.0 seconds.
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.

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