Command Manager
Contains routines for handling commands and the command registry
All commands are registered directly against a Brigadier CommandDispatcher (see the brigadier package DSL); the legacy meta-model has been removed.
Author
superblaubeere27 (@team CCBlueX)
Properties
Get the related CoroutineScope of receiver EventListener.
Returns whether the listenable is running or not, this is based on the parent listenable and if no parent is present, it will return the opposite of isDestructed.
Functions
Children EventListener
Returns computed ReadWriteProperty based on the accumulator of specific event.
Drops the cached dispatcher so it is rebuilt with fresh argument state on next use.
Calls handler for every type event while this listener is running. Higher priority runs first. Close the result to stop early; unregister does the same for all of them.
task every game tick while this listener is running.
Parent EventListener
Registers a command written directly against the Brigadier tree.
Registers command nodes built at runtime rather than by a CommandRegistrar.
Remove cached scope and cancel it.
Registers an event hook for events of type T and launches a sequence
Start a Job on event.
Registers a repeatable sequence which repeats the execution of code on GameTickEvent.
Tokenizes the line.
Unregisters the event handler from the manager. This decision is FINAL! After the class was unregistered we cannot restore the handlers.
Unregisters dynamically provided command nodes by name, rebuilding the dispatcher.
Wrap the original interceptor and make it auto-detect the listener's running state at suspension to determine whether to resume the continuation.