Class ModalFiller
java.lang.Object
io.rhythmknights.coreapi.component.utility.ModalFiller
TODO fix comments
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidSets an ModalItem to fill up the entire inventory where there is no other itemvoidFill empty slots with Multiple ModalItems, goes through list and starts againvoidfillBetweenPoints(int rowFrom, int colFrom, int rowTo, int colTo, @NotNull ModalItem modalItem) Fills rectangle from points within the modalvoidfillBetweenPoints(int rowFrom, int colFrom, int rowTo, int colTo, @NotNull List<ModalItem> modalItems) Fills rectangle from points within the modalvoidfillBorder(@NotNull ModalItem modalItem) Fills the outside section of the modal with a ModalItemvoidfillBorder(@NotNull List<ModalItem> modalItems) Fill empty slots with Multiple ModalItems, goes through list and starts againvoidfillBottom(@NotNull ModalItem modalItem) Fills bottom portion of the modalvoidfillBottom(@NotNull List<ModalItem> modalItems) Fills bottom portion of the modal with alternationvoidfillSide(@NotNull ModalFiller.Side side, @NotNull List<ModalItem> modalItems) Fills specified side of the modal with a ModalItemvoidFills top portion of the modalvoidFills top portion of the modal with alternation
-
Constructor Details
-
ModalFiller
-
-
Method Details
-
fillTop
Fills top portion of the modal- Parameters:
modalItem- ModalItem
-
fillTop
Fills top portion of the modal with alternation- Parameters:
modalItems- List of ModalItems
-
fillBottom
Fills bottom portion of the modal- Parameters:
modalItem- ModalItem
-
fillBottom
Fills bottom portion of the modal with alternation- Parameters:
modalItems- ModalItem
-
fillBorder
Fills the outside section of the modal with a ModalItem- Parameters:
modalItem- ModalItem
-
fillBorder
Fill empty slots with Multiple ModalItems, goes through list and starts again- Parameters:
modalItems- ModalItem
-
fillBetweenPoints
public void fillBetweenPoints(int rowFrom, int colFrom, int rowTo, int colTo, @NotNull @NotNull ModalItem modalItem) Fills rectangle from points within the modal- Parameters:
rowFrom- Row point 1colFrom- Col point 1rowTo- Row point 2colTo- Col point 2modalItem- Item to fill with
-
fillBetweenPoints
public void fillBetweenPoints(int rowFrom, int colFrom, int rowTo, int colTo, @NotNull @NotNull List<ModalItem> modalItems) Fills rectangle from points within the modal- Parameters:
rowFrom- Row point 1colFrom- Col point 1rowTo- Row point 2colTo- Col point 2modalItems- Item to fill with
-
fill
Sets an ModalItem to fill up the entire inventory where there is no other item- Parameters:
modalItem- The item to use as fill
-
fill
Fill empty slots with Multiple ModalItems, goes through list and starts again- Parameters:
modalItems- ModalItem
-
fillSide
public void fillSide(@NotNull @NotNull ModalFiller.Side side, @NotNull @NotNull List<ModalItem> modalItems) Fills specified side of the modal with a ModalItem- Parameters:
modalItems- ModalItem
-