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 |
closeChest() |
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 |
isCustomInventoryName() |
boolean |
isItemValidForSlot(int slotNumber,
net.minecraft.item.ItemStack itemStack) |
boolean |
isUseableByPlayer(net.minecraft.entity.player.EntityPlayer player) |
void |
openChest() |
void |
readFromNBT(net.minecraft.nbt.NBTTagCompound tagCompound) |
void |
setInventorySlotContents(int slotNumber,
net.minecraft.item.ItemStack itemStack) |
void |
writeToNBT(net.minecraft.nbt.NBTTagCompound tagCompound) |
addInfoToCrashReport, addMapping, canUpdate, createAndLoadEntity, getBlockMetadata, getBlockType, getDescriptionPacket, getDistanceSq, getMaxRenderDistanceSquared, getRenderBoundingBox, getWorld, hasWorldObj, invalidate, isInvalid, markDirty, onChunkUnload, onDataPacket, receiveClientEvent, setWorldObj, shouldRefresh, shouldRenderInPass, updateContainingBlockInfo, updateEntity, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetGuiprotected MalisisInventory inventory
public TileEntityInventory(MalisisInventory inventory)
public MalisisInventory[] getInventories(java.lang.Object... data)
IInventoryProviderMalisisInventory for this IInventoryProvider.getInventories in interface IInventoryProviderdata - null for TileEntity, ItemStack for Itempublic MalisisInventory[] getInventories(net.minecraftforge.common.util.ForgeDirection side, java.lang.Object... data)
IInventoryProviderMalisisInventory for a specific side for this IInventoryProvider.getInventories in interface IInventoryProviderside - the sidedata - null for TileEntity, ItemStack for Itempublic void readFromNBT(net.minecraft.nbt.NBTTagCompound tagCompound)
readFromNBT in class net.minecraft.tileentity.TileEntitypublic void writeToNBT(net.minecraft.nbt.NBTTagCompound tagCompound)
writeToNBT in class net.minecraft.tileentity.TileEntitypublic int getSizeInventory()
getSizeInventory in interface net.minecraft.inventory.IInventorypublic net.minecraft.item.ItemStack getStackInSlot(int slotNumber)
getStackInSlot in interface net.minecraft.inventory.IInventorypublic net.minecraft.item.ItemStack decrStackSize(int slotNumber,
int amount)
decrStackSize in interface net.minecraft.inventory.IInventorypublic net.minecraft.item.ItemStack getStackInSlotOnClosing(int slotNumber)
getStackInSlotOnClosing in interface net.minecraft.inventory.IInventorypublic void setInventorySlotContents(int slotNumber,
net.minecraft.item.ItemStack itemStack)
setInventorySlotContents in interface net.minecraft.inventory.IInventorypublic java.lang.String getInventoryName()
getInventoryName in interface net.minecraft.inventory.IInventorypublic boolean isCustomInventoryName()
isCustomInventoryName in interface net.minecraft.inventory.IInventorypublic int getInventoryStackLimit()
getInventoryStackLimit in interface net.minecraft.inventory.IInventorypublic boolean isUseableByPlayer(net.minecraft.entity.player.EntityPlayer player)
isUseableByPlayer in interface net.minecraft.inventory.IInventorypublic void openChest()
openChest in interface net.minecraft.inventory.IInventorypublic void closeChest()
closeChest in interface net.minecraft.inventory.IInventorypublic boolean isItemValidForSlot(int slotNumber,
net.minecraft.item.ItemStack itemStack)
isItemValidForSlot in interface net.minecraft.inventory.IInventory