Package dev.itsharshxd.zentrix.api.addon
Interface AddonManager.AddonInfo
- Enclosing interface:
AddonManager
public static interface AddonManager.AddonInfo
Represents information about a registered addon.
-
Method Summary
Modifier and TypeMethodDescription@NotNull Collection<String> Gets the addon's authors.@NotNull StringGets the addon's description.@NotNull StringgetId()Gets the addon's unique identifier.@NotNull StringgetName()Gets the addon's display name.@NotNull org.bukkit.plugin.PluginGets the underlying Bukkit plugin instance.@NotNull StringGets the addon's version.booleanChecks if the addon is currently enabled.
-
Method Details
-
getId
Gets the addon's unique identifier.This is typically the plugin name in lowercase.
- Returns:
- The addon ID (never null)
-
getName
Gets the addon's display name.- Returns:
- The addon name (never null)
-
getVersion
Gets the addon's version.- Returns:
- The version string (never null)
-
getDescription
Gets the addon's description.- Returns:
- The description, or empty string if none
-
getAuthors
Gets the addon's authors.- Returns:
- An unmodifiable list of author names (never null, may be empty)
-
getPlugin
@NotNull @NotNull org.bukkit.plugin.Plugin getPlugin()Gets the underlying Bukkit plugin instance.- Returns:
- The plugin instance (never null)
-
isEnabled
boolean isEnabled()Checks if the addon is currently enabled.- Returns:
trueif the addon is enabled
-