public abstract class TileEntityLockable extends TileEntity implements IInteractionObject, ILockableContainer
blockType, INFINITE_EXTENT_AABB, pos, tileEntityInvalid, worldObj
Constructor and Description |
---|
TileEntityLockable() |
Modifier and Type | Method and Description |
---|---|
IChatComponent |
getDisplayName() |
LockCode |
getLockCode() |
boolean |
isLocked() |
void |
readFromNBT(NBTTagCompound compound) |
void |
setLockCode(LockCode code) |
void |
writeToNBT(NBTTagCompound compound) |
addInfoToCrashReport, addMapping, canRenderBreaking, createAndLoadEntity, getBlockMetadata, getBlockType, getDescriptionPacket, getDistanceSq, getMaxRenderDistanceSquared, getPos, getRenderBoundingBox, getWorld, hasWorldObj, invalidate, isInvalid, markDirty, onChunkUnload, onDataPacket, receiveClientEvent, setPos, setWorldObj, shouldRefresh, shouldRenderInPass, updateContainingBlockInfo, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clear, closeInventory, decrStackSize, getField, getFieldCount, getInventoryStackLimit, getSizeInventory, getStackInSlot, getStackInSlotOnClosing, isItemValidForSlot, isUseableByPlayer, markDirty, openInventory, setField, setInventorySlotContents
createContainer, getGuiID
getName, hasCustomName
public void readFromNBT(NBTTagCompound compound)
readFromNBT
in class TileEntity
public void writeToNBT(NBTTagCompound compound)
writeToNBT
in class TileEntity
public boolean isLocked()
isLocked
in interface ILockableContainer
public LockCode getLockCode()
getLockCode
in interface ILockableContainer
public void setLockCode(LockCode code)
setLockCode
in interface ILockableContainer
public IChatComponent getDisplayName()
getDisplayName
in interface IWorldNameable