Class GuiFiller
java.lang.Object
dev.triumphteam.gui.components.util.GuiFiller
public final class GuiFiller
extends java.lang.Object
TODO fix comments
-
Constructor Summary
-
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 itemvoid
fill(@NotNull java.util.List<GuiItem> guiItems)
Fill empty slots with Multiple GuiItems, goes through list and starts againvoid
fillBetweenPoints(int rowFrom, int colFrom, int rowTo, int colTo, @NotNull GuiItem guiItem)
Fills rectangle from points within the GUIvoid
fillBetweenPoints(int rowFrom, int colFrom, int rowTo, int colTo, @NotNull java.util.List<GuiItem> guiItems)
Fills rectangle from points within the GUIvoid
fillBorder(@NotNull GuiItem guiItem)
Fills the outside section of the GUI with a GuiItemvoid
fillBorder(@NotNull java.util.List<GuiItem> guiItems)
Fill empty slots with Multiple GuiItems, goes through list and starts againvoid
fillBottom(@NotNull GuiItem guiItem)
Fills bottom portion of the GUIvoid
fillBottom(@NotNull java.util.List<GuiItem> guiItems)
Fills bottom portion of the GUI with alternationvoid
fillTop(@NotNull GuiItem guiItem)
Fills top portion of the GUIvoid
fillTop(@NotNull java.util.List<GuiItem> guiItems)
Fills top portion of the GUI with alternation
-
Constructor Details
-
Method Details
-
fillTop
Fills top portion of the GUI- Parameters:
guiItem
- GuiItem
-
fillTop
Fills top portion of the GUI with alternation- Parameters:
guiItems
- List of GuiItems
-
fillBottom
Fills bottom portion of the GUI- Parameters:
guiItem
- GuiItem
-
fillBottom
Fills bottom portion of the GUI with alternation- Parameters:
guiItems
- GuiItem
-
fillBorder
Fills the outside section of the GUI with a GuiItem- Parameters:
guiItem
- GuiItem
-
fillBorder
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 1colFrom
- Col point 1rowTo
- Row point 2colTo
- Col point 2guiItem
- 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 1colFrom
- Col point 1rowTo
- Row point 2colTo
- Col point 2guiItems
- Item to fill with
-
fill
Sets an GuiItem to fill up the entire inventory where there is no other item- Parameters:
guiItem
- The item to use as fill
-
fill
Fill empty slots with Multiple GuiItems, goes through list and starts again- Parameters:
guiItems
- GuiItem
-