Class CanvasGUI
java.lang.Object
de.placeblock.betterinventories.gui.GUI
de.placeblock.betterinventories.gui.impl.BaseCanvasGUI<SimpleGUIPane>
de.placeblock.betterinventories.gui.impl.CanvasGUI
Used for creating GUIs that only have one canvas e.g. HopperGUIs and a fixed size.
Bear in mind that for creating Chest Inventories you should use
ChestGUI-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classCanvasGUI.Builder<P extends org.bukkit.plugin.java.JavaPlugin>Builder used for creating CanvasGUIs -
Field Summary
Fields inherited from class de.placeblock.betterinventories.gui.impl.BaseCanvasGUI
canvas -
Constructor Summary
ConstructorsConstructorDescriptionCanvasGUI(org.bukkit.plugin.Plugin plugin, net.kyori.adventure.text.TextComponent title, int height, boolean removeItems) Deprecated, for removal: This API element is subject to removal in a future version.CanvasGUI(org.bukkit.plugin.Plugin plugin, net.kyori.adventure.text.TextComponent title, org.bukkit.event.inventory.InventoryType type, boolean removeItems) 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.BaseCanvasGUI
createBukkitInventory, getCanvas, getSize, getSlots, provideItem, renderContent, searchSection, setCanvasMethods inherited from class de.placeblock.betterinventories.gui.GUI
getPlayers, getView, getView, onClose, reloadViews, removePlayer, showPlayer, update, updateTitle
-
Constructor Details
-
CanvasGUI
@Deprecated(forRemoval=true) public CanvasGUI(org.bukkit.plugin.Plugin plugin, net.kyori.adventure.text.TextComponent title, int height, boolean removeItems) Deprecated, for removal: This API element is subject to removal in a future version.Creates a new CanvasGUI- Parameters:
plugin- The plugintitle- The title of the GUIheight- The height of the GUIremoveItems- Whether to remove loose items on close. The first player that closes the gui gets the items
-
CanvasGUI
@Deprecated(forRemoval=true) public CanvasGUI(org.bukkit.plugin.Plugin plugin, net.kyori.adventure.text.TextComponent title, org.bukkit.event.inventory.InventoryType type, boolean removeItems) Deprecated, for removal: This API element is subject to removal in a future version.Creates a new CanvasGUI- 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
-