Class SpigotBoot
java.lang.Object
tech.guilhermekaua.spigotboot.core.SpigotBoot
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SpigotBootBuilderbuilder(@NotNull BootPlugin plugin) static ContextgetContext(@NotNull BootPlugin plugin) static Contextinitialize(@NotNull BootPlugin plugin) static Contextinitialize(@NotNull BootPlugin plugin, @NotNull Class<? extends Module>... modulesToLoad) static voidonDisable(@NotNull BootPlugin plugin) static voidregisterShutdownHook(@NotNull BootPlugin plugin, @NotNull Runnable runnable) static voidunregisterShutdownHook(@NotNull BootPlugin plugin, @NotNull Runnable runnable)
-
Constructor Details
-
SpigotBoot
public SpigotBoot()
-
-
Method Details
-
initialize
-
initialize
@SafeVarargs public static Context initialize(@NotNull @NotNull BootPlugin plugin, @NotNull @NotNull Class<? extends Module>... modulesToLoad) -
builder
-
getContext
-
onDisable
-
registerShutdownHook
public static void registerShutdownHook(@NotNull @NotNull BootPlugin plugin, @NotNull @NotNull Runnable runnable) -
unregisterShutdownHook
public static void unregisterShutdownHook(@NotNull @NotNull BootPlugin plugin, @NotNull @NotNull Runnable runnable)
-