get

operator fun get(tag: PluginTag, inherit: Boolean = true): Plugin?

Find a loaded plugin via its tag

Return

Parameters

tag
operator fun <T : Any> get(type: KClass<out T>, tag: PluginTag? = null, recursive: Boolean = true): T?

Find a loaded plugin via its class. This method does not check if the result is unique and just returns first plugin matching the class condition. For safe search provide a tag since tags are checked on load and plugins with the same tag are not allowed in the same context.

Return

Parameters

tag
type
inline operator fun <T : Any> get(tag: PluginTag? = null, recursive: Boolean = true): T?
inline operator fun <T : Plugin> get(factory: PluginFactory<T>, recursive: Boolean = true): T?