Class GuiFiller

java.lang.Object
dev.triumphteam.gui.components.util.GuiFiller

public final class GuiFiller extends Object
TODO fix comments
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    fill(@NotNull GuiItem guiItem)
    Sets an GuiItem to fill up the entire inventory where there is no other item
    void
    fill(@NotNull List<GuiItem> guiItems)
    Fill empty slots with Multiple GuiItems, goes through list and starts again
    void
    fillBetweenPoints(int rowFrom, int colFrom, int rowTo, int colTo, @NotNull GuiItem guiItem)
    Fills rectangle from points within the GUI
    void
    fillBetweenPoints(int rowFrom, int colFrom, int rowTo, int colTo, @NotNull List<GuiItem> guiItems)
    Fills rectangle from points within the GUI
    void
    fillBorder(@NotNull GuiItem guiItem)
    Fills the outside section of the GUI with a GuiItem
    void
    fillBorder(@NotNull List<GuiItem> guiItems)
    Fill empty slots with Multiple GuiItems, goes through list and starts again
    void
    fillBottom(@NotNull GuiItem guiItem)
    Fills bottom portion of the GUI
    void
    fillBottom(@NotNull List<GuiItem> guiItems)
    Fills bottom portion of the GUI with alternation
    void
    fillSide(@NotNull GuiFiller.Side side, @NotNull List<GuiItem> guiItems)
    Fills specified side of the GUI with a GuiItem
    void
    fillTop(@NotNull GuiItem guiItem)
    Fills top portion of the GUI
    void
    fillTop(@NotNull List<GuiItem> guiItems)
    Fills top portion of the GUI with alternation

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • GuiFiller

      public GuiFiller(BaseGui gui)
  • Method Details

    • fillTop

      public void fillTop(@NotNull @NotNull GuiItem guiItem)
      Fills top portion of the GUI
      Parameters:
      guiItem - GuiItem
    • fillTop

      public void fillTop(@NotNull @NotNull List<GuiItem> guiItems)
      Fills top portion of the GUI with alternation
      Parameters:
      guiItems - List of GuiItems
    • fillBottom

      public void fillBottom(@NotNull @NotNull GuiItem guiItem)
      Fills bottom portion of the GUI
      Parameters:
      guiItem - GuiItem
    • fillBottom

      public void fillBottom(@NotNull @NotNull List<GuiItem> guiItems)
      Fills bottom portion of the GUI with alternation
      Parameters:
      guiItems - GuiItem
    • fillBorder

      public void fillBorder(@NotNull @NotNull GuiItem guiItem)
      Fills the outside section of the GUI with a GuiItem
      Parameters:
      guiItem - GuiItem
    • fillBorder

      public void fillBorder(@NotNull @NotNull List<GuiItem> guiItems)
      Fill empty slots with Multiple GuiItems, goes through list and starts again
      Parameters:
      guiItems - GuiItem
    • fillBetweenPoints

      public void fillBetweenPoints(int rowFrom, int colFrom, int rowTo, int colTo, @NotNull @NotNull GuiItem guiItem)
      Fills rectangle from points within the GUI
      Parameters:
      rowFrom - Row point 1
      colFrom - Col point 1
      rowTo - Row point 2
      colTo - Col point 2
      guiItem - Item to fill with
    • fillBetweenPoints

      public void fillBetweenPoints(int rowFrom, int colFrom, int rowTo, int colTo, @NotNull @NotNull List<GuiItem> guiItems)
      Fills rectangle from points within the GUI
      Parameters:
      rowFrom - Row point 1
      colFrom - Col point 1
      rowTo - Row point 2
      colTo - Col point 2
      guiItems - Item to fill with
    • fill

      public void fill(@NotNull @NotNull GuiItem guiItem)
      Sets an GuiItem to fill up the entire inventory where there is no other item
      Parameters:
      guiItem - The item to use as fill
    • fill

      public void fill(@NotNull @NotNull List<GuiItem> guiItems)
      Fill empty slots with Multiple GuiItems, goes through list and starts again
      Parameters:
      guiItems - GuiItem
    • fillSide

      public void fillSide(@NotNull @NotNull GuiFiller.Side side, @NotNull @NotNull List<GuiItem> guiItems)
      Fills specified side of the GUI with a GuiItem
      Parameters:
      guiItems - GuiItem