Package org.bukkit.plugin.java
Class PluginClassLoaderUtils
java.lang.Object
org.bukkit.plugin.java.PluginClassLoaderUtils
This utility class allows us to create a new
PluginClassLoader. The constructor is marked as package-private
hence why this class is located in this exact package.-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull org.bukkit.plugin.java.PluginClassLoadercreatePluginClassLoader(@NotNull org.bukkit.plugin.java.JavaPluginLoader loader, @Nullable ClassLoader parent, @NotNull org.bukkit.plugin.PluginDescriptionFile description, @NotNull File dataFolder, @NotNull File file, @NotNull ClassLoader libraryLoader)
-
Method Details
-
createPluginClassLoader
@NotNull public static @NotNull org.bukkit.plugin.java.PluginClassLoader createPluginClassLoader(@NotNull @NotNull org.bukkit.plugin.java.JavaPluginLoader loader, @Nullable @Nullable ClassLoader parent, @NotNull @NotNull org.bukkit.plugin.PluginDescriptionFile description, @NotNull @NotNull File dataFolder, @NotNull @NotNull File file, @NotNull @NotNull ClassLoader libraryLoader) throws IOException, org.bukkit.plugin.InvalidPluginException, MalformedURLException - Throws:
IOExceptionorg.bukkit.plugin.InvalidPluginExceptionMalformedURLException
-