public class TileEntityChest extends TileEntityLockableLoot implements ITickable
| Modifier and Type | Field and Description |
|---|---|
boolean |
adjacentChestChecked |
TileEntityChest |
adjacentChestXNeg |
TileEntityChest |
adjacentChestXPos |
TileEntityChest |
adjacentChestZNeg |
TileEntityChest |
adjacentChestZPos |
VanillaDoubleChestItemHandler |
doubleChestHandler |
float |
lidAngle |
int |
numPlayersUsing |
float |
prevLidAngle |
customName, lootTable, lootTableSeedblockType, INFINITE_EXTENT_AABB, pos, tileEntityInvalid, world| Constructor and Description |
|---|
TileEntityChest() |
TileEntityChest(BlockChest.Type typeIn) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkForAdjacentChests() |
void |
closeInventory(EntityPlayer player) |
Container |
createContainer(InventoryPlayer playerInventory,
EntityPlayer playerIn) |
protected TileEntityChest |
getAdjacentChest(EnumFacing side) |
<T> T |
getCapability(Capability<T> capability,
EnumFacing facing)
Retrieves the handler for the capability requested on the specific side.
|
BlockChest.Type |
getChestType() |
java.lang.String |
getGuiID() |
int |
getInventoryStackLimit() |
protected NonNullList<ItemStack> |
getItems() |
java.lang.String |
getName() |
IItemHandler |
getSingleChestHandler() |
int |
getSizeInventory() |
void |
invalidate() |
boolean |
isEmpty() |
void |
openInventory(EntityPlayer player) |
void |
readFromNBT(NBTTagCompound compound) |
boolean |
receiveClientEvent(int id,
int type) |
static void |
registerFixesChest(DataFixer fixer) |
void |
update() |
void |
updateContainingBlockInfo() |
NBTTagCompound |
writeToNBT(NBTTagCompound compound) |
checkLootAndRead, checkLootAndWrite, clear, decrStackSize, fillWithLoot, getField, getFieldCount, getLootTable, getStackInSlot, hasCustomName, isItemValidForSlot, isUsableByPlayer, removeStackFromSlot, setCustomName, setField, setInventorySlotContents, setLootTablecreateUnSidedHandler, getDisplayName, getLockCode, hasCapability, isLocked, setLockCodeaddInfoToCrashReport, canRenderBreaking, create, deserializeNBT, getBlockMetadata, getBlockType, getDistanceSq, getKey, getMaxRenderDistanceSquared, getPos, getRenderBoundingBox, getTileData, getUpdatePacket, getUpdateTag, getWorld, handleUpdateTag, hasFastRenderer, hasWorld, isInvalid, markDirty, mirror, onChunkUnload, onDataPacket, onLoad, onlyOpsCanSetNbt, restrictNBTCopy, rotate, serializeNBT, setPos, setWorld, setWorldCreate, shouldRefresh, shouldRenderInPass, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmarkDirtypublic 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 IInventorypublic boolean isEmpty()
isEmpty in interface IInventorypublic java.lang.String getName()
getName in interface IWorldNameablepublic 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 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 IInventoryopenInventory in class TileEntityLockableLootpublic void closeInventory(EntityPlayer player)
closeInventory in interface IInventorycloseInventory in class TileEntityLockableLootpublic <T> T getCapability(Capability<T> capability, @Nullable 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'ICapabilityProvider.hasCapability(Capability, EnumFacing) would return false.public IItemHandler getSingleChestHandler()
public 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 IInteractionObjectprotected NonNullList<ItemStack> getItems()
getItems in class TileEntityLockableLoot