Class BaseChestGUIBuilder<P extends GUIPane,G extends BaseChestGUI<P>,B extends BaseChestGUIBuilder<P,G,B>>

Type Parameters:
P - The main canvas type
G - The GUI type
B - The Builder type
All Implemented Interfaces:
Builder<G,B>
Direct Known Subclasses:
ChestGUIBuilder

public abstract class BaseChestGUIBuilder<P extends GUIPane,G extends BaseChestGUI<P>,B extends BaseChestGUIBuilder<P,G,B>> extends BaseCanvasGUIBuilder<P,G,B>
Base class for creating ChestGUI-Builders
  • Constructor Details

    • BaseChestGUIBuilder

      public BaseChestGUIBuilder(org.bukkit.plugin.Plugin plugin)
      Creates a new BaseChestGUIBuilder
      Parameters:
      plugin - The plugin for the GUI
  • Method Details

    • maxHeight

      public B maxHeight(int maxHeight)
      Sets the maxHeight of the Inventory. If no maxHeight is set at build-time it will use minHeight or Height
      Parameters:
      maxHeight - The maximum height
      Returns:
      this
    • minHeight

      public B minHeight(int minHeight)
      Sets the minHeight of the Inventory. If no minHeight is set at build-time it will use Height or 1
      Parameters:
      minHeight - The minimum height
      Returns:
      this
    • getBestMaxHeight

      public int getBestMaxHeight()
      Returns:
      The best maximum height (maxHeight -> minHeight -> height)
    • getBestMinHeight

      public int getBestMinHeight()
      Returns:
      The best minimum height (minHeight -> height -> 1)