| 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.event |
the package that contains event classes.
|
| io.github.portlek.smartinventory.event.abs |
the package that contains interfaces of all the events.
|
| io.github.portlek.smartinventory.icon |
the package that contains
Icon implementations. |
| io.github.portlek.smartinventory.manager |
the package that contains
SmartInventory implementations. |
| io.github.portlek.smartinventory.page |
the package that contains
Page implementations. |
| Modifier and Type | Method and Description |
|---|---|
default @NotNull InventoryContents |
InventoryContents.add(@NotNull Icon item)
adds an item to the first empty slot of the inventory.
|
default @NotNull InventoryContents |
InventoryContents.applyRect(int fromRow,
int fromColumn,
int toRow,
int toColumn,
@NotNull Consumer<Icon> apply)
applies the consumer on a rectangle inside the inventory using the given
positions.
|
default @NotNull InventoryContents |
InventoryContents.applyRect(int fromRow,
int fromColumn,
int toRow,
int toColumn,
@NotNull ObjIntConsumer<Integer> apply)
applie the consumer on a rectangle inside the inventory using the given
positions.
|
default @NotNull InventoryContents |
InventoryContents.fill(@NotNull Icon item)
fills the inventory with the given item.
|
default @NotNull InventoryContents |
InventoryContents.fillBorders(@NotNull Icon item)
fills the inventory borders with the given item.
|
default @NotNull InventoryContents |
InventoryContents.fillColumn(int column,
@NotNull Icon item)
fills the given inventory column with the given item.
|
default @NotNull InventoryContents |
InventoryContents.fillEmpties(@NotNull Icon item)
fills the empty slots of the inventory with the given item.
|
default @NotNull InventoryContents |
InventoryContents.fillPattern(@NotNull Pattern<Icon> pattern)
fills the inventory with the given
Pattern. |
default @NotNull InventoryContents |
InventoryContents.fillPattern(@NotNull Pattern<Icon> pattern,
int startIndex)
fills the inventory with the given
Pattern. |
default @NotNull InventoryContents |
InventoryContents.fillPattern(@NotNull Pattern<Icon> pattern,
int startRow,
int startColumn)
fills the inventory with the given
Pattern. |
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)
fills the inventory with the given
Pattern. |
default @NotNull InventoryContents |
InventoryContents.fillPatternRepeating(@NotNull Pattern<Icon> pattern,
int startIndex,
int endIndex)
fills the inventory with the given
Pattern. |
default @NotNull InventoryContents |
InventoryContents.fillPatternRepeating(@NotNull Pattern<Icon> pattern,
int startRow,
int startColumn,
int endRow,
int endColumn)
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(int fromIndex,
int toIndex,
@NotNull Icon item)
fills a rectangle inside the inventory using the given
positions.
|
default @NotNull InventoryContents |
InventoryContents.fillRect(int fromRow,
int fromColumn,
int toRow,
int toColumn,
@NotNull Icon item)
same as
fillRect(int, int, Icon),
but with SlotPos instead of the indexes. |
default @NotNull InventoryContents |
InventoryContents.fillRect(@NotNull SlotPos fromPos,
@NotNull SlotPos toPos,
@NotNull Icon item)
same as
fillRect(int, int, Icon),
but with rows and columns instead of the indexes. |
default @NotNull InventoryContents |
InventoryContents.fillRow(int row,
@NotNull Icon item)
fills the given inventory row with the given item.
|
default @NotNull InventoryContents |
InventoryContents.fillSquare(int fromIndex,
int toIndex,
@NotNull Icon item)
completely fills the provided square with the given
Icon. |
default @NotNull InventoryContents |
InventoryContents.fillSquare(int fromRow,
int fromColumn,
int toRow,
int toColumn,
@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 InventoryContents |
InventoryContents.set(int index,
@Nullable Icon item)
sets the item in the inventory at the given
slot index.
|
@NotNull InventoryContents |
InventoryContents.set(int row,
int column,
@Nullable Icon item)
same as
set(int, Icon),
but with a row and a column instead of the index. |
default @NotNull InventoryContents |
InventoryContents.set(@NotNull SlotPos slotPos,
@Nullable Icon item)
Same as
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.
|
@NotNull InventoryContents |
InventoryContents.setProperty(@NotNull String name,
@NotNull Object value)
sets the value of the property with the given name.
|
| Modifier and Type | Method and Description |
|---|---|
@NotNull org.bukkit.inventory.ItemStack |
Icon.calculateItem(@NotNull InventoryContents contents)
calculates and returns the item of the icon.
|
default void |
InventoryOpener.fill(@NotNull org.bukkit.inventory.Inventory inventory,
@NotNull InventoryContents contents)
fills the given contents to the given inventory.
|
default void |
InventoryProvider.init(@NotNull InventoryContents contents)
runs when the page has just opened.
|
void |
Page.notifyUpdate(@NotNull InventoryContents contents)
runs the
Page.provider()'s InventoryProvider.update(InventoryContents) method with the given contents. |
void |
SmartInventory.setContents(@NotNull org.bukkit.entity.Player player,
@NotNull InventoryContents contest)
sets the given player of the contents to the given contents.
|
void |
SmartInventory.setContentsByInventory(@NotNull org.bukkit.inventory.Inventory inventory,
@NotNull InventoryContents contest)
sets the given inventory of the contents to the given contents.
|
default void |
InventoryProvider.tick(@NotNull InventoryContents contents)
runs every tick.
|
default void |
InventoryProvider.update(@NotNull InventoryContents contents)
runs when
notifyUpdate() runs. |
| Modifier and Type | Class and Description |
|---|---|
class |
BasicInventoryContents
an implementation for
InventoryContents. |
| Modifier and Type | Method and Description |
|---|---|
@NotNull InventoryContents |
BasicInventoryContents.set(int row,
int column,
@Nullable Icon item) |
@NotNull InventoryContents |
BasicInventoryContents.setEditable(@NotNull SlotPos slot,
boolean editable) |
@NotNull InventoryContents |
BasicInventoryContents.setProperty(@NotNull String name,
@NotNull Object value) |
| Constructor and Description |
|---|
BasicSlotIterator(@NotNull InventoryContents contents,
SlotIterator.Type type)
ctor.
|
BasicSlotIterator(@NotNull InventoryContents contents,
SlotIterator.Type type,
int startRow,
int startColumn)
ctor.
|
| Modifier and Type | Method and Description |
|---|---|
@NotNull InventoryContents |
PlgnDisableEvent.contents() |
@NotNull InventoryContents |
PgClickEvent.contents() |
@NotNull InventoryContents |
PgBottomClickEvent.contents() |
@NotNull InventoryContents |
PgOpenEvent.contents() |
@NotNull InventoryContents |
PgInitEvent.contents() |
@NotNull InventoryContents |
IcDragEvent.contents() |
@NotNull InventoryContents |
PgTickEvent.contents() |
@NotNull InventoryContents |
PgOutsideClickEvent.contents() |
@NotNull InventoryContents |
IcClickEvent.contents() |
@NotNull InventoryContents |
PgCloseEvent.contents() |
@NotNull InventoryContents |
PgUpdateEvent.contents() |
@NotNull InventoryContents |
PlyrQuitEvent.contents() |
| Constructor and Description |
|---|
IcClickEvent(@NotNull org.bukkit.plugin.Plugin plugin,
@NotNull org.bukkit.event.inventory.InventoryClickEvent event,
@NotNull InventoryContents contents,
@NotNull Icon icon) |
IcDragEvent(@NotNull org.bukkit.plugin.Plugin plugin,
@NotNull org.bukkit.event.inventory.InventoryDragEvent event,
@NotNull InventoryContents contents,
@NotNull Icon icon) |
PgBottomClickEvent(@NotNull org.bukkit.plugin.Plugin plugin,
@NotNull org.bukkit.event.inventory.InventoryClickEvent event,
@NotNull InventoryContents contents) |
PgClickEvent(@NotNull org.bukkit.plugin.Plugin plugin,
@NotNull org.bukkit.event.inventory.InventoryClickEvent event,
@NotNull InventoryContents contents) |
PgCloseEvent(@NotNull InventoryContents contents) |
PgInitEvent(@NotNull InventoryContents contents) |
PgOpenEvent(@NotNull org.bukkit.plugin.Plugin plugin,
@NotNull org.bukkit.event.inventory.InventoryOpenEvent event,
@NotNull InventoryContents contents) |
PgOutsideClickEvent(@NotNull org.bukkit.plugin.Plugin plugin,
@NotNull org.bukkit.event.inventory.InventoryClickEvent event,
@NotNull InventoryContents contents) |
PgTickEvent(@NotNull InventoryContents contents) |
PgUpdateEvent(@NotNull InventoryContents contents) |
PlgnDisableEvent(@NotNull InventoryContents contents) |
PlyrQuitEvent(@NotNull InventoryContents contents) |
| Modifier and Type | Method and Description |
|---|---|
@NotNull InventoryContents |
SmartEvent.contents() |
| Modifier and Type | Method and Description |
|---|---|
@NotNull org.bukkit.inventory.ItemStack |
BasicIcon.calculateItem(@NotNull InventoryContents contents) |
| Modifier and Type | Method and Description |
|---|---|
void |
BasicSmartInventory.setContents(@NotNull org.bukkit.entity.Player player,
@NotNull InventoryContents contest) |
void |
BasicSmartInventory.setContentsByInventory(@NotNull org.bukkit.inventory.Inventory inventory,
@NotNull InventoryContents contest) |
| Modifier and Type | Method and Description |
|---|---|
void |
BasicPage.notifyUpdate(@NotNull InventoryContents contents) |
Copyright © 2021. All rights reserved.