plugin

abstract fun <T> plugin(key: EnginePlugin.Key<T>): T?

Retrieve a plugin instance identified by the provided key from this registry. If no instance is registered for that key, null will be returned.

Return

A plugin instance associated with the given key, or null if none was found.

Parameters

key

A plugin key identifying the instance to be retrieved.