MCCoroutine

interface MCCoroutine

Hidden internal MCCoroutine interface.

Types

Companion
Link copied to clipboard
object Companion

Functions

disable
Link copied to clipboard
abstract fun disable(extension: <ERROR CLASS>)

Disposes the given extension coroutine session.

abstract fun disable(minecraftServer: <ERROR CLASS>)

Disposes the given server coroutine session.

getCoroutineSession
Link copied to clipboard
abstract fun getCoroutineSession(extension: <ERROR CLASS>): CoroutineSession

Get coroutine session for the given extension. When using an extension, coroutine scope is bound to the lifetime of the extension.

abstract fun getCoroutineSession(minecraftServer: <ERROR CLASS>): CoroutineSession

Get coroutine session for the given server. When using a server, coroutine scope is bound to the lifetime of the entire server.