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 by the given ID.abstract @Nullable ExtensionLoaderGets theExtensionLoader.abstract @NonNull Collection<Extension> Gets all theExtensions currently loaded.protected final 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 by the given ID.- Parameters:
id- the ID of the extension- Returns:
- an extension with the given ID
-
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.
-