public abstract class TileEntityLockable extends TileEntity implements IInteractionObject, ILockableContainer
| Modifier and Type | Field and Description |
|---|---|
private LockCode |
code |
blockType, pos, tileEntityInvalid, worldObj| Constructor and Description |
|---|
TileEntityLockable() |
| Modifier and Type | Method and Description |
|---|---|
IChatComponent |
getDisplayName()
Get the formatted ChatComponent that will be used for the sender's username in chat
|
LockCode |
getLockCode() |
boolean |
isLocked() |
void |
readFromNBT(NBTTagCompound compound) |
void |
setLockCode(LockCode code) |
void |
writeToNBT(NBTTagCompound compound) |
addInfoToCrashReport, createAndLoadEntity, func_183000_F, getBlockMetadata, getBlockType, getDescriptionPacket, getDistanceSq, getMaxRenderDistanceSquared, getPos, getWorld, hasWorldObj, invalidate, isInvalid, markDirty, receiveClientEvent, setPos, setWorldObj, updateContainingBlockInfo, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclear, closeInventory, decrStackSize, getField, getFieldCount, getInventoryStackLimit, getSizeInventory, getStackInSlot, isItemValidForSlot, isUseableByPlayer, markDirty, openInventory, removeStackFromSlot, setField, setInventorySlotContentscreateContainer, getGuiIDgetName, hasCustomNameprivate LockCode code
public void readFromNBT(NBTTagCompound compound)
readFromNBT in class TileEntitypublic void writeToNBT(NBTTagCompound compound)
writeToNBT in class TileEntitypublic boolean isLocked()
isLocked in interface ILockableContainerpublic LockCode getLockCode()
getLockCode in interface ILockableContainerpublic void setLockCode(LockCode code)
setLockCode in interface ILockableContainerpublic IChatComponent getDisplayName()
getDisplayName in interface IWorldNameable