public class BasicFilteredInventory extends Inventory implements IFilteredInventory
callbacks| Constructor and Description |
|---|
BasicFilteredInventory(int slotAmount,
java.util.function.Function<ItemInstance,java.util.List<java.lang.Integer>> inputSlotFunction,
java.util.List<java.lang.Integer> outputSlots) |
BasicFilteredInventory(int slotAmount,
java.util.List<java.lang.Integer> inputOutputSlots) |
BasicFilteredInventory(int slotAmount,
java.util.List<java.lang.Integer> inputSlots,
java.util.List<java.lang.Integer> outputSlots) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.Integer> |
getInputSlots(ItemInstance instance,
Direction dir) |
java.util.List<java.lang.Integer> |
getOutputSlots(Direction dir) |
get, getSlotAmount, load, save, setadd, add, addChangeCallback, addExistingFirst, addToSlot, containsItem, containsResource, fillRandomly, getItemIndex, getNextFreeIndex, iterator, notifyChange, remove, removeChangeCallbackclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadd, add, addChangeCallback, addExistingFirst, addToSlot, containsInv, containsItem, containsResource, fillRandomly, get, getActualSlot, getItemIndex, getNextFreeIndex, getSlotAmount, notifyChange, remove, removeChangeCallback, setpublic BasicFilteredInventory(int slotAmount,
java.util.List<java.lang.Integer> inputOutputSlots)
public BasicFilteredInventory(int slotAmount,
java.util.List<java.lang.Integer> inputSlots,
java.util.List<java.lang.Integer> outputSlots)
public BasicFilteredInventory(int slotAmount,
java.util.function.Function<ItemInstance,java.util.List<java.lang.Integer>> inputSlotFunction,
java.util.List<java.lang.Integer> outputSlots)
public java.util.List<java.lang.Integer> getInputSlots(ItemInstance instance, Direction dir)
getInputSlots in interface IFilteredInventorypublic java.util.List<java.lang.Integer> getOutputSlots(Direction dir)
getOutputSlots in interface IFilteredInventory