AddonContainer

interface AddonContainer

Represents a wrapper around an addon.

Properties

Link copied to clipboard
@NotNull
val ID_PATTERN: @NotNull Pattern
The regular expression pattern that addon ids must match.

Functions

Link copied to clipboard
@NotNull
abstract fun getAuthors(): @NotNull Collection<String>
Gets the authors of the addon.
Link copied to clipboard
@NotNull
abstract fun getDependencies(): @NotNull Collection<AddonDependency>
Gets a collection of addon dependencies declared by the addon.
Link copied to clipboard
@NotNull
abstract fun getId(): @NotNull String
Gets the unique id of the addon.
Link copied to clipboard
abstract fun getInstance(): Optional<out Any>
Returns an optional instance of the addon if it has been instantiated.
Link copied to clipboard
@NotNull
abstract fun getMainClass(): @NotNull Class<out Any>
Returns the main class of the addon, which is the class that serves as the entry point for the addon's functionality.
Link copied to clipboard
@NotNull
abstract fun getName(): @NotNull String
Gets the name of the addon.
Link copied to clipboard
@NotNull
abstract fun getScope(): @NotNull AddonLoaderScope
Gets the scope of the addon, which indicates where it should be loaded.
Link copied to clipboard
@NotNull
abstract fun getVersion(): @NotNull String
Gets the version of the addon.