| Package | Description |
|---|---|
| io.github.portlek.smartinventory |
the package that contains common interfaces.
|
| io.github.portlek.smartinventory.content |
the package that contains
Page's contents. |
| Modifier and Type | Method and Description |
|---|---|
@NotNull SlotIterator |
SlotIterator.allowOverride(boolean override)
sets the value of the allow override option.
|
@NotNull SlotIterator |
SlotIterator.blacklist(int index)
blacklists the given slot index.
|
@NotNull SlotIterator |
SlotIterator.blacklist(int row,
int column)
blacklists the given slot position.
|
default @NotNull SlotIterator |
SlotIterator.blacklist(@NotNull SlotPos slotPos)
blacklists the given slot position.
|
default @NotNull SlotIterator |
SlotIterator.blacklistPattern(@NotNull Pattern<Boolean> pattern)
this method has the inverse effect of
withPattern(Pattern), where the other method would only allow the
iterator to go, this method prohibits this slots to iterate over. |
@NotNull SlotIterator |
SlotIterator.blacklistPattern(@NotNull Pattern<Boolean> pattern,
int rowOffset,
int columnOffset)
This method has the inverse effect of
withPattern(Pattern, int, int),
where the other method would only allow the iterator to go,
this method prohibits this slots to iterate over. |
@NotNull SlotIterator |
SlotIterator.column(int column)
sets the current column of the iterator.
|
@NotNull SlotIterator |
SlotIterator.endPosition(int row,
int column)
sets the slot where the iterator should end.
|
default @NotNull SlotIterator |
SlotIterator.endPosition(@NotNull SlotPos endPosition)
sets the slot where the iterator should end.
|
default @NotNull SlotIterator |
InventoryContents.newIterator(SlotIterator.Type type,
int startRow,
int startColumn)
creates and returns an iterator.
|
default @NotNull SlotIterator |
InventoryContents.newIterator(SlotIterator.Type type,
@NotNull SlotPos startPos)
same as
InventoryContents.newIterator(SlotIterator.Type, int, int),
but using a SlotPos instead. |
@NotNull SlotIterator |
InventoryContents.newIterator(@NotNull String id,
SlotIterator.Type type,
int startRow,
int startColumn)
creates and registers an iterator using a given id.
|
default @NotNull SlotIterator |
InventoryContents.newIterator(@NotNull String id,
SlotIterator.Type type,
@NotNull SlotPos startPos)
same as
InventoryContents.newIterator(String, SlotIterator.Type, int, int),
but using a SlotPos instead. |
@NotNull SlotIterator |
SlotIterator.next()
moves the cursor to the next position inside the inventory.
|
@NotNull SlotIterator |
SlotIterator.previous()
moves the cursor to the previous position inside the inventory.
|
@NotNull SlotIterator |
SlotIterator.reset()
resets iterator to its original position specified while creation.
|
@NotNull SlotIterator |
SlotIterator.row(int row)
sets the current row of the iterator.
|
@NotNull SlotIterator |
SlotIterator.set(@NotNull Icon icon)
replaces the icon at the current position in the inventory by the given icon.
|
default @NotNull SlotIterator |
SlotIterator.withPattern(@NotNull Pattern<Boolean> pattern)
setting a pattern using this method will use it as a guideline where the slot iterator can set icons or not.
|
@NotNull SlotIterator |
SlotIterator.withPattern(@NotNull Pattern<Boolean> pattern,
int rowOffset,
int columnOffset)
setting a pattern using this method will use it as a guideline where the slot iterator can set icons or not.
|
| Modifier and Type | Method and Description |
|---|---|
default @NotNull Pagination |
Pagination.addToIterator(@NotNull SlotIterator iterator)
adds all the current page icons to the given iterator.
|
| Modifier and Type | Class and Description |
|---|---|
class |
BasicSlotIterator
an implementation for
SlotIterator. |
| Modifier and Type | Method and Description |
|---|---|
@NotNull SlotIterator |
BasicSlotIterator.allowOverride(boolean override) |
@NotNull SlotIterator |
BasicSlotIterator.blacklist(int index) |
@NotNull SlotIterator |
BasicSlotIterator.blacklist(int row,
int column) |
@NotNull SlotIterator |
BasicSlotIterator.blacklistPattern(@NotNull Pattern<Boolean> pattern,
int rowOffset,
int columnOffset) |
@NotNull SlotIterator |
BasicSlotIterator.column(int column) |
@NotNull SlotIterator |
BasicSlotIterator.endPosition(int row,
int column) |
@NotNull SlotIterator |
BasicInventoryContents.newIterator(@NotNull String id,
SlotIterator.Type type,
int startRow,
int startColumn) |
@NotNull SlotIterator |
BasicSlotIterator.next() |
@NotNull SlotIterator |
BasicSlotIterator.previous() |
@NotNull SlotIterator |
BasicSlotIterator.reset() |
@NotNull SlotIterator |
BasicSlotIterator.row(int row) |
@NotNull SlotIterator |
BasicSlotIterator.set(@NotNull Icon icon) |
@NotNull SlotIterator |
BasicSlotIterator.withPattern(@NotNull Pattern<Boolean> pattern,
int rowOffset,
int columnOffset) |
Copyright © 2021. All rights reserved.