Package ovh.mythmc.gestalt.loader
Class PaperGestaltLoader.PaperGestaltLoaderBuilder
java.lang.Object
ovh.mythmc.gestalt.loader.PaperGestaltLoader.PaperGestaltLoaderBuilder
- Enclosing class:
PaperGestaltLoader
Builder for
PaperGestaltLoader.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds and returns aPaperGestaltLoaderwith the configured values.dataDirectory(Path dataDirectory) Overrides the data directory used to store the Gestalt JAR.initializer(org.bukkit.plugin.Plugin initializer) Configures the loader using the givenPluginas the initializer.logger(GestaltLoggerWrapper logger) Overrides the logger wrapper used for status messages.
-
Method Details
-
initializer
public PaperGestaltLoader.PaperGestaltLoaderBuilder initializer(org.bukkit.plugin.Plugin initializer) Configures the loader using the givenPluginas the initializer. Sets the data directory to the parent of the plugin's data folder and creates a verbose logger wrapper from the plugin's JUL logger.- Parameters:
initializer- the plugin that is loading Gestalt- Returns:
- this builder
-
dataDirectory
Overrides the data directory used to store the Gestalt JAR.- Parameters:
dataDirectory- the directory in whichlibs/gestalt.jaris placed- Returns:
- this builder
-
logger
Overrides the logger wrapper used for status messages.- Parameters:
logger- the logger wrapper- Returns:
- this builder
-
build
Builds and returns aPaperGestaltLoaderwith the configured values.- Returns:
- a new
PaperGestaltLoaderinstance
-