Skip to content

StepCleanupSystem

Package: com.hypixel.hytale.server.npc.systems

public class StepCleanupSystem extends EntityTickingSystem<EntityStore>

Removes StepComponent from all entities at the end of the frame. This ensures that debug single-step commands only advance frozen NPCs for one tick. Uses RootDependency.lastSet() to guarantee it runs after all other systems.

Runs last in the frame via RootDependency.lastSet().

public StepCleanupSystem(@Nonnull ComponentType<EntityStore, StepComponent> stepComponentType)

Matches entities with the StepComponent.

@Override
public void tick(
float dt,
int index,
@Nonnull ArchetypeChunk<EntityStore> archetypeChunk,
@Nonnull Store<EntityStore> store,
@Nonnull CommandBuffer<EntityStore> commandBuffer
)

Removes the StepComponent from the entity.

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