MCCoroutine

interface MCCoroutine

Hidden internal MCCoroutine interface.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract fun disable(extension: <Error class: unknown class>)

Disposes the given extension coroutine session.

abstract fun disable(minecraftServer: <Error class: unknown class>)

Disposes the given server coroutine session.

Link copied to clipboard
abstract fun getCoroutineSession(extension: <Error class: unknown 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: unknown class>): CoroutineSession

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