Class CanvasGUI

All Implemented Interfaces:
org.bukkit.event.Listener

public class CanvasGUI extends BaseCanvasGUI<SimpleGUIPane>
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
Builder: CanvasGUIBuilder
  • Constructor Details

    • CanvasGUI

      public CanvasGUI(org.bukkit.plugin.Plugin plugin, net.kyori.adventure.text.TextComponent title, int height)
      Creates a new CanvasGUI
      Parameters:
      plugin - The plugin
      title - The title of the GUI
      height - The height of the GUI
    • CanvasGUI

      public CanvasGUI(org.bukkit.plugin.Plugin plugin, net.kyori.adventure.text.TextComponent title, int height, boolean registerDefaultHandlers)
      Creates a new CanvasGUI
      Parameters:
      plugin - The plugin
      title - The title of the GUI
      height - The height of the GUI
      registerDefaultHandlers - Whether to register default-handlers
    • CanvasGUI

      public CanvasGUI(org.bukkit.plugin.Plugin plugin, net.kyori.adventure.text.TextComponent title, org.bukkit.event.inventory.InventoryType type)
      Creates a new CanvasGUI
      Parameters:
      plugin - The plugin
      title - The title of the GUI
      type - The type of the GUI
    • CanvasGUI

      public CanvasGUI(org.bukkit.plugin.Plugin plugin, net.kyori.adventure.text.TextComponent title, org.bukkit.event.inventory.InventoryType type, boolean registerDefaultHandlers)
      Creates a new CanvasGUI
      Parameters:
      plugin - The plugin
      title - The title of the GUI
      type - The type of the GUI
      registerDefaultHandlers - Whether to register default-handlers
    • CanvasGUI

      protected CanvasGUI(org.bukkit.plugin.Plugin plugin, net.kyori.adventure.text.TextComponent title, org.bukkit.event.inventory.InventoryType type, Vector2d size)
      Creates a new CanvasGUI
      Parameters:
      plugin - The plugin
      title - The title of the GUI
      type - The type of the GUI
      size - The size of the GUI
    • CanvasGUI

      protected CanvasGUI(org.bukkit.plugin.Plugin plugin, net.kyori.adventure.text.TextComponent title, org.bukkit.event.inventory.InventoryType type, Vector2d size, boolean registerDefaultHandlers)
      Creates a new CanvasGUI
      Parameters:
      plugin - The plugin
      title - The title of the GUI
      type - The type of the GUI
      size - The size of the GUI
      registerDefaultHandlers - Whether to register default-handlers