24package com.dreamfirestudios.dreamcore.DreamLoop;
26import com.dreamfirestudios.dreamcore.DreamCore;
27import com.dreamfirestudios.dreamcore.DreamJava.PulseAutoRegister;
59 @Getter
private static final long startDelay = 0L;
66 @Getter
private static final long loopInterval = 20L;
73 private int loopID = -1;
84 return UUID.randomUUID();
127 @Override
public void PassID(
int id) { this.loopID = id; }
133 @Override
public int GetId() {
return this.loopID; }
static DreamCore DreamCore
Loop that fires every 20 ticks (~1 second).
void Loop()
Executes the 20-tick dispatcher in DreamCore.
void PassID(int id)
Assigns the Bukkit task ID.
void End()
Cleanup hook after cancellation.
int GetId()
Returns the Bukkit task ID or -1 if unscheduled.
UUID ReturnID()
Unique identifier for this loop in the DreamCore registry.
void Start()
Delay before first execution.
Contract for repeating loops driven by the Bukkit scheduler.