Package net.minecraft.src
Class TileEntityDispenser
- java.lang.Object
-
- net.minecraft.src.TileEntity
-
- net.minecraft.src.TileEntityDispenser
-
- All Implemented Interfaces:
IInventory
public class TileEntityDispenser extends TileEntity implements IInventory
-
-
Field Summary
-
Fields inherited from class net.minecraft.src.TileEntity
blockMetadata, blockType, tileEntityInvalid, worldObj, xCoord, yCoord, zCoord
-
-
Constructor Summary
Constructors Constructor Description TileEntityDispenser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
closeChest()
ItemStack
decrStackSize(int var1, int var2)
int
getInventoryStackLimit()
java.lang.String
getInvName()
ItemStack
getRandomStackFromInventory()
int
getSizeInventory()
ItemStack
getStackInSlot(int var1)
ItemStack
getStackInSlotOnClosing(int var1)
boolean
isUseableByPlayer(Player var1)
void
openChest()
void
readFromNBT(NBTTagCompound var1)
void
setInventorySlotContents(int var1, ItemStack var2)
void
writeToNBT(NBTTagCompound var1)
-
Methods inherited from class net.minecraft.src.TileEntity
createAndLoadEntity, getBlockMetadata, getBlockType, getDescriptionPacket, getDistanceFrom, invalidate, isInvalid, onInventoryChanged, onTileEntityPowered, updateContainingBlockInfo, updateEntity, validate
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.minecraft.src.IInventory
onInventoryChanged
-
-
-
-
Method Detail
-
getSizeInventory
public int getSizeInventory()
- Specified by:
getSizeInventory
in interfaceIInventory
-
getStackInSlot
public ItemStack getStackInSlot(int var1)
- Specified by:
getStackInSlot
in interfaceIInventory
-
decrStackSize
public ItemStack decrStackSize(int var1, int var2)
- Specified by:
decrStackSize
in interfaceIInventory
-
getStackInSlotOnClosing
public ItemStack getStackInSlotOnClosing(int var1)
- Specified by:
getStackInSlotOnClosing
in interfaceIInventory
-
getRandomStackFromInventory
public ItemStack getRandomStackFromInventory()
-
setInventorySlotContents
public void setInventorySlotContents(int var1, ItemStack var2)
- Specified by:
setInventorySlotContents
in interfaceIInventory
-
getInvName
public java.lang.String getInvName()
- Specified by:
getInvName
in interfaceIInventory
-
readFromNBT
public void readFromNBT(NBTTagCompound var1)
- Overrides:
readFromNBT
in classTileEntity
-
writeToNBT
public void writeToNBT(NBTTagCompound var1)
- Overrides:
writeToNBT
in classTileEntity
-
getInventoryStackLimit
public int getInventoryStackLimit()
- Specified by:
getInventoryStackLimit
in interfaceIInventory
-
isUseableByPlayer
public boolean isUseableByPlayer(Player var1)
- Specified by:
isUseableByPlayer
in interfaceIInventory
-
openChest
public void openChest()
- Specified by:
openChest
in interfaceIInventory
-
closeChest
public void closeChest()
- Specified by:
closeChest
in interfaceIInventory
-
-