static class ComposterBlock.PartialInventory extends Inventory implements ISidedInventory
Modifier and Type | Field and Description |
---|---|
private boolean |
inserted |
private BlockPos |
pos |
private BlockState |
state |
private IWorld |
world |
Constructor and Description |
---|
PartialInventory(BlockState p_i50464_1_,
IWorld p_i50464_2_,
BlockPos p_i50464_3_) |
Modifier and Type | Method and Description |
---|---|
boolean |
canExtractItem(int index,
ItemStack stack,
Direction direction) |
boolean |
canInsertItem(int index,
ItemStack itemStackIn,
Direction direction) |
int |
getInventoryStackLimit() |
int[] |
getSlotsForFace(Direction side) |
void |
markDirty() |
addItem, addListener, clear, decrStackSize, fillStackedContents, func_223374_a, getSizeInventory, getStackInSlot, isEmpty, isUsableByPlayer, removeListener, removeStackFromSlot, setInventorySlotContents, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
closeInventory, count, decrStackSize, getSizeInventory, getStackInSlot, hasAny, isEmpty, isItemValidForSlot, isUsableByPlayer, openInventory, removeStackFromSlot, setInventorySlotContents
clear, clearObj
private final BlockState state
private final IWorld world
private final BlockPos pos
private boolean inserted
public PartialInventory(BlockState p_i50464_1_, IWorld p_i50464_2_, BlockPos p_i50464_3_)
public int getInventoryStackLimit()
getInventoryStackLimit
in interface IInventory
public int[] getSlotsForFace(Direction side)
getSlotsForFace
in interface ISidedInventory
public boolean canInsertItem(int index, ItemStack itemStackIn, @Nullable Direction direction)
canInsertItem
in interface ISidedInventory
public boolean canExtractItem(int index, ItemStack stack, Direction direction)
canExtractItem
in interface ISidedInventory
public void markDirty()
markDirty
in interface IInventory
markDirty
in class Inventory