Class BasicFilteredInventory
java.lang.Object
de.ellpeck.rockbottom.api.inventory.AbstractInventory
de.ellpeck.rockbottom.api.inventory.Inventory
de.ellpeck.rockbottom.api.tile.entity.BasicFilteredInventory
- All Implemented Interfaces:
IInventory,IFilteredInventory,Iterable<ItemInstance>
- Direct Known Subclasses:
TileInventory
-
Field Summary
Fields inherited from class de.ellpeck.rockbottom.api.inventory.AbstractInventory
callbacks -
Constructor Summary
ConstructorsConstructorDescriptionBasicFilteredInventory(int slotAmount, Function<ItemInstance, List<Integer>> inputSlotFunction, List<Integer> outputSlots) BasicFilteredInventory(int slotAmount, List<Integer> inputOutputSlots) BasicFilteredInventory(int slotAmount, List<Integer> inputSlots, List<Integer> outputSlots) -
Method Summary
Modifier and TypeMethodDescriptiongetInputSlots(ItemInstance instance, Direction dir) getOutputSlots(Direction dir) Methods inherited from class de.ellpeck.rockbottom.api.inventory.Inventory
clear, get, getSlotAmount, load, save, setMethods 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
add, add, addChangeCallback, addExistingFirst, addToSlot, clear, containsInv, containsItem, containsResource, fillRandomly, get, getActualSlot, getItemIndex, getNextFreeIndex, getSlotAmount, notifyChange, remove, removeChangeCallback, setMethods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Constructor Details
-
BasicFilteredInventory
-
BasicFilteredInventory
-
BasicFilteredInventory
-
-
Method Details
-
getInputSlots
- Specified by:
getInputSlotsin interfaceIFilteredInventory
-
getOutputSlots
- Specified by:
getOutputSlotsin interfaceIFilteredInventory
-