Package dev.hypera.chameleon.platform
Interface PlatformPlugin
-
@NonExtendable public interface PlatformPluginRepresents a plugin running on the platform.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddisable()Attempt to disable this plugin.voidenable()Attempt to enable this plugin.@NotNull Collection<String>getAuthors()Get the authors of this plugin.@NotNull PathgetDataDirectory()Get the data directory of this plugin.@NotNull Collection<String>getDependencies()Get the required dependencies of this plugin.@NotNull Optional<String>getDescription()Get the description of this plugin.@NotNull Class<?>getMainClass()Get the main class of this plugin.@NotNull StringgetName()Get the name of this plugin.@NotNull Collection<String>getSoftDependencies()Get the optional dependencies of this plugin.@NotNull StringgetVersion()Get the version of this plugin.
-
-
-
Method Detail
-
getName
@NotNull @NotNull String getName()
Get the name of this plugin.- Returns:
- name.
-
getVersion
@NotNull @NotNull String getVersion()
Get the version of this plugin.- Returns:
- version.
-
getDescription
@NotNull @NotNull Optional<String> getDescription()
Get the description of this plugin.- Returns:
- an
Optionalcontaining the plugin description, if available, otherwise an empty optional.
-
getMainClass
@NotNull @NotNull Class<?> getMainClass()
Get the main class of this plugin.- Returns:
- main class.
-
getAuthors
@NotNull @NotNull Collection<String> getAuthors()
Get the authors of this plugin.- Returns:
- authors.
-
getDependencies
@NotNull @NotNull Collection<String> getDependencies()
Get the required dependencies of this plugin.- Returns:
- required dependencies.
-
getSoftDependencies
@NotNull @NotNull Collection<String> getSoftDependencies()
Get the optional dependencies of this plugin.- Returns:
- optional dependencies.
-
getDataDirectory
@NotNull @NotNull Path getDataDirectory()
Get the data directory of this plugin.- Returns:
- data directory.
-
enable
@Experimental void enable()
Attempt to enable this plugin.This is not guaranteed to work and is currently experimental. Use at your own risk!
-
disable
@Experimental void disable()
Attempt to disable this plugin.This is not guaranteed to work and is currently experimental. Use at your own risk!
-
-