public class TileEntityChest extends TileEntityLockableLoot implements IChestLid, ITickable
| Modifier and Type | Field and Description |
|---|---|
protected float |
lidAngle |
protected int |
numPlayersUsing |
protected float |
prevLidAngle |
customName, lootTable, lootTableSeedpos, removed, worldINFINITE_EXTENT_AABB| Modifier | Constructor and Description |
|---|---|
|
TileEntityChest() |
protected |
TileEntityChest(TileEntityType<?> typeIn) |
checkLootAndRead, checkLootAndWrite, clear, decrStackSize, fillWithLoot, getCustomName, getField, getFieldCount, getLootTable, getStackInSlot, hasCustomName, isItemValidForSlot, isUsableByPlayer, removeStackFromSlot, setCustomName, setField, setInventorySlotContents, setLootTable, setLootTablecreateUnSidedHandler, getLockCode, isLocked, setLockCodeaddInfoToCrashReport, create, getBlockState, getDistanceSq, getMaxRenderDistanceSquared, getPos, getTileData, getType, getUpdatePacket, getUpdateTag, getWorld, hasWorld, isRemoved, markDirty, mirror, onlyOpsCanSetNbt, rotate, setPos, setWorld, validateareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, invalidateCaps, reviveCaps, serializeCapsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetHeight, getWidth, markDirtygetDisplayNamecanRenderBreaking, deserializeNBT, getModelData, getRenderBoundingBox, getTileEntity, handleUpdateTag, hasFastRenderer, onChunkUnloaded, onDataPacket, onLoad, requestModelDataUpdate, serializeNBT, shouldRenderInPassgetCapabilityprotected float lidAngle
protected float prevLidAngle
protected int numPlayersUsing
protected TileEntityChest(TileEntityType<?> typeIn)
public TileEntityChest()
public int getSizeInventory()
getSizeInventory in interface IInventorypublic boolean isEmpty()
isEmpty in interface IInventorypublic ITextComponent getName()
public void read(NBTTagCompound compound)
read in class TileEntityLockablepublic NBTTagCompound write(NBTTagCompound compound)
write in class TileEntityLockablepublic int getInventoryStackLimit()
getInventoryStackLimit in interface IInventorypublic 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 TileEntityLockableLootprotected void onOpenOrClose()
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 TileEntityLockableLootprotected void setItems(NonNullList<ItemStack> itemsIn)
setItems in class TileEntityLockableLootpublic float getLidAngle(float partialTicks)
getLidAngle in interface IChestLidpublic static int getPlayersUsing(IBlockReader reader, BlockPos posIn)
public static void swapContents(TileEntityChest chest, TileEntityChest otherChest)
public void updateContainingBlockInfo()
updateContainingBlockInfo in class TileEntitypublic <T> LazyOptional<T> getCapability(Capability<T> cap, EnumFacing side)
ICapabilityProvidergetCapability in interface ICapabilityProvidergetCapability in class TileEntityLockablepublic void remove()
remove in class TileEntityLockable