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, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcanPlayerUse, containsAny, count, getStack, isEmpty, isValid, onClose, onOpen, removeStack, removeStack, setStack, sizeprivate 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 Inventorycount of item stacks in this inventorypublic 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 SidedInventorypublic void markDirty()
markDirty in interface InventorymarkDirty in class SimpleInventory