public class TileEntityChest extends TileEntityLockable implements IUpdatePlayerListBox, IInventory
| Modifier and Type | Field and Description |
|---|---|
boolean |
adjacentChestChecked |
TileEntityChest |
adjacentChestXNeg |
TileEntityChest |
adjacentChestXPos |
TileEntityChest |
adjacentChestZNeg |
TileEntityChest |
adjacentChestZPos |
float |
lidAngle |
int |
numPlayersUsing |
float |
prevLidAngle |
blockType, INFINITE_EXTENT_AABB, pos, tileEntityInvalid, worldObj| Constructor and Description |
|---|
TileEntityChest() |
TileEntityChest(int chestType) |
getDisplayName, getLockCode, isLocked, setLockCodeaddInfoToCrashReport, addMapping, canRenderBreaking, createAndLoadEntity, getBlockMetadata, getBlockType, getDescriptionPacket, getDistanceSq, getMaxRenderDistanceSquared, getPos, getRenderBoundingBox, getWorld, hasWorldObj, isInvalid, markDirty, onChunkUnload, onDataPacket, setPos, setWorldObj, shouldRefresh, shouldRenderInPass, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmarkDirtygetDisplayNamepublic boolean adjacentChestChecked
public TileEntityChest adjacentChestZNeg
public TileEntityChest adjacentChestXPos
public TileEntityChest adjacentChestXNeg
public TileEntityChest adjacentChestZPos
public float lidAngle
public float prevLidAngle
public int numPlayersUsing
public TileEntityChest()
public TileEntityChest(int chestType)
public int getSizeInventory()
getSizeInventory in interface IInventorypublic ItemStack getStackInSlot(int index)
getStackInSlot in interface IInventorypublic ItemStack decrStackSize(int index, int count)
decrStackSize in interface IInventorypublic ItemStack getStackInSlotOnClosing(int index)
getStackInSlotOnClosing in interface IInventorypublic void setInventorySlotContents(int index,
ItemStack stack)
setInventorySlotContents in interface IInventorypublic java.lang.String getName()
getName in interface IWorldNameablepublic boolean hasCustomName()
hasCustomName in interface IWorldNameablepublic void setCustomName(java.lang.String name)
public void readFromNBT(NBTTagCompound compound)
readFromNBT in class TileEntityLockablepublic void writeToNBT(NBTTagCompound compound)
writeToNBT in class TileEntityLockablepublic int getInventoryStackLimit()
getInventoryStackLimit in interface IInventorypublic boolean isUseableByPlayer(EntityPlayer player)
isUseableByPlayer in interface IInventorypublic void updateContainingBlockInfo()
updateContainingBlockInfo in class TileEntitypublic void checkForAdjacentChests()
protected TileEntityChest func_174911_a(EnumFacing p_174911_1_)
public void update()
update in interface IUpdatePlayerListBoxpublic boolean receiveClientEvent(int id,
int type)
receiveClientEvent in class TileEntitypublic void openInventory(EntityPlayer player)
openInventory in interface IInventorypublic void closeInventory(EntityPlayer player)
closeInventory in interface IInventorypublic boolean isItemValidForSlot(int index,
ItemStack stack)
isItemValidForSlot in interface IInventorypublic void invalidate()
invalidate in class TileEntitypublic int getChestType()
public java.lang.String getGuiID()
getGuiID in interface IInteractionObjectpublic Container createContainer(InventoryPlayer playerInventory, EntityPlayer playerIn)
createContainer in interface IInteractionObjectpublic int getField(int id)
getField in interface IInventorypublic void setField(int id,
int value)
setField in interface IInventorypublic int getFieldCount()
getFieldCount in interface IInventorypublic void clear()
clear in interface IInventory