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, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcanPlayerUse, containsAny, count, getMaxCountPerStack, getStack, isEmpty, isValid, markDirty, onClose, onOpen, removeStack, removeStack, setStack, sizepublic int[] getAvailableSlots(Direction side)
getAvailableSlots in interface SidedInventorypublic boolean canInsert(int slot,
ItemStack stack,
@Nullable
Direction dir)
canInsert in interface SidedInventorypublic boolean canExtract(int slot,
ItemStack stack,
Direction dir)
canExtract in interface SidedInventory