TimerSystem
Package: com.hypixel.hytale.server.npc.systems
public class TimerSystem extends SteppableTickingSystemTicks all Tickable timers stored in the Timers ECS component. Each timer receives the frame delta time.
Constructor
Section titled “Constructor”public TimerSystem( @Nonnull ComponentType<EntityStore, Timers> timersComponentType, @Nonnull Set<Dependency<EntityStore>> dependencies)Matches entities with the Timers component.
Tick Logic
Section titled “Tick Logic”@Overridepublic void steppedTick( float dt, int index, @Nonnull ArchetypeChunk<EntityStore> archetypeChunk, @Nonnull Store<EntityStore> store, @Nonnull CommandBuffer<EntityStore> commandBuffer)Iterates timersComponent.getTimers() and calls timer.tick(dt) on each.
Parallelism
Section titled “Parallelism”Returns EntityTickingSystem.maybeUseParallel(archetypeChunkSize, taskCount).
Related Types
Section titled “Related Types”- RoleBuilderSystem — allocates timers during role construction
- SteppableTickingSystem — base class
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.