Class BaseAnvilGUI

java.lang.Object
de.placeblock.betterinventories.gui.GUI
de.placeblock.betterinventories.gui.impl.BaseAnvilGUI
Direct Known Subclasses:
AnvilGUI, TextInputGUI

public abstract class BaseAnvilGUI extends GUI
GUI for creating Anvil GUIs If you want to receive Text from Anvils you should use TextInputGUI
  • Constructor Details

    • BaseAnvilGUI

      protected BaseAnvilGUI(org.bukkit.plugin.Plugin plugin, net.kyori.adventure.text.TextComponent title, boolean removeItems)
      Creates a new AnvilGUI
      Parameters:
      plugin - The plugin
      title - The title of the GUI
      removeItems - Whether to remove loose items on close. The first player that closes the gui gets the items
  • Method Details

    • createBukkitInventory

      public org.bukkit.inventory.Inventory createBukkitInventory()
      Creates the Bukkit Inventory for this GUI
      Specified by:
      createBukkitInventory in class GUI
      Returns:
      The Bukkit Inventory
    • getSlots

      public int getSlots()
      Specified by:
      getSlots in class GUI
      Returns:
      The amount of slots this GUI has
    • renderContent

      public List<org.bukkit.inventory.ItemStack> renderContent()
      Renders the GUI on a list
      Specified by:
      renderContent in class GUI
      Returns:
      The List
    • searchSection

      public void searchSection(SearchData searchData)
      Searches the GUISection recursively. The SearchData is filled recursively.
      Specified by:
      searchSection in class GUI
      Parameters:
      searchData - The searchData that contains all needed information
    • provideItem

      public void provideItem(org.bukkit.inventory.ItemStack itemStack)
      Description copied from class: GUI
      Used to provide items to GUIPanes. The amount of the ItemStack will be modified if a pane accepted an ItemStack.
      Specified by:
      provideItem in class GUI
      Parameters:
      itemStack - The ItemStack that is provided.