static class ComposterBlock.FullComposterInventory extends SimpleInventory implements SidedInventory
Modifier and Type | Field and Description |
---|---|
private boolean |
dirty |
private BlockPos |
pos |
private BlockState |
state |
private WorldAccess |
world |
Constructor and Description |
---|
FullComposterInventory(BlockState state,
WorldAccess world,
BlockPos pos,
ItemStack outputItem) |
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.
|
int |
getMaxCountPerStack()
Returns the maximum number of items a stack can contain when placed inside this inventory.
|
void |
markDirty() |
addListener, addStack, canInsert, canPlayerUse, clear, clearToList, getStack, getTags, isEmpty, provideRecipeInputs, readTags, removeItem, removeListener, removeStack, removeStack, setStack, size, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
canPlayerUse, containsAny, count, getStack, isEmpty, isValid, onClose, onOpen, removeStack, removeStack, setStack, size
private final BlockState state
private final WorldAccess world
private final BlockPos pos
private boolean dirty
public FullComposterInventory(BlockState state, WorldAccess world, BlockPos pos, ItemStack outputItem)
public int getMaxCountPerStack()
getMaxCountPerStack
in interface Inventory
count
of item stacks in this inventorypublic 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
public void markDirty()
markDirty
in interface Inventory
markDirty
in class SimpleInventory