Class BaseChestGUI<C extends GUIPane>
java.lang.Object
de.placeblock.betterinventories.gui.GUI
de.placeblock.betterinventories.gui.impl.BaseCanvasGUI<C>
de.placeblock.betterinventories.gui.impl.BaseChestGUI<C>
- Type Parameters:
C- The type of the main canvas
- All Implemented Interfaces:
Sizeable
- Direct Known Subclasses:
ChestGUI
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBaseChestGUI.Builder<B extends BaseChestGUI.Builder<B,G, C, P>, G extends BaseChestGUI<C>, C extends GUIPane, P extends org.bukkit.plugin.java.JavaPlugin> Builder for creating BaseChestGUIs -
Field Summary
Fields inherited from class de.placeblock.betterinventories.gui.impl.BaseCanvasGUI
canvas -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBaseChestGUI(org.bukkit.plugin.Plugin plugin, net.kyori.adventure.text.TextComponent title, boolean removeItems, int minHeight, int maxHeight) Creates a new BaseChestGUI -
Method Summary
Methods inherited from class de.placeblock.betterinventories.gui.impl.BaseCanvasGUI
createBukkitInventory, getCanvas, getSize, getSlots, provideItem, renderContent, searchSection, setCanvasMethods inherited from class de.placeblock.betterinventories.gui.GUI
getPlayers, getView, getView, onClose, reloadViews, removePlayer, showPlayer, updateTitle
-
Constructor Details
-
BaseChestGUI
protected BaseChestGUI(org.bukkit.plugin.Plugin plugin, net.kyori.adventure.text.TextComponent title, boolean removeItems, int minHeight, int maxHeight) Creates a new BaseChestGUI- Parameters:
plugin- The plugintitle- The title of the GUIminHeight- The minimum height of the GUImaxHeight- The maximum height of the GUIremoveItems- Whether to remove loose items on close. The first player that closes the gui gets the items
-
-
Method Details
-
update
public void update()Updates the GUI and reloads all Views if needed -
getMaxSize
- Specified by:
getMaxSizein interfaceSizeable- Returns:
- The maximum size of the GUI
-
getMinSize
- Specified by:
getMinSizein interfaceSizeable- Returns:
- The minimum size of the GUI
-