Class HorizontalSplitGUIPane

All Implemented Interfaces:
Sizeable
Direct Known Subclasses:
PaginatorGUIPane

public class HorizontalSplitGUIPane extends GUIPane
A GUIPane with an upper and lower pane. Renders the lower pane always below the upper pane.
Builder: HorizontalSplitGUIPaneBuilder
  • Constructor Details

    • HorizontalSplitGUIPane

      public HorizontalSplitGUIPane(GUI gui, Vector2d minSize, Vector2d maxSize)
      Creates a new HorizontalSplitGUIPane
      Parameters:
      gui - The GUI
      minSize - The minimum size of the Pane
      maxSize - The maximum size of the Pane
  • Method Details

    • updateSizeRecursive

      public void updateSizeRecursive(Sizeable parent)
      Is called to recursively update the size of all GUIPanes
      Specified by:
      updateSizeRecursive in class GUIPane
      Parameters:
      parent - The parent Pane or GUI (Sizeable)
    • updateSize

      public void updateSize(Sizeable parent)
      Updates the size of the Pane based on the height of upper and lower Pane.
      Specified by:
      updateSize in class GUIPane
      Parameters:
      parent - The parent Pane or GUI (Sizeable)
    • getChildren

      public Set<GUISection> getChildren()
      Description copied from class: GUIPane
      Implemented by GUIPanes Should return all children sections
      Specified by:
      getChildren in class GUIPane
      Returns:
      All children (upper and lower Pane)
    • render

      public List<org.bukkit.inventory.ItemStack> render()
      Renders the Pane on a list
      Specified by:
      render in class GUISection
      Returns:
      The List
    • getLowerPanePos

      public Vector2d getLowerPanePos()
      Returns:
      The position of the lower Pane taking the height of the upper Pane into account
    • getSectionAt

      public GUISection getSectionAt(Vector2d position)
      Returns the GUISection at a specific position.
      Specified by:
      getSectionAt in class GUISection
      Parameters:
      position - The position
      Returns:
      The GUISection