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, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcloseInventory, count, decrStackSize, getSizeInventory, getStackInSlot, hasAny, isEmpty, isItemValidForSlot, isUsableByPlayer, openInventory, removeStackFromSlot, setInventorySlotContentsclear, clearObjprivate 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 IInventorypublic int[] getSlotsForFace(Direction side)
getSlotsForFace in interface ISidedInventorypublic boolean canInsertItem(int index,
ItemStack itemStackIn,
@Nullable
Direction direction)
canInsertItem in interface ISidedInventorypublic boolean canExtractItem(int index,
ItemStack stack,
Direction direction)
canExtractItem in interface ISidedInventorypublic void markDirty()
markDirty in interface IInventorymarkDirty in class Inventory