Package studio.mevera.lotus
Class LotusBuilder<C>
java.lang.Object
studio.mevera.lotus.LotusBuilder<C>
Builder for
Lotus. Required: Plugin. All other fields default to
Lotus.Options.defaults().
Use defaultViewOpener(ViewOpener) to register the platform-specific opener —
e.g. PaperViewOpener from lotus-paper or SpigotViewOpener from
lotus-spigot.
-
Constructor Summary
ConstructorsConstructorDescriptionLotusBuilder(@NotNull org.bukkit.plugin.Plugin plugin, @NotNull Consumer<Lotus<C>> bootstrap) -
Method Summary
Modifier and TypeMethodDescription@NotNull LotusBuilder<C> allowBottomInventoryClick(boolean allow) build()@NotNull LotusBuilder<C> debug(boolean debug) @NotNull LotusBuilder<C> defaultViewOpener(@NotNull ViewOpener<C> opener) Sets the fallbackViewOpenerused for all inventory types not explicitly registered viaLotus.registerOpener(org.bukkit.event.inventory.InventoryType, ViewOpener).@NotNull LotusBuilder<C> dynamicButtonAction(boolean dynamic) @NotNull LotusBuilder<C>
-
Constructor Details
-
LotusBuilder
-
-
Method Details
-
allowBottomInventoryClick
-
dynamicButtonAction
-
debug
-
paginationSessionFactory
@NotNull public @NotNull LotusBuilder<C> paginationSessionFactory(PaginationSessionFactory<C> factory) -
defaultViewOpener
Sets the fallbackViewOpenerused for all inventory types not explicitly registered viaLotus.registerOpener(org.bukkit.event.inventory.InventoryType, ViewOpener).This must be a platform-specific implementation —
PaperViewOpeneron Paper orSpigotViewOpeneron Spigot. -
build
-