public abstract class TileEntityInventory
extends net.minecraft.tileentity.TileEntity
implements net.minecraft.inventory.IInventory
Modifier and Type | Field and Description |
---|---|
java.lang.String |
invName |
net.minecraft.item.ItemStack[] |
items |
Constructor and Description |
---|
TileEntityInventory() |
Modifier and Type | Method and Description |
---|---|
void |
closeInventory() |
net.minecraft.item.ItemStack |
decrStackSize(int slot,
int amount) |
java.lang.String |
getInventoryName() |
int |
getInventoryStackLimit() |
abstract int |
getSize()
This represents how many slots are in the inventory
|
int |
getSizeInventory() |
net.minecraft.item.ItemStack |
getStackInSlot(int slot) |
net.minecraft.item.ItemStack |
getStackInSlotOnClosing(int slot) |
boolean |
hasCustomInventoryName() |
boolean |
isItemValidForSlot(int slot,
net.minecraft.item.ItemStack stack) |
boolean |
isUseableByPlayer(net.minecraft.entity.player.EntityPlayer player) |
void |
markDirty() |
void |
openInventory() |
void |
readFromNBT(net.minecraft.nbt.NBTTagCompound nbttagcompound) |
void |
setInventorySlotContents(int slot,
net.minecraft.item.ItemStack stack) |
void |
updateEntity() |
void |
writeToNBT(net.minecraft.nbt.NBTTagCompound nbttagcompound) |
addMapping, canUpdate, createAndLoadEntity, func_145828_a, getBlockMetadata, getBlockType, getDescriptionPacket, getDistanceFrom, getMaxRenderDistanceSquared, getRenderBoundingBox, getWorldObj, hasWorldObj, invalidate, isInvalid, onChunkUnload, onDataPacket, receiveClientEvent, setWorldObj, shouldRefresh, shouldRenderInPass, updateContainingBlockInfo, validate
public net.minecraft.item.ItemStack[] items
public java.lang.String invName
public abstract int getSize()
public void updateEntity()
updateEntity
in class net.minecraft.tileentity.TileEntity
public void readFromNBT(net.minecraft.nbt.NBTTagCompound nbttagcompound)
readFromNBT
in class net.minecraft.tileentity.TileEntity
public void writeToNBT(net.minecraft.nbt.NBTTagCompound nbttagcompound)
writeToNBT
in class net.minecraft.tileentity.TileEntity
public int getSizeInventory()
getSizeInventory
in interface net.minecraft.inventory.IInventory
public net.minecraft.item.ItemStack getStackInSlot(int slot)
getStackInSlot
in interface net.minecraft.inventory.IInventory
public net.minecraft.item.ItemStack decrStackSize(int slot, int amount)
decrStackSize
in interface net.minecraft.inventory.IInventory
public net.minecraft.item.ItemStack getStackInSlotOnClosing(int slot)
getStackInSlotOnClosing
in interface net.minecraft.inventory.IInventory
public void setInventorySlotContents(int slot, net.minecraft.item.ItemStack stack)
setInventorySlotContents
in interface net.minecraft.inventory.IInventory
public java.lang.String getInventoryName()
getInventoryName
in interface net.minecraft.inventory.IInventory
public boolean hasCustomInventoryName()
hasCustomInventoryName
in interface net.minecraft.inventory.IInventory
public int getInventoryStackLimit()
getInventoryStackLimit
in interface net.minecraft.inventory.IInventory
public boolean isUseableByPlayer(net.minecraft.entity.player.EntityPlayer player)
isUseableByPlayer
in interface net.minecraft.inventory.IInventory
public void openInventory()
openInventory
in interface net.minecraft.inventory.IInventory
public void closeInventory()
closeInventory
in interface net.minecraft.inventory.IInventory
public boolean isItemValidForSlot(int slot, net.minecraft.item.ItemStack stack)
isItemValidForSlot
in interface net.minecraft.inventory.IInventory
public void markDirty()
markDirty
in interface net.minecraft.inventory.IInventory
markDirty
in class net.minecraft.tileentity.TileEntity