Class ExtensionManager
java.lang.Object
org.geysermc.geyser.api.extension.ExtensionManager
Manages Geyser
Extensions-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidDisables the givenExtension.abstract voidEnables the givenExtension.abstract @Nullable ExtensionGets an extension with the given name.abstract @Nullable ExtensionLoaderGets theExtensionLoader.abstract @NonNull Collection<Extension>Gets all theExtensions currently loaded.protected voidloadAllExtensions(@NonNull ExtensionLoader extensionLoader)Loads all extensions from the givenExtensionLoader.abstract voidRegisters anExtensionwith the givenExtensionLoader.
-
Constructor Details
-
ExtensionManager
public ExtensionManager()
-
-
Method Details
-
extension
Gets an extension with the given name.- Parameters:
name- the name of the extension- Returns:
- an extension with the given name
-
enable
Enables the givenExtension.- Parameters:
extension- the extension to enable
-
disable
Disables the givenExtension.- Parameters:
extension- the extension to disable
-
extensions
Gets all theExtensions currently loaded.- Returns:
- all the extensions currently loaded
-
extensionLoader
Gets theExtensionLoader.- Returns:
- the extension loader
-
register
Registers anExtensionwith the givenExtensionLoader.- Parameters:
extension- the extension
-
loadAllExtensions
Loads all extensions from the givenExtensionLoader.
-