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 CanvasGUIsNested classes/interfaces inherited from class de.placeblock.betterinventories.gui.impl.BaseCanvasGUI
BaseCanvasGUI.AbstractBuilder<B extends BaseCanvasGUI.AbstractBuilder<B,G, C, P>, G extends BaseCanvasGUI<C>, C extends GUIPane, P extends org.bukkit.plugin.java.JavaPlugin> -
Field Summary
Fields inherited from class de.placeblock.betterinventories.gui.impl.BaseCanvasGUI
canvasFields inherited from class de.placeblock.betterinventories.gui.GUI
NMS_BRIDGE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCanvasGUI(org.bukkit.plugin.Plugin plugin, net.kyori.adventure.text.TextComponent title, int height, boolean removeItems) Creates a new CanvasGUIprotectedCanvasGUI(org.bukkit.plugin.Plugin plugin, net.kyori.adventure.text.TextComponent title, org.bukkit.event.inventory.InventoryType type, boolean removeItems) Creates a new CanvasGUI -
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
protected CanvasGUI(org.bukkit.plugin.Plugin plugin, net.kyori.adventure.text.TextComponent title, int height, boolean removeItems) 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
protected CanvasGUI(org.bukkit.plugin.Plugin plugin, net.kyori.adventure.text.TextComponent title, org.bukkit.event.inventory.InventoryType type, boolean removeItems) 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
-