Package one.tranic.irs.task
Class FoliaScheduledTask
java.lang.Object
one.tranic.irs.task.FoliaScheduledTask
- All Implemented Interfaces:
TaskImpl<org.bukkit.plugin.Plugin>
-
Constructor Summary
ConstructorsConstructorDescriptionFoliaScheduledTask(io.papermc.paper.threadedregions.scheduler.ScheduledTask foliaTask) -
Method Summary
-
Constructor Details
-
FoliaScheduledTask
public FoliaScheduledTask(io.papermc.paper.threadedregions.scheduler.ScheduledTask foliaTask)
-
-
Method Details
-
cancel
public void cancel() -
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceTaskImpl<org.bukkit.plugin.Plugin>
-
getOwner
public org.bukkit.plugin.Plugin getOwner() -
isRepeatingTask
public boolean isRepeatingTask()Description copied from interface:TaskImplReturns whether this task executes on a fixed period, as opposed to executing only once.- Specified by:
isRepeatingTaskin interfaceTaskImpl<org.bukkit.plugin.Plugin>- Returns:
- whether this task executes on a fixed period, as opposed to executing only once.
-
isSynchronized
public boolean isSynchronized()Description copied from interface:TaskImplReturns true if the Task is a sync task.In folia, it will always be false
- Specified by:
isSynchronizedin interfaceTaskImpl<org.bukkit.plugin.Plugin>- Returns:
- true if the task is run by main thread
-