Package org.incendo.cloud.paper
Interface PluginMetaHolder
- All Superinterfaces:
PluginHolder
- All Known Implementing Classes:
PaperCommandManager,PaperCommandManager.Bootstrapped
Interface implemented by managers that have an associated PluginMeta.
-
Method Summary
Modifier and TypeMethodDescriptionstatic PluginMetaHolderfromPluginHolder(PluginHolder pluginHolder) Creates a meta holder from a plugin holder.default PluginReturns the plugin instance forowningPluginMeta().Returns the meta of the plugin that owns the manager.
-
Method Details
-
owningPluginMeta
PluginMeta owningPluginMeta()Returns the meta of the plugin that owns the manager.- Returns:
- owning plugin meta
-
owningPlugin
Returns the plugin instance forowningPluginMeta().- Specified by:
owningPluginin interfacePluginHolder- Returns:
- the plugin instance
- Throws:
NullPointerException- when the plugin is not loaded yet
-
fromPluginHolder
Creates a meta holder from a plugin holder.- Parameters:
pluginHolder- plugin holder- Returns:
- meta holder
-