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.
Execution Order
Section titled “Execution Order”Runs last in the frame via RootDependency.lastSet().
Constructor
Section titled “Constructor”public StepCleanupSystem(@Nonnull ComponentType<EntityStore, StepComponent> stepComponentType)Matches entities with the StepComponent.
Tick Logic
Section titled “Tick Logic”@Overridepublic void tick( float dt, int index, @Nonnull ArchetypeChunk<EntityStore> archetypeChunk, @Nonnull Store<EntityStore> store, @Nonnull CommandBuffer<EntityStore> commandBuffer)Removes the StepComponent from the entity.
Related Types
Section titled “Related Types”- SteppableTickingSystem — base class that checks for
StepComponent - NewSpawnStartTickingSystem — runs after this system
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.