24package com.dreamfirestudios.dreamcore.DreamLoop;
26import com.dreamfirestudios.dreamcore.DreamCore;
27import org.bukkit.Bukkit;
157 final int id =
GetId();
159 Bukkit.getScheduler().cancelTask(
id);
166 }
catch (Throwable ignored) {
static final LinkedHashMap< UUID, IDreamLoop > IDreamLoops
Contract for repeating loops driven by the Bukkit scheduler.
void Loop()
Called on each tick interval.
default long StartDelay()
Delay before the first Loop() call.
void End()
Called once after cancellation to release resources.
UUID ReturnID()
Unique identifier for this loop within the DreamCore registry.
default long LoopInterval()
Interval between consecutive Loop() calls.
int GetId()
Retrieves the Bukkit scheduler task ID.
default void CancelLoop()
Cancels the scheduled task, calls End(), and unregisters this loop from DreamCore....
void PassID(int id)
Internal hook used by the scheduler to assign the Bukkit task ID.
void Start()
Called once before the scheduler begins invoking Loop().