CoroutineSession

interface CoroutineSession

Facade of a coroutine session of a single plugin.

Functions

fireSuspendingEvent
Link copied to clipboard
abstract fun fireSuspendingEvent(event: <ERROR CLASS>, eventExecutionType: EventExecutionType): Collection<<ERROR CLASS>>

Fires a suspending event with the given eventExecutionType.

registerSuspendCommandExecutor
Link copied to clipboard
abstract fun registerSuspendCommandExecutor(commandSpec: <ERROR CLASS>, commandExecutor: SuspendingCommandExecutor)

Registers a suspend command executor.

registerSuspendListener
Link copied to clipboard
abstract fun registerSuspendListener(listener: Any)

Registers a suspend listener.

Properties

dispatcherAsync
Link copied to clipboard
abstract val dispatcherAsync: CoroutineContext

Async Dispatcher.

dispatcherMinecraft
Link copied to clipboard
abstract val dispatcherMinecraft: CoroutineContext

Minecraft Dispatcher.

scope
Link copied to clipboard
abstract val scope: <ERROR CLASS>

Plugin scope.