Class PluginLoader
java.lang.Object
java.lang.ClassLoader
java.security.SecureClassLoader
java.net.URLClassLoader
net.mcreator.plugin.PluginLoader
- All Implemented Interfaces:
Closeable, AutoCloseable
This class detects and then try to load all builtin or custom Plugins.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionprotected Collection<JavaPlugin> getResources(String pkg, Pattern pattern) getResources(Pattern pattern) static voidSet the value to the INSTANCE variable, so we can access values everywhere in the code.Methods inherited from class URLClassLoader
addURL, close, definePackage, findClass, findResource, findResources, getPermissions, getResourceAsStream, getURLs, newInstance, newInstanceMethods inherited from class SecureClassLoader
defineClass, defineClassMethods inherited from class ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findSystemClass, getClassLoadingLock, getDefinedPackage, getDefinedPackages, getName, getPackage, getPackages, getParent, getPlatformClassLoader, getResource, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, getUnnamedModule, isRegisteredAsParallelCapable, loadClass, loadClass, registerAsParallelCapable, resolveClass, resources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
-
Field Details
-
INSTANCE
-
-
Method Details
-
initInstance
public static void initInstance()Set the value to the INSTANCE variable, so we can access values everywhere in the code.
-
getResources
-
getResourcesInPackage
-
getResources
-
getPlugins
- Returns:
A
Listof all loaded plugins. Sorted by plugin weight.
-
getJavaPlugins
- Returns:
A
Listof all loaded Java plugins. Sorted by plugin weight.
-
getPluginUpdates
- Returns:
A list of all plugin updates detected.
-
getPluginModules
- Returns:
A list of all plugin modules.
-
getFailedPlugins
-