public class DoubleSidedInventory extends java.lang.Object implements IInventory
| Modifier and Type | Field and Description |
|---|---|
private IInventory |
lowerChest |
private IInventory |
upperChest |
| Constructor and Description |
|---|
DoubleSidedInventory(IInventory p_i50399_1_,
IInventory p_i50399_2_) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
void |
closeInventory(PlayerEntity player) |
ItemStack |
decrStackSize(int index,
int count) |
int |
getInventoryStackLimit() |
int |
getSizeInventory() |
ItemStack |
getStackInSlot(int index) |
boolean |
isEmpty() |
boolean |
isItemValidForSlot(int index,
ItemStack stack) |
boolean |
isPartOfLargeChest(IInventory inventoryIn) |
boolean |
isUsableByPlayer(PlayerEntity player) |
void |
markDirty() |
void |
openInventory(PlayerEntity player) |
ItemStack |
removeStackFromSlot(int index) |
void |
setInventorySlotContents(int index,
ItemStack stack) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcount, hasAnyclearObjprivate final IInventory upperChest
private final IInventory lowerChest
public DoubleSidedInventory(IInventory p_i50399_1_, IInventory p_i50399_2_)
public int getSizeInventory()
getSizeInventory in interface IInventorypublic boolean isEmpty()
isEmpty in interface IInventorypublic boolean isPartOfLargeChest(IInventory inventoryIn)
public ItemStack getStackInSlot(int index)
getStackInSlot in interface IInventorypublic ItemStack decrStackSize(int index, int count)
decrStackSize in interface IInventorypublic ItemStack removeStackFromSlot(int index)
removeStackFromSlot in interface IInventorypublic void setInventorySlotContents(int index,
ItemStack stack)
setInventorySlotContents in interface IInventorypublic int getInventoryStackLimit()
getInventoryStackLimit in interface IInventorypublic void markDirty()
markDirty in interface IInventorypublic boolean isUsableByPlayer(PlayerEntity player)
isUsableByPlayer in interface IInventorypublic void openInventory(PlayerEntity player)
openInventory in interface IInventorypublic void closeInventory(PlayerEntity player)
closeInventory in interface IInventorypublic boolean isItemValidForSlot(int index,
ItemStack stack)
isItemValidForSlot in interface IInventorypublic void clear()
clear in interface IClearable