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, lootTableSeed
pos, removed, world
INFINITE_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, setLootTable
createUnSidedHandler, getLockCode, isLocked, setLockCode
addInfoToCrashReport, create, getBlockState, getDistanceSq, getMaxRenderDistanceSquared, getPos, getTileData, getType, getUpdatePacket, getUpdateTag, getWorld, hasWorld, isRemoved, markDirty, mirror, onlyOpsCanSetNbt, rotate, setPos, setWorld, validate
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, invalidateCaps, reviveCaps, serializeCaps
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getHeight, getWidth, markDirty
getDisplayName
canRenderBreaking, deserializeNBT, getModelData, getRenderBoundingBox, getTileEntity, handleUpdateTag, hasFastRenderer, onChunkUnloaded, onDataPacket, onLoad, requestModelDataUpdate, serializeNBT, shouldRenderInPass
getCapability
protected float lidAngle
protected float prevLidAngle
protected int numPlayersUsing
protected TileEntityChest(TileEntityType<?> typeIn)
public TileEntityChest()
public int getSizeInventory()
getSizeInventory
in interface IInventory
public boolean isEmpty()
isEmpty
in interface IInventory
public ITextComponent getName()
public void read(NBTTagCompound compound)
read
in class TileEntityLockable
public NBTTagCompound write(NBTTagCompound compound)
write
in class TileEntityLockable
public int getInventoryStackLimit()
getInventoryStackLimit
in interface IInventory
public boolean receiveClientEvent(int id, int type)
receiveClientEvent
in class TileEntity
public void openInventory(EntityPlayer player)
openInventory
in interface IInventory
openInventory
in class TileEntityLockableLoot
public void closeInventory(EntityPlayer player)
closeInventory
in interface IInventory
closeInventory
in class TileEntityLockableLoot
protected void onOpenOrClose()
public java.lang.String getGuiID()
getGuiID
in interface IInteractionObject
public Container createContainer(InventoryPlayer playerInventory, EntityPlayer playerIn)
createContainer
in interface IInteractionObject
protected NonNullList<ItemStack> getItems()
getItems
in class TileEntityLockableLoot
protected void setItems(NonNullList<ItemStack> itemsIn)
setItems
in class TileEntityLockableLoot
public float getLidAngle(float partialTicks)
getLidAngle
in interface IChestLid
public static int getPlayersUsing(IBlockReader reader, BlockPos posIn)
public static void swapContents(TileEntityChest chest, TileEntityChest otherChest)
public void updateContainingBlockInfo()
updateContainingBlockInfo
in class TileEntity
public <T> LazyOptional<T> getCapability(Capability<T> cap, EnumFacing side)
ICapabilityProvider
getCapability
in interface ICapabilityProvider
getCapability
in class TileEntityLockable
public void remove()
remove
in class TileEntityLockable