static class ComposterBlock.DummyInventory extends SimpleInventory implements SidedInventory
Constructor and Description |
---|
DummyInventory() |
Modifier and Type | Method and Description |
---|---|
boolean |
canExtract(int slot,
ItemStack stack,
Direction dir)
Determines whether the given stack can be removed from this inventory at the specified slot position from the given direction.
|
boolean |
canInsert(int slot,
ItemStack stack,
Direction dir)
Determines whether the given stack can be inserted into this inventory at the specified slot position from the given direction.
|
int[] |
getAvailableSlots(Direction side)
Gets the available slot positions that are reachable from a given side.
|
addListener, addStack, canInsert, canPlayerUse, clear, clearToList, getStack, getTags, isEmpty, markDirty, provideRecipeInputs, readTags, removeItem, removeListener, removeStack, removeStack, setStack, size, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
canPlayerUse, containsAny, count, getMaxCountPerStack, getStack, isEmpty, isValid, markDirty, onClose, onOpen, removeStack, removeStack, setStack, size
public int[] getAvailableSlots(Direction side)
getAvailableSlots
in interface SidedInventory
public boolean canInsert(int slot, ItemStack stack, @Nullable Direction dir)
canInsert
in interface SidedInventory
public boolean canExtract(int slot, ItemStack stack, Direction dir)
canExtract
in interface SidedInventory