Class Inventory
java.lang.Object
de.ellpeck.rockbottom.api.inventory.AbstractInventory
de.ellpeck.rockbottom.api.inventory.Inventory
- All Implemented Interfaces:
IInventory,Iterable<ItemInstance>
- Direct Known Subclasses:
BasicFilteredInventory
-
Field Summary
FieldsFields inherited from class de.ellpeck.rockbottom.api.inventory.AbstractInventory
callbacks -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()get(int id) intvoidvoidvoidset(int id, ItemInstance instance) Methods inherited from class de.ellpeck.rockbottom.api.inventory.AbstractInventory
add, add, addChangeCallback, addExistingFirst, addToSlot, containsItem, containsResource, fillRandomly, getItemIndex, getNextFreeIndex, iterator, notifyChange, remove, removeChangeCallbackMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.ellpeck.rockbottom.api.inventory.IInventory
containsInv, getActualSlotMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
slots
-
-
Constructor Details
-
Inventory
public Inventory(int slotAmount)
-
-
Method Details
-
set
-
get
-
getSlotAmount
public int getSlotAmount() -
save
-
load
-
clear
public void clear()
-