Package-level declarations

Types

Link copied to clipboard
class ShardRunnable(val task: ShardRunnable.() -> Unit, val async: Boolean = false, val delay: Long = 0) : BukkitRunnable

Functions

Link copied to clipboard
fun async(runnable: ShardRunnable.() -> Unit): ShardRunnable

Schedules an asynchronous task to be executed by the Bukkit scheduler.

Link copied to clipboard
fun delay(value: Long, unit: TimeUnit = TimeUnit.MILLISECONDS, async: Boolean = false, runnable: ShardRunnable.() -> Unit): ShardRunnable

Schedules a delayed task to be executed by the Bukkit scheduler.

Link copied to clipboard
fun repeat(delay: Long, period: Long, unit: TimeUnit = TimeUnit.MILLISECONDS, async: Boolean = false, runnable: BukkitRunnable.() -> Unit): ShardRunnable

Schedules a repeating task to be executed by the Bukkit scheduler.

Link copied to clipboard
fun sync(runnable: ShardRunnable.() -> Unit): ShardRunnable
Link copied to clipboard
fun task(delay: Long, task: () -> Unit): BukkitTask
Link copied to clipboard
fun taskAsync(delay: Long, task: () -> Unit): BukkitTask
Link copied to clipboard
fun taskLater(delay: Long, task: () -> Unit): BukkitTask
Link copied to clipboard
fun taskLaterAsync(delay: Long, task: () -> Unit): BukkitTask
Link copied to clipboard
fun taskTimer(delay: Long, period: Long, task: () -> Unit): BukkitTask
Link copied to clipboard
fun taskTimerAsync(delay: Long, period: Long, task: () -> Unit): BukkitTask