public class TileEntityDispenser extends TileEntity implements IInventory
field_31007_h, worldObj, xCoord, yCoord, zCoord
Constructor and Description |
---|
TileEntityDispenser() |
Modifier and Type | Method and Description |
---|---|
boolean |
canInteractWith(EntityPlayer entityplayer) |
ItemStack |
decrStackSize(int i,
int j) |
int |
getInventoryStackLimit() |
java.lang.String |
getInvName() |
ItemStack |
getRandomStackFromInventory() |
int |
getSizeInventory() |
ItemStack |
getStackInSlot(int i) |
void |
readFromNBT(NBTTagCompound nbttagcompound) |
void |
setInventorySlotContents(int i,
ItemStack itemstack) |
void |
writeToNBT(NBTTagCompound nbttagcompound) |
createAndLoadEntity, func_31004_j, func_31005_i, func_31006_g, getBlockMetadata, getBlockType, getDistanceFrom, onInventoryChanged, updateEntity
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onInventoryChanged
public int getSizeInventory()
getSizeInventory
in interface IInventory
public ItemStack getStackInSlot(int i)
getStackInSlot
in interface IInventory
public ItemStack decrStackSize(int i, int j)
decrStackSize
in interface IInventory
public ItemStack getRandomStackFromInventory()
public void setInventorySlotContents(int i, ItemStack itemstack)
setInventorySlotContents
in interface IInventory
public java.lang.String getInvName()
getInvName
in interface IInventory
public void readFromNBT(NBTTagCompound nbttagcompound)
readFromNBT
in class TileEntity
public void writeToNBT(NBTTagCompound nbttagcompound)
writeToNBT
in class TileEntity
public int getInventoryStackLimit()
getInventoryStackLimit
in interface IInventory
public boolean canInteractWith(EntityPlayer entityplayer)
canInteractWith
in interface IInventory