Class GuiBuilder

java.lang.Object
me.despical.inventoryframework.GuiBuilder

public class GuiBuilder extends Object
Author:
Despical

Created at 30.07.2022

  • Constructor Details

    • GuiBuilder

      public GuiBuilder(@NotNull @NotNull GuiBuilder guiBuilder)
    • GuiBuilder

      public GuiBuilder(@NotNull @NotNull org.bukkit.plugin.Plugin plugin)
    • GuiBuilder

      public GuiBuilder(@NotNull @NotNull org.bukkit.plugin.Plugin plugin, int rows)
    • GuiBuilder

      public GuiBuilder(@NotNull @NotNull org.bukkit.plugin.Plugin plugin, int rows, @NotNull @NotNull String title)
  • Method Details

    • rows

      public GuiBuilder rows(int rows)
    • title

      public GuiBuilder title(@NotNull @NotNull String title)
    • pane

      public GuiBuilder pane(@NotNull @NotNull Pane pane)
    • pane

      public GuiBuilder pane(@NotNull @NotNull Supplier<Pane> paneSupplier)
    • topClick

      public GuiBuilder topClick(@NotNull @NotNull Consumer<org.bukkit.event.inventory.InventoryClickEvent> onTopClick)
    • bottomClick

      public GuiBuilder bottomClick(@NotNull @NotNull Consumer<org.bukkit.event.inventory.InventoryClickEvent> onBottomClick)
    • globalClick

      public GuiBuilder globalClick(@NotNull @NotNull Consumer<org.bukkit.event.inventory.InventoryClickEvent> onGlobalClick)
    • onOutsideClick

      public GuiBuilder onOutsideClick(@NotNull @NotNull Consumer<org.bukkit.event.inventory.InventoryClickEvent> onOutsideClick)
    • drag

      public GuiBuilder drag(@NotNull @NotNull Consumer<org.bukkit.event.inventory.InventoryDragEvent> onDrag)
    • close

      public GuiBuilder close(@NotNull @NotNull Consumer<org.bukkit.event.inventory.InventoryCloseEvent> onClose)
    • build

      public Gui build()
    • show

      public Gui show(@NotNull @NotNull org.bukkit.entity.Player player)