Package one.tranic.irs.task
Interface TaskImpl<C>
- All Known Implementing Classes:
FoliaScheduledTask,SpigotScheduledTask
public interface TaskImpl<C>
-
Method Details
-
cancel
void cancel() -
isCancelled
boolean isCancelled() -
getOwner
C getOwner() -
isRepeatingTask
boolean isRepeatingTask()Returns whether this task executes on a fixed period, as opposed to executing only once.- Returns:
- whether this task executes on a fixed period, as opposed to executing only once.
-
isSynchronized
boolean isSynchronized()Returns true if the Task is a sync task.In folia, it will always be false
- Returns:
- true if the task is run by main thread
-