Class BaseChestGUI<C extends GUIPane>

Type Parameters:
C - The type of the main canvas
All Implemented Interfaces:
Sizeable
Direct Known Subclasses:
ChestGUI

public abstract class BaseChestGUI<C extends GUIPane> extends BaseCanvasGUI<C> implements Sizeable
Used for creating ChestGUIs. They auto-resize depending on the size of the canvas. If you don't want the gui to resize you should consider setting the minHeight equals the maxHeight or use CanvasGUI To instantiate use ChestGUI
  • 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 plugin
      title - The title of the GUI
      minHeight - The minimum height of the GUI
      maxHeight - The maximum height of the GUI
      removeItems - 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
      Overrides:
      update in class GUI
    • getMaxSize

      public Vector2d getMaxSize()
      Specified by:
      getMaxSize in interface Sizeable
      Returns:
      The maximum size of the GUI
    • getMinSize

      public Vector2d getMinSize()
      Specified by:
      getMinSize in interface Sizeable
      Returns:
      The minimum size of the GUI