public class TileEntityDispenser extends TileEntityLockableLoot
customName, lootTable, lootTableSeedblockType, INFINITE_EXTENT_AABB, pos, tileEntityInvalid, world| Constructor and Description |
|---|
TileEntityDispenser() |
| Modifier and Type | Method and Description |
|---|---|
int |
addItemStack(ItemStack stack)
Add the given ItemStack to this Dispenser.
|
Container |
createContainer(InventoryPlayer playerInventory,
EntityPlayer playerIn) |
int |
getDispenseSlot() |
java.lang.String |
getGuiID() |
int |
getInventoryStackLimit()
Returns the maximum stack size for a inventory slot.
|
protected NonNullList<ItemStack> |
getItems() |
java.lang.String |
getName()
Get the name of this object.
|
int |
getSizeInventory()
Returns the number of slots in the inventory.
|
boolean |
isEmpty() |
void |
readFromNBT(NBTTagCompound compound) |
static void |
registerFixes(DataFixer fixer) |
NBTTagCompound |
writeToNBT(NBTTagCompound compound) |
checkLootAndRead, checkLootAndWrite, clear, closeInventory, decrStackSize, fillWithLoot, getField, getFieldCount, getLootTable, getStackInSlot, hasCustomName, isItemValidForSlot, isUsableByPlayer, openInventory, removeStackFromSlot, setCustomName, setField, setInventorySlotContents, setLootTablecreateUnSidedHandler, getCapability, getDisplayName, getLockCode, hasCapability, isLocked, setLockCodeaddInfoToCrashReport, canRenderBreaking, create, deserializeNBT, getBlockMetadata, getBlockType, getDistanceSq, getKey, getMaxRenderDistanceSquared, getPos, getRenderBoundingBox, getTileData, getUpdatePacket, getUpdateTag, getWorld, handleUpdateTag, hasFastRenderer, hasWorld, invalidate, isInvalid, markDirty, mirror, onChunkUnload, onDataPacket, onLoad, onlyOpsCanSetNbt, receiveClientEvent, restrictNBTCopy, rotate, serializeNBT, setPos, setWorld, setWorldCreate, shouldRefresh, shouldRenderInPass, updateContainingBlockInfo, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmarkDirtypublic int getSizeInventory()
public boolean isEmpty()
public int getDispenseSlot()
public int addItemStack(ItemStack stack)
public java.lang.String getName()
public static void registerFixes(DataFixer fixer)
public void readFromNBT(NBTTagCompound compound)
readFromNBT in class TileEntityLockablepublic NBTTagCompound writeToNBT(NBTTagCompound compound)
writeToNBT in class TileEntityLockablepublic int getInventoryStackLimit()
public java.lang.String getGuiID()
public Container createContainer(InventoryPlayer playerInventory, EntityPlayer playerIn)
protected NonNullList<ItemStack> getItems()
getItems in class TileEntityLockableLoot