Class GUI.Builder<B extends GUI.Builder<B,G,P>,G extends GUI,P extends org.bukkit.plugin.java.JavaPlugin>

java.lang.Object
de.placeblock.betterinventories.Builder<B,G>
de.placeblock.betterinventories.gui.GUI.Builder<B,G,P>
Type Parameters:
B - The Builder that implements this one.
G - The GUI that gets build
P - The plugin that uses this builder.
Direct Known Subclasses:
BaseAnvilGUI.AbstractBuilder, BaseCanvasGUI.AbstractBuilder
Enclosing class:
GUI

public abstract static class GUI.Builder<B extends GUI.Builder<B,G,P>,G extends GUI,P extends org.bukkit.plugin.java.JavaPlugin> extends Builder<B,G>
The generic Builder for GUIs
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    removeItems(boolean removeItems)
    Sets the removeItems attribute
    title(net.kyori.adventure.text.TextComponent title)
    Sets the title attribute
    type(org.bukkit.event.inventory.InventoryType type)
    Sets the type attribute

    Methods inherited from class de.placeblock.betterinventories.Builder

    build, self

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • title

      public B title(net.kyori.adventure.text.TextComponent title)
      Sets the title attribute
      Parameters:
      title - The title of the GUI
      Returns:
      Itself
    • removeItems

      public B removeItems(boolean removeItems)
      Sets the removeItems attribute
      Parameters:
      removeItems - Whether to try to remove Items from the inventory on close. The first player that closes the gui gets the items
      Returns:
      Itself
    • type

      public B type(org.bukkit.event.inventory.InventoryType type)
      Sets the type attribute
      Parameters:
      type - The type of the GUI
      Returns:
      Itself