24package com.dreamfirestudios.dreamcore.DreamLoop;
26import com.dreamfirestudios.dreamcore.DreamCore;
27import com.dreamfirestudios.dreamcore.DreamJava.PulseAutoRegister;
63 @Getter
private static final long startDelay = 0L;
74 @Getter
private static final long loopInterval = 1L;
85 private int loopID = -1;
96 return UUID.randomUUID();
141 @Override
public void PassID(
int id) { this.loopID = id; }
147 @Override
public int GetId() {
return this.loopID; }
static DreamCore DreamCore
Loop that fires every server tick (~20 times per second).
UUID ReturnID()
Unique identifier for this loop in the DreamCore registry.
void Loop()
Executes the 1-tick dispatcher in DreamCore.
int GetId()
Returns the Bukkit task ID or -1 if unscheduled.
void End()
Cleanup logic for loop shutdown.
void PassID(int id)
Assigns the Bukkit task ID.
void Start()
Delay before the first tick.
Contract for repeating loops driven by the Bukkit scheduler.