static class ComposterBlock.FullInventory extends Inventory implements ISidedInventory
Modifier and Type | Field and Description |
---|---|
private boolean |
extracted |
private BlockPos |
pos |
private BlockState |
state |
private IWorld |
world |
Constructor and Description |
---|
FullInventory(BlockState p_i50463_1_,
IWorld p_i50463_2_,
BlockPos p_i50463_3_,
ItemStack p_i50463_4_) |
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 extracted
public FullInventory(BlockState p_i50463_1_, IWorld p_i50463_2_, BlockPos p_i50463_3_, ItemStack p_i50463_4_)
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