Class PluginClassLoaderUtils

java.lang.Object
org.bukkit.plugin.java.PluginClassLoaderUtils

public class PluginClassLoaderUtils extends Object
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 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:
      IOException
      org.bukkit.plugin.InvalidPluginException
      MalformedURLException