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, wait
count, hasAny
clearObj
private final IInventory upperChest
private final IInventory lowerChest
public DoubleSidedInventory(IInventory p_i50399_1_, IInventory p_i50399_2_)
public int getSizeInventory()
getSizeInventory
in interface IInventory
public boolean isEmpty()
isEmpty
in interface IInventory
public boolean isPartOfLargeChest(IInventory inventoryIn)
public ItemStack getStackInSlot(int index)
getStackInSlot
in interface IInventory
public ItemStack decrStackSize(int index, int count)
decrStackSize
in interface IInventory
public ItemStack removeStackFromSlot(int index)
removeStackFromSlot
in interface IInventory
public void setInventorySlotContents(int index, ItemStack stack)
setInventorySlotContents
in interface IInventory
public int getInventoryStackLimit()
getInventoryStackLimit
in interface IInventory
public void markDirty()
markDirty
in interface IInventory
public boolean isUsableByPlayer(PlayerEntity player)
isUsableByPlayer
in interface IInventory
public void openInventory(PlayerEntity player)
openInventory
in interface IInventory
public void closeInventory(PlayerEntity player)
closeInventory
in interface IInventory
public boolean isItemValidForSlot(int index, ItemStack stack)
isItemValidForSlot
in interface IInventory
public void clear()
clear
in interface IClearable