public class TileEntityChest extends TileEntityLockableLoot implements ITickable, IInventory
| Modifier and Type | Field and Description |
|---|---|
boolean |
adjacentChestChecked |
TileEntityChest |
adjacentChestXNeg |
TileEntityChest |
adjacentChestXPos |
TileEntityChest |
adjacentChestZNeg |
TileEntityChest |
adjacentChestZPos |
VanillaDoubleChestItemHandler |
doubleChestHandler |
float |
lidAngle |
int |
numPlayersUsing |
float |
prevLidAngle |
lootTable, lootTableSeedblockType, INFINITE_EXTENT_AABB, pos, tileEntityInvalid, worldObj| Constructor and Description |
|---|
TileEntityChest() |
TileEntityChest(BlockChest.Type typeIn) |
checkLootAndRead, checkLootAndWrite, fillWithLoot, getLootTable, setLootTablecreateUnSidedHandler, getDisplayName, getLockCode, hasCapability, isLocked, setLockCodeaddInfoToCrashReport, addMapping, canRenderBreaking, create, deserializeNBT, getBlockMetadata, getBlockType, getDistanceSq, getMaxRenderDistanceSquared, getPos, getRenderBoundingBox, getTileData, getUpdatePacket, getUpdateTag, getWorld, handleUpdateTag, hasFastRenderer, hasWorldObj, isInvalid, markDirty, mirror, onChunkUnload, onDataPacket, onLoad, onlyOpsCanSetNbt, restrictNBTCopy, rotate, serializeNBT, setPos, setWorldCreate, 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 VanillaDoubleChestItemHandler doubleChestHandler
public TileEntityChest()
public TileEntityChest(BlockChest.Type typeIn)
public int getSizeInventory()
getSizeInventory in interface IInventory@Nullable public ItemStack getStackInSlot(int index)
getStackInSlot in interface IInventory@Nullable public ItemStack decrStackSize(int index, int count)
decrStackSize in interface IInventory@Nullable public ItemStack removeStackFromSlot(int index)
removeStackFromSlot in interface IInventorypublic void setInventorySlotContents(int index,
@Nullable
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 static void registerFixesChest(DataFixer fixer)
public void readFromNBT(NBTTagCompound compound)
readFromNBT in class TileEntityLockablepublic NBTTagCompound 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()
@Nullable protected TileEntityChest getAdjacentChest(EnumFacing side)
public 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 BlockChest.Type 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 IInventorypublic <T> T getCapability(Capability<T> capability, EnumFacing facing)
ICapabilityProvidergetCapability in interface ICapabilityProvidergetCapability in class TileEntityLockablecapability - The capability to checkfacing - The Side to check from:
CAN BE NULL. Null is defined to represent 'internal' or 'self'public IItemHandler getSingleChestHandler()