public abstract class TileEntityInventory extends net.minecraft.tileentity.TileEntity implements IInventoryProvider, net.minecraft.inventory.IInventory
Modifier and Type | Field and Description |
---|---|
protected MalisisInventory |
inventory |
Constructor and Description |
---|
TileEntityInventory(MalisisInventory inventory) |
Modifier and Type | Method and Description |
---|---|
void |
closeInventory() |
net.minecraft.item.ItemStack |
decrStackSize(int slotNumber,
int amount) |
MalisisInventory[] |
getInventories(net.minecraftforge.common.util.ForgeDirection side,
java.lang.Object... data)
Gets the
MalisisInventory for a specific side for this IInventoryProvider . |
MalisisInventory[] |
getInventories(java.lang.Object... data)
Gets the
MalisisInventory for this IInventoryProvider . |
java.lang.String |
getInventoryName() |
int |
getInventoryStackLimit() |
int |
getSizeInventory() |
net.minecraft.item.ItemStack |
getStackInSlot(int slotNumber) |
net.minecraft.item.ItemStack |
getStackInSlotOnClosing(int slotNumber) |
boolean |
hasCustomInventoryName() |
boolean |
isItemValidForSlot(int slotNumber,
net.minecraft.item.ItemStack itemStack) |
boolean |
isUseableByPlayer(net.minecraft.entity.player.EntityPlayer player) |
void |
openInventory() |
void |
readFromNBT(net.minecraft.nbt.NBTTagCompound tagCompound) |
void |
setInventorySlotContents(int slotNumber,
net.minecraft.item.ItemStack itemStack) |
void |
writeToNBT(net.minecraft.nbt.NBTTagCompound tagCompound) |
addMapping, canUpdate, createAndLoadEntity, func_145828_a, getBlockMetadata, getBlockType, getDescriptionPacket, getDistanceFrom, getMaxRenderDistanceSquared, getRenderBoundingBox, getWorldObj, hasWorldObj, invalidate, isInvalid, markDirty, onChunkUnload, onDataPacket, receiveClientEvent, setWorldObj, shouldRefresh, shouldRenderInPass, updateContainingBlockInfo, updateEntity, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getGui
protected MalisisInventory inventory
public TileEntityInventory(MalisisInventory inventory)
public MalisisInventory[] getInventories(java.lang.Object... data)
IInventoryProvider
MalisisInventory
for this IInventoryProvider
.getInventories
in interface IInventoryProvider
data
- null for TileEntity, ItemStack for Itempublic MalisisInventory[] getInventories(net.minecraftforge.common.util.ForgeDirection side, java.lang.Object... data)
IInventoryProvider
MalisisInventory
for a specific side for this IInventoryProvider
.getInventories
in interface IInventoryProvider
side
- the sidedata
- null for TileEntity, ItemStack for Itempublic void readFromNBT(net.minecraft.nbt.NBTTagCompound tagCompound)
readFromNBT
in class net.minecraft.tileentity.TileEntity
public void writeToNBT(net.minecraft.nbt.NBTTagCompound tagCompound)
writeToNBT
in class net.minecraft.tileentity.TileEntity
public int getSizeInventory()
getSizeInventory
in interface net.minecraft.inventory.IInventory
public net.minecraft.item.ItemStack getStackInSlot(int slotNumber)
getStackInSlot
in interface net.minecraft.inventory.IInventory
public net.minecraft.item.ItemStack decrStackSize(int slotNumber, int amount)
decrStackSize
in interface net.minecraft.inventory.IInventory
public net.minecraft.item.ItemStack getStackInSlotOnClosing(int slotNumber)
getStackInSlotOnClosing
in interface net.minecraft.inventory.IInventory
public void setInventorySlotContents(int slotNumber, net.minecraft.item.ItemStack itemStack)
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 slotNumber, net.minecraft.item.ItemStack itemStack)
isItemValidForSlot
in interface net.minecraft.inventory.IInventory