public class InventoryCopy
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
boolean[] |
accessible |
IInventory |
inv |
ItemStack[] |
items |
| Constructor and Description |
|---|
InventoryCopy(IInventory inv) |
| Modifier and Type | Method and Description |
|---|---|
void |
closeInventory() |
ItemStack |
decrStackSize(int slot,
int amount) |
java.lang.String |
getInventoryName() |
int |
getInventoryStackLimit() |
int |
getSizeInventory() |
ItemStack |
getStackInSlot(int slot) |
ItemStack |
getStackInSlotOnClosing(int slot) |
boolean |
hasCustomInventoryName() |
boolean |
isItemValidForSlot(int i,
ItemStack itemstack) |
boolean |
isUseableByPlayer(EntityPlayer player) |
void |
markDirty() |
InventoryCopy |
open(InventoryRange access) |
void |
openInventory() |
void |
setInventorySlotContents(int slot,
ItemStack stack) |
void |
update() |
public boolean[] accessible
public ItemStack[] items
public IInventory inv
public void update()
public InventoryCopy open(InventoryRange access)
public int getSizeInventory()
public ItemStack getStackInSlot(int slot)
public ItemStack decrStackSize(int slot,
int amount)
public ItemStack getStackInSlotOnClosing(int slot)
public void setInventorySlotContents(int slot,
ItemStack stack)
public java.lang.String getInventoryName()
public boolean isUseableByPlayer(EntityPlayer player)
public void openInventory()
public void closeInventory()
public int getInventoryStackLimit()
public void markDirty()
public boolean isItemValidForSlot(int i,
ItemStack itemstack)
public boolean hasCustomInventoryName()