java.lang.Object
de.placeblock.betterinventories.gui.GUI
de.placeblock.betterinventories.gui.impl.cartography.CartographyGUI

public class CartographyGUI extends GUI
GUI For the cartography table
  • Constructor Details

    • CartographyGUI

      protected CartographyGUI(org.bukkit.plugin.Plugin plugin, net.kyori.adventure.text.TextComponent title, org.bukkit.event.inventory.InventoryType type, boolean removeItems)
      Creates a new GUI
      Parameters:
      plugin - The plugin
      title - The title of the GUI
      type - The type 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()
      Description copied from class: GUI
      Creates a new Bukkit Inventory for the GUI when implemented
      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()
      Description copied from class: GUI
      Renders the GUI on a list
      Specified by:
      renderContent in class GUI
      Returns:
      The List
    • searchSection

      public void searchSection(SearchData searchData)
      Description copied from class: GUI
      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.