Class CartographyGUI
java.lang.Object
de.placeblock.betterinventories.gui.GUI
de.placeblock.betterinventories.gui.impl.cartography.CartographyGUI
GUI For the cartography table
-
Nested Class Summary
Nested classes/interfaces inherited from class de.placeblock.betterinventories.gui.GUI
GUI.Builder<B extends GUI.Builder<B,G, P>, G extends GUI, P extends org.bukkit.plugin.java.JavaPlugin> -
Field Summary
Fields inherited from class de.placeblock.betterinventories.gui.GUI
NMS_BRIDGE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCartographyGUI(org.bukkit.plugin.Plugin plugin, net.kyori.adventure.text.TextComponent title, org.bukkit.event.inventory.InventoryType type, boolean removeItems) Creates a new GUI -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.inventory.InventoryCreates a new Bukkit Inventory for the GUI when implementedintgetSlots()voidprovideItem(org.bukkit.inventory.ItemStack itemStack) Used to provide items to GUIPanes.protected List<org.bukkit.inventory.ItemStack>Renders the GUI on a listvoidsearchSection(SearchData searchData) Searches the GUISection recursively.Methods inherited from class de.placeblock.betterinventories.gui.GUI
getPlayers, getView, getView, onClose, reloadViews, removePlayer, showPlayer, update, updateTitle
-
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 plugintitle- The title of the GUItype- The type of the GUIremoveItems- 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:GUICreates a new Bukkit Inventory for the GUI when implemented- Specified by:
createBukkitInventoryin classGUI- Returns:
- The Bukkit Inventory
-
getSlots
public int getSlots() -
renderContent
Description copied from class:GUIRenders the GUI on a list- Specified by:
renderContentin classGUI- Returns:
- The List
-
searchSection
Description copied from class:GUISearches the GUISection recursively. The SearchData is filled recursively.- Specified by:
searchSectionin classGUI- Parameters:
searchData- The searchData that contains all needed information
-
provideItem
public void provideItem(org.bukkit.inventory.ItemStack itemStack) Description copied from class:GUIUsed to provide items to GUIPanes. The amount of the ItemStack will be modified if a pane accepted an ItemStack.- Specified by:
provideItemin classGUI- Parameters:
itemStack- The ItemStack that is provided.
-