java.lang.Object
de.placeblock.betterinventories.gui.GUI
de.placeblock.betterinventories.gui.impl.AnvilGUI
All Implemented Interfaces:
org.bukkit.event.Listener
Direct Known Subclasses:
TextInputGUI

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

    • AnvilGUI

      public AnvilGUI(org.bukkit.plugin.Plugin plugin, net.kyori.adventure.text.TextComponent title)
      Creates a new AnvilGUI
      Parameters:
      plugin - The plugin
      title - The title of the GUI
    • AnvilGUI

      public AnvilGUI(org.bukkit.plugin.Plugin plugin, net.kyori.adventure.text.TextComponent title, boolean registerDefaultHandlers)
      Creates a new AnvilGUI
      Parameters:
      plugin - The plugin
      title - The title of the GUI
      registerDefaultHandlers - Wheter to register default-handlers
  • 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

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

      public GUISection getClickedSection(int slot)
      Returns the GUISection at a specific slot.
      Specified by:
      getClickedSection in class GUI
      Parameters:
      slot - The slot
      Returns:
      The GUISection at the slot or null