Package de.geolykt.starloader.mod
Class ExtensionManager
java.lang.Object
de.geolykt.starloader.mod.ExtensionManager
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable ExtensiongetExtension(@NotNull String name) voidloadExtensions(List<@NotNull ? extends ExtensionPrototype> extensionCandidates) @NotNull MinestomExtensionClassLoadernewClassLoader(@NotNull DiscoveredExtension extension) Creates a new class loader for the given extension.voidvoidshutdown()Shutdowns all the extensions by unloading them.voidunloadExtension(String extensionName)
-
Field Details
-
LOGGER
@Internal public static final org.slf4j.Logger LOGGER
-
-
Constructor Details
-
ExtensionManager
Deprecated. -
ExtensionManager
-
-
Method Details
-
loadExtensions
-
newClassLoader
@NotNull public @NotNull MinestomExtensionClassLoader newClassLoader(@NotNull @NotNull DiscoveredExtension extension) Creates a new class loader for the given extension. Will add the new loader as a child of all its dependencies' loaders.- Parameters:
extension- The extension that should own the classloader- Since:
- 4.0.0-20230701
-
getExtensions
-
getExtension
-
reload
-
unloadExtension
-
shutdown
public void shutdown()Shutdowns all the extensions by unloading them.
-