Package net.luckperms.api.extension
Interface ExtensionManager
-
public interface ExtensionManagerManages extensions.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NonNull @Unmodifiable Collection<Extension>getLoadedExtensions()Gets a collection of all loaded extensions.@NonNull ExtensionloadExtension(Path path)Loads the extension at the given path.voidloadExtension(Extension extension)Loads the given extension.
-
-
-
Method Detail
-
loadExtension
void loadExtension(Extension extension)
Loads the given extension.- Parameters:
extension- the extension to load
-
loadExtension
@NonNull Extension loadExtension(Path path) throws IOException
Loads the extension at the given path.- Parameters:
path- the path to the extension- Returns:
- the extension
- Throws:
IOException- if the extension could not be loaded
-
getLoadedExtensions
@NonNull @Unmodifiable Collection<Extension> getLoadedExtensions()
Gets a collection of all loaded extensions.- Returns:
- the loaded extensions
-
-