Class FoliaScheduledTask

java.lang.Object
one.tranic.irs.task.FoliaScheduledTask
All Implemented Interfaces:
TaskImpl<org.bukkit.plugin.Plugin>

public class FoliaScheduledTask extends Object implements TaskImpl<org.bukkit.plugin.Plugin>
  • Constructor Details

    • FoliaScheduledTask

      public FoliaScheduledTask(io.papermc.paper.threadedregions.scheduler.ScheduledTask foliaTask)
  • Method Details

    • cancel

      public void cancel()
      Specified by:
      cancel in interface TaskImpl<org.bukkit.plugin.Plugin>
    • isCancelled

      public boolean isCancelled()
      Specified by:
      isCancelled in interface TaskImpl<org.bukkit.plugin.Plugin>
    • getOwner

      public org.bukkit.plugin.Plugin getOwner()
      Specified by:
      getOwner in interface TaskImpl<org.bukkit.plugin.Plugin>
    • isRepeatingTask

      public boolean isRepeatingTask()
      Description copied from interface: TaskImpl
      Returns whether this task executes on a fixed period, as opposed to executing only once.
      Specified by:
      isRepeatingTask in interface TaskImpl<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: TaskImpl
      Returns true if the Task is a sync task.

      In folia, it will always be false

      Specified by:
      isSynchronized in interface TaskImpl<org.bukkit.plugin.Plugin>
      Returns:
      true if the task is run by main thread