InventoryContentspublic static class InventoryContents.Impl extends java.lang.Object implements InventoryContents
InventoryContents.Impl| Constructor | Description |
|---|---|
Impl(SmartInventory inv) |
public Impl(SmartInventory inv)
public SmartInventory inventory()
inventory in interface InventoryContentspublic Pagination pagination()
pagination in interface InventoryContentspublic java.util.Optional<SlotIterator> iterator(java.lang.String id)
iterator in interface InventoryContentspublic SlotIterator newIterator(java.lang.String id, SlotIterator.Type type, int startRow, int startColumn)
newIterator in interface InventoryContentspublic SlotIterator newIterator(java.lang.String id, SlotIterator.Type type, SlotPos startPos)
newIterator in interface InventoryContentspublic SlotIterator newIterator(SlotIterator.Type type, int startRow, int startColumn)
newIterator in interface InventoryContentspublic SlotIterator newIterator(SlotIterator.Type type, SlotPos startPos)
newIterator in interface InventoryContentspublic ClickableItem[][] all()
all in interface InventoryContentspublic java.util.Optional<SlotPos> firstEmpty()
firstEmpty in interface InventoryContentspublic java.util.Optional<ClickableItem> get(int row, int column)
get in interface InventoryContentspublic java.util.Optional<ClickableItem> get(SlotPos slotPos)
get in interface InventoryContentspublic InventoryContents set(int row, int column, ClickableItem item)
set in interface InventoryContentspublic InventoryContents set(SlotPos slotPos, ClickableItem item)
set in interface InventoryContentspublic InventoryContents add(ClickableItem item)
add in interface InventoryContentspublic InventoryContents fill(ClickableItem item)
fill in interface InventoryContentspublic InventoryContents fillRow(int row, ClickableItem item)
fillRow in interface InventoryContentspublic InventoryContents fillColumn(int column, ClickableItem item)
fillColumn in interface InventoryContentspublic InventoryContents fillBorders(ClickableItem item)
fillBorders in interface InventoryContentspublic InventoryContents fillRect(int fromRow, int fromColumn, int toRow, int toColumn, ClickableItem item)
fillRect in interface InventoryContentspublic InventoryContents fillRect(SlotPos fromPos, SlotPos toPos, ClickableItem item)
fillRect in interface InventoryContentspublic <T> T property(java.lang.String name)
property in interface InventoryContentspublic <T> T property(java.lang.String name,
T def)
property in interface InventoryContentspublic InventoryContents setProperty(java.lang.String name, java.lang.Object value)
setProperty in interface InventoryContents