Class PaperGestaltLoader

java.lang.Object
ovh.mythmc.gestalt.loader.GestaltLoader
ovh.mythmc.gestalt.loader.PaperGestaltLoader

public class PaperGestaltLoader extends GestaltLoader
A GestaltLoader implementation for the Paper platform.

In addition to loading and enabling the Gestalt plugin JAR, this loader merges the Gestalt plugin's class loader into the initializer plugin's class loader group using PaperPluginClassLoaderUtil.mergeClassLoaders(Plugin, Plugin), allowing the initializer to access Gestalt's classes directly.

Use builder() to construct an instance:


 PaperGestaltLoader loader = PaperGestaltLoader.builder()
     .initializer(this)
     .build();
 loader.initialize();
 
  • Method Details