public class SimpleInventory extends java.lang.Object implements net.minecraft.inventory.IInventory, INBTStoreable
| Constructor and Description |
|---|
SimpleInventory(int size,
java.lang.String invName,
int invStackLimit) |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(net.minecraft.tileentity.TileEntity listner) |
void |
closeInventory() |
net.minecraft.item.ItemStack |
decrStackSize(int slotId,
int count) |
java.lang.String |
getInventoryName() |
int |
getInventoryStackLimit() |
net.minecraft.item.ItemStack[] |
getItemStacks() |
int |
getSizeInventory() |
net.minecraft.item.ItemStack |
getStackInSlot(int slotId) |
net.minecraft.item.ItemStack |
getStackInSlotOnClosing(int slotId) |
boolean |
hasCustomInventoryName() |
boolean |
isItemValidForSlot(int i,
net.minecraft.item.ItemStack itemstack) |
boolean |
isUseableByPlayer(net.minecraft.entity.player.EntityPlayer entityplayer) |
void |
markDirty() |
void |
openInventory() |
void |
readFromNBT(net.minecraft.nbt.NBTTagCompound data) |
void |
readFromNBT(net.minecraft.nbt.NBTTagCompound data,
java.lang.String tag) |
void |
setInventorySlotContents(int slotId,
net.minecraft.item.ItemStack itemstack) |
void |
writeToNBT(net.minecraft.nbt.NBTTagCompound data) |
void |
writeToNBT(net.minecraft.nbt.NBTTagCompound data,
java.lang.String tag) |
public SimpleInventory(int size,
java.lang.String invName,
int invStackLimit)
public int getSizeInventory()
getSizeInventory in interface net.minecraft.inventory.IInventorypublic net.minecraft.item.ItemStack getStackInSlot(int slotId)
getStackInSlot in interface net.minecraft.inventory.IInventorypublic net.minecraft.item.ItemStack decrStackSize(int slotId,
int count)
decrStackSize in interface net.minecraft.inventory.IInventorypublic void setInventorySlotContents(int slotId,
net.minecraft.item.ItemStack itemstack)
setInventorySlotContents in interface net.minecraft.inventory.IInventorypublic java.lang.String getInventoryName()
getInventoryName in interface net.minecraft.inventory.IInventorypublic int getInventoryStackLimit()
getInventoryStackLimit in interface net.minecraft.inventory.IInventorypublic boolean isUseableByPlayer(net.minecraft.entity.player.EntityPlayer entityplayer)
isUseableByPlayer in interface net.minecraft.inventory.IInventorypublic void openInventory()
openInventory in interface net.minecraft.inventory.IInventorypublic void closeInventory()
closeInventory in interface net.minecraft.inventory.IInventorypublic void readFromNBT(net.minecraft.nbt.NBTTagCompound data)
readFromNBT in interface INBTStoreablepublic void readFromNBT(net.minecraft.nbt.NBTTagCompound data,
java.lang.String tag)
public void writeToNBT(net.minecraft.nbt.NBTTagCompound data)
writeToNBT in interface INBTStoreablepublic void writeToNBT(net.minecraft.nbt.NBTTagCompound data,
java.lang.String tag)
public void addListener(net.minecraft.tileentity.TileEntity listner)
public net.minecraft.item.ItemStack getStackInSlotOnClosing(int slotId)
getStackInSlotOnClosing in interface net.minecraft.inventory.IInventorypublic net.minecraft.item.ItemStack[] getItemStacks()
public boolean isItemValidForSlot(int i,
net.minecraft.item.ItemStack itemstack)
isItemValidForSlot in interface net.minecraft.inventory.IInventorypublic boolean hasCustomInventoryName()
hasCustomInventoryName in interface net.minecraft.inventory.IInventorypublic void markDirty()
markDirty in interface net.minecraft.inventory.IInventory