Class ChestGUI
java.lang.Object
de.placeblock.betterinventories.gui.GUI
de.placeblock.betterinventories.gui.impl.BaseCanvasGUI<C>
de.placeblock.betterinventories.gui.impl.BaseChestGUI<SimpleGUIPane>
de.placeblock.betterinventories.gui.impl.ChestGUI
- All Implemented Interfaces:
Sizeable
Implementation of
BaseChestGUI using SimpleGUIPane that auto resizes-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classChestGUI.Builder<P extends org.bukkit.plugin.java.JavaPlugin>Builder for creating ChestGUIs -
Field Summary
Fields inherited from class de.placeblock.betterinventories.gui.impl.BaseCanvasGUI
canvas -
Constructor Summary
ConstructorsConstructorDescriptionChestGUI(org.bukkit.plugin.Plugin plugin, net.kyori.adventure.text.TextComponent title, boolean removeItems, int minHeight, int maxHeight) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Methods inherited from class de.placeblock.betterinventories.gui.impl.BaseChestGUI
getMaxSize, getMinSize, updateMethods 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
-
ChestGUI
@Deprecated(forRemoval=true) public ChestGUI(org.bukkit.plugin.Plugin plugin, net.kyori.adventure.text.TextComponent title, boolean removeItems, int minHeight, int maxHeight) Deprecated, for removal: This API element is subject to removal in a future version.Creates a new ChestGUI- 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
-