Package ovh.mythmc.gestalt.loader
Class BukkitGestaltLoader.BukkitGestaltLoaderBuilder
java.lang.Object
ovh.mythmc.gestalt.loader.BukkitGestaltLoader.BukkitGestaltLoaderBuilder
- Enclosing class:
BukkitGestaltLoader
Builder for
BukkitGestaltLoader.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds and returns aBukkitGestaltLoaderwith the configured values.dataDirectory(Path dataDirectory) Overrides the data directory used to store the Gestalt JAR.initializer(org.bukkit.plugin.java.JavaPlugin initializer) Configures the loader using the givenJavaPluginas the initializer.logger(GestaltLoggerWrapper logger) Overrides the logger wrapper used for status messages.
-
Method Details
-
initializer
public BukkitGestaltLoader.BukkitGestaltLoaderBuilder initializer(org.bukkit.plugin.java.JavaPlugin initializer) Configures the loader using the givenJavaPluginas 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 aBukkitGestaltLoaderwith the configured values.- Returns:
- a new
BukkitGestaltLoaderinstance
-