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, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clear, closeInventory, decrStackSize, getField, getFieldCount, getInventoryStackLimit, getSizeInventory, getStackInSlot, isItemValidForSlot, isUseableByPlayer, markDirty, openInventory, removeStackFromSlot, setField, setInventorySlotContents
createContainer, getGuiID
getName, hasCustomName
private LockCode code
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