Package one.tranic.irs.task
Class SpigotScheduledTask
java.lang.Object
one.tranic.irs.task.SpigotScheduledTask
- All Implemented Interfaces:
TaskImpl<org.bukkit.plugin.Plugin>
-
Constructor Details
-
SpigotScheduledTask
public SpigotScheduledTask(org.bukkit.scheduler.BukkitTask bukkitTask)
-
-
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
-