Interface Task


  • public interface Task
    Represents a task that has been scheduled.
    • Method Detail

      • plugin

        org.spongepowered.plugin.PluginContainer plugin()
        Returns:
        The plugin
      • delay

        java.time.Duration delay()
        Gets the delay that the task was scheduled to run after. A delay of 0 represents that the task started immediately.
        Returns:
        The delay (offset) duration
      • interval

        java.time.Duration interval()
        Gets the interval for repeating tasks. An interval of 0 represents that the task does not repeat.
        Returns:
        The interval (period) duration