Skip to content

DeferredCorpseRemoval

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

public class DeferredCorpseRemoval implements Component<EntityStore>

An ECS component that adds a time delay before a dead entity’s corpse is removed from the world. Used by DeathSystems.CorpseRemoval to keep corpses visible for a configured duration. The timer counts down each tick, and the corpse is removed when it reaches zero.

public static ComponentType<EntityStore, DeferredCorpseRemoval> getComponentType()

Returns the registered component type from DamageModule.

public DeferredCorpseRemoval(double timeUntilCorpseRemoval)

Creates a deferred removal timer with the given duration in seconds.

public boolean tick(float dt)

Decrements the remaining time by dt. Returns true when the timer has expired (time remaining <= 0).

@Nonnull
@Override
public Component<EntityStore> clone()

Creates a copy with the current remaining time.

FieldTypeModifiersDescription
timeRemainingdoubleprotectedSeconds remaining before corpse removal.
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.