summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/bukkit/scheduler/BukkitTask.java
blob: f82514cf25d9b3d0a77dbe25527403e7bebda503 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package org.bukkit.scheduler;

import org.bukkit.plugin.Plugin;

/**
 * Represents a task being executed by the scheduler
 */

public interface BukkitTask {

    /**
     * Returns the taskId for the task
     *
     * @return Task id number
     */
    public int getTaskId();

    /**
     * Returns the Plugin that owns this task
     *
     * @return The Plugin that owns the task
     */
    public Plugin getOwner();

    /**
     * Returns true if the Task is a sync task
     *
     * @return true if the task is run by main thread
     */
    public boolean isSync();
}