Class DefaultsPaperPluginLoader

java.lang.Object
xyz.jpenilla.gremlin.runtime.platformsupport.DefaultsPaperPluginLoader
All Implemented Interfaces:
io.papermc.paper.plugin.loader.PluginLoader

@NullMarked public final class DefaultsPaperPluginLoader extends Object implements io.papermc.paper.plugin.loader.PluginLoader
Paper PluginLoader that automatically loads dependencies using DependencySet.readDefault(ClassLoader), resolves them to plugins/<plugin_name>/libraries/ using DependencyResolver, and then adds them to the plugin classpath.

This is provided as a convenience for the common case, and isn't meant to be flexible. If custom behavior is required, a custom PluginLoader should be implemented.

  • Constructor Details

    • DefaultsPaperPluginLoader

      public DefaultsPaperPluginLoader()
  • Method Details

    • classloader

      public void classloader(io.papermc.paper.plugin.loader.PluginClasspathBuilder classpath)
      Specified by:
      classloader in interface io.papermc.paper.plugin.loader.PluginLoader