Package-level declarations

Types

Link copied to clipboard
class BukkitMainThreadDispatcher(plugin: Plugin, tickRate: Long) : CoroutineDispatcher, Runnable, Delay

A CoroutineDispatcher that runs on the Bukkit main thread. As it is tied to the server's tick loop (internally converting all "milliseconds" to "ticks"), execution speed is determined by the server's tick rate. This means that if the server's TPS is 10, and a coroutine delays for 1000 milliseconds, it will actually delay for at least 2000 milliseconds, as the server is running at half speed.

Link copied to clipboard
class ChunkScope(val coroutineContext: CoroutineContext, chunk: ChunkPosition) : CoroutineScope

A CoroutineScope that is canceled when the chunk is unloaded.

Link copied to clipboard
class PlayerScope(val coroutineContext: CoroutineContext, playerId: UUID) : CoroutineScope

A CoroutineScope that is canceled when the player logs out.