Class TileInventory
java.lang.Object
de.ellpeck.rockbottom.api.inventory.AbstractInventory
de.ellpeck.rockbottom.api.inventory.Inventory
de.ellpeck.rockbottom.api.tile.entity.BasicFilteredInventory
de.ellpeck.rockbottom.api.tile.entity.TileInventory
- All Implemented Interfaces:
IInventory,IFilteredInventory,Iterable<ItemInstance>
-
Field Summary
Fields inherited from class de.ellpeck.rockbottom.api.inventory.AbstractInventory
callbacks -
Constructor Summary
ConstructorsConstructorDescriptionTileInventory(TileEntity tile) Creates a tile inventory that has a single slot that is an output slotTileInventory(TileEntity tile, int slotAmount, Function<ItemInstance, List<Integer>> inputSlotFunction, List<Integer> outputSlots) TileInventory(TileEntity tile, int slotAmount, List<Integer> inputOutputSlots) TileInventory(TileEntity tile, int slotAmount, List<Integer> inputSlots, List<Integer> outputSlots) TileInventory(TileEntity tile, Function<ItemInstance, Boolean> canInput) Creates a tile inventory that has a single slot that is an input slot. -
Method Summary
Methods inherited from class de.ellpeck.rockbottom.api.tile.entity.BasicFilteredInventory
getInputSlots, getOutputSlotsMethods inherited from class de.ellpeck.rockbottom.api.inventory.Inventory
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, containsInv, containsItem, containsResource, fillRandomly, get, getActualSlot, getItemIndex, getNextFreeIndex, getSlotAmount, notifyChange, remove, removeChangeCallback, setMethods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Constructor Details
-
TileInventory
Creates a tile inventory that has a single slot that is an output slot- Parameters:
tile- the tile entity itself
-
TileInventory
Creates a tile inventory that has a single slot that is an input slot. The function determines if the given item can be put into the slot or not- Parameters:
tile- the tile entity itselfcanInput- if it can be inputted into the tile entity
-
TileInventory
-
TileInventory
public TileInventory(TileEntity tile, int slotAmount, List<Integer> inputSlots, List<Integer> outputSlots) -
TileInventory
public TileInventory(TileEntity tile, int slotAmount, Function<ItemInstance, List<Integer>> inputSlotFunction, List<Integer> outputSlots)
-