Package dev.hypera.chameleon.platform
Interface PluginManager
-
public interface PluginManagerPlatform plugin manager.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull Optional<PlatformPlugin>getPlugin(@NotNull String name)Attempt to find a platform plugin by name.@NotNull Collection<PlatformPlugin>getPlugins()Get platform plugins.booleanisPluginEnabled(@NotNull String name)Check if a platform plugin is enabled, by name.
-
-
-
Method Detail
-
getPlugins
@NotNull @NotNull Collection<PlatformPlugin> getPlugins()
Get platform plugins.- Returns:
- set of platform plugins.
-
getPlugin
@NotNull @NotNull Optional<PlatformPlugin> getPlugin(@NotNull @NotNull String name)
Attempt to find a platform plugin by name.- Parameters:
name- The name to search for.- Returns:
- an optional containing the platform plugin, if found, otherwise an empty optional.
-
isPluginEnabled
boolean isPluginEnabled(@NotNull @NotNull String name)Check if a platform plugin is enabled, by name.- Parameters:
name- The name to search for.- Returns:
trueif the platform plugin was found and if it's enabled, otherwisefalse.
-
-