| Package | Description |
|---|---|
| io.github.portlek.smartinventory |
the package that contains common interfaces.
|
| io.github.portlek.smartinventory.content |
the package that contains
Page's contents. |
| io.github.portlek.smartinventory.util |
the package that contains utility classes.
|
| Modifier and Type | Method and Description |
|---|---|
default @NotNull SlotIterator |
SlotIterator.blacklist(@NotNull SlotPos slotPos)
blacklists the given slot position.
|
default @NotNull SlotIterator |
SlotIterator.endPosition(@NotNull SlotPos endPosition)
sets the slot where the iterator should end.
|
default @NotNull InventoryContents |
InventoryContents.fillPattern(@NotNull Pattern<Icon> pattern,
@NotNull SlotPos startPos)
fills the inventory with the given
Pattern. |
default @NotNull InventoryContents |
InventoryContents.fillPatternRepeating(@NotNull Pattern<Icon> pattern,
@NotNull SlotPos startPos,
@NotNull SlotPos endPos)
fills the inventory with the given
Pattern. |
default @NotNull InventoryContents |
InventoryContents.fillPatternRepeating(@NotNull Pattern<Icon> pattern,
@NotNull SlotPos startPos,
@NotNull SlotPos endPos)
fills the inventory with the given
Pattern. |
default @NotNull InventoryContents |
InventoryContents.fillRect(@NotNull SlotPos fromPos,
@NotNull SlotPos toPos,
@NotNull Icon item)
same as
InventoryContents.fillRect(int, int, Icon),
but with rows and columns instead of the indexes. |
default @NotNull InventoryContents |
InventoryContents.fillRect(@NotNull SlotPos fromPos,
@NotNull SlotPos toPos,
@NotNull Icon item)
same as
InventoryContents.fillRect(int, int, Icon),
but with rows and columns instead of the indexes. |
default @NotNull InventoryContents |
InventoryContents.fillSquare(@NotNull SlotPos fromPos,
@NotNull SlotPos toPos,
@NotNull Icon item)
completely fills the provided square with the given
Icon. |
default @NotNull InventoryContents |
InventoryContents.fillSquare(@NotNull SlotPos fromPos,
@NotNull SlotPos toPos,
@NotNull Icon item)
completely fills the provided square with the given
Icon. |
default @NotNull Optional<Icon> |
InventoryContents.get(@NotNull SlotPos slotPos)
same as
InventoryContents.get(int),
but with a SlotPos instead of the index. |
boolean |
InventoryContents.isEditable(@NotNull SlotPos slot)
returns if a given slot is editable or not.
|
default @NotNull SlotIterator |
InventoryContents.newIterator(SlotIterator.Type type,
@NotNull SlotPos startPos)
same as
InventoryContents.newIterator(SlotIterator.Type, int, int),
but using a SlotPos instead. |
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. |
default @NotNull InventoryContents |
InventoryContents.set(@NotNull SlotPos slotPos,
@Nullable Icon item)
Same as
InventoryContents.set(int, Icon),
but with a SlotPos instead of the index. |
default InventoryContents |
InventoryContents.setEditable(@NotNull SlotPos slot)
makes a slot editable, which enables the player to
put items in and take items out of the inventory in the
specified slot.
|
InventoryContents |
InventoryContents.setEditable(@NotNull SlotPos slot,
boolean editable)
makes a slot editable, which enables the player to
put items in and take items out of the inventory in the
specified slot.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
BasicInventoryContents.isEditable(@NotNull SlotPos slot) |
@NotNull InventoryContents |
BasicInventoryContents.setEditable(@NotNull SlotPos slot,
boolean editable) |
| Modifier and Type | Method and Description |
|---|---|
static @NotNull SlotPos |
SlotPos.of(int row,
int column)
creats a simple slot position instance.
|
| Modifier and Type | Method and Description |
|---|---|
@NotNull Optional<T> |
Pattern.getObject(@NotNull SlotPos slot)
this method is simple a shorthand to the method call
getObject(slot.getRow(),
slot.getColumn()),
so all the special cases described in that method will apply to this one. |
Copyright © 2021. All rights reserved.