All Implemented Interfaces:
Sizeable
Direct Known Subclasses:
PaginatorContentPane, TransferGUIPane

public class SimpleItemGUIPane extends BaseSimpleGUIPane<GUIItem,SimpleItemGUIPane>
Implementation of BaseSimpleGUIPane that can contain only GUIItems.
Builder: SimpleItemGUIPaneBuilder
  • Constructor Details

    • SimpleItemGUIPane

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

      public SimpleItemGUIPane(GUI gui, Vector2d minSize, Vector2d maxSize, boolean autoSize)
      Creates a new SimpleGUIPane
      Parameters:
      gui - The GUI
      minSize - The minimum size of the Pane
      maxSize - The maximum size of the Pane
      autoSize - Whether to automatically resize the pane according to the children. If true it will set the size to the bounding box of all children.
  • Method Details

    • flipY

      public void flipY()
      Flips all items on the Y axis. Items on the left will be on the right and vice versa.
    • flipX

      public void flipX()
      Flips all items on the X axis. Items on the top will be on the bottom and vice versa.
    • shiftX

      public void shiftX(int delta)
      Shifts Items to the left or right
      Parameters:
      delta - The delta (positive to shift to the right)
    • shiftY

      public void shiftY(int delta)
      Shifts Items to the top or bottom
      Parameters:
      delta - The delta (positive to shift to the bottom)