Class GuiFiller

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

public final class GuiFiller
extends java.lang.Object
TODO fix comments
  • Constructor Summary

    Constructors 
    Constructor Description
    GuiFiller​(BaseGui gui)  
  • 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 java.util.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 java.util.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 java.util.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 java.util.List<GuiItem> guiItems)
    Fills bottom portion of the GUI with alternation
    void fillTop​(@NotNull GuiItem guiItem)
    Fills top portion of the GUI
    void fillTop​(@NotNull java.util.List<GuiItem> guiItems)
    Fills top portion of the GUI with alternation

    Methods inherited from class java.lang.Object

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

  • 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 java.util.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 java.util.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 java.util.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 java.util.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 java.util.List<GuiItem> guiItems)
      Fill empty slots with Multiple GuiItems, goes through list and starts again
      Parameters:
      guiItems - GuiItem