Package net.minecraft.tileentity
Class TileEntityLockable
- java.lang.Object
-
- net.minecraft.tileentity.TileEntity
-
- net.minecraft.tileentity.TileEntityLockable
-
- All Implemented Interfaces:
IInventory,IInteractionObject,ILockableContainer,IWorldNameable
- Direct Known Subclasses:
TileEntityBeacon,TileEntityBrewingStand,TileEntityChest,TileEntityDispenser,TileEntityFurnace,TileEntityHopper
public abstract class TileEntityLockable extends TileEntity implements IInteractionObject, ILockableContainer
-
-
Field Summary
-
Fields inherited from class net.minecraft.tileentity.TileEntity
blockType, pos, tileEntityInvalid, worldObj
-
-
Constructor Summary
Constructors Constructor Description TileEntityLockable()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IChatComponentgetDisplayName()+ Get the formatted ChatComponent that will be used for the sender's username in chatLockCodegetLockCode()booleanisLocked()voidreadFromNBT(NBTTagCompound nbttagcompound)voidsetLockCode(LockCode code)voidwriteToNBT(NBTTagCompound nbttagcompound)-
Methods inherited from class net.minecraft.tileentity.TileEntity
addInfoToCrashReport, createAndLoadEntity, func_183000_F, getBlockMetadata, getBlockType, getDescriptionPacket, getDistanceSq, getMaxRenderDistanceSquared, getPos, getWorld, hasWorldObj, invalidate, isInvalid, markDirty, receiveClientEvent, setPos, setWorldObj, updateContainingBlockInfo, validate
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.minecraft.world.IInteractionObject
createContainer, getGuiID
-
Methods inherited from interface net.minecraft.inventory.IInventory
clear, closeInventory, decrStackSize, getField, getFieldCount, getInventoryStackLimit, getSizeInventory, getStackInSlot, isItemValidForSlot, isUseableByPlayer, markDirty, openInventory, removeStackFromSlot, setField, setInventorySlotContents
-
Methods inherited from interface net.minecraft.world.IWorldNameable
getName, hasCustomName
-
-
-
-
Method Detail
-
readFromNBT
public void readFromNBT(NBTTagCompound nbttagcompound)
- Overrides:
readFromNBTin classTileEntity
-
writeToNBT
public void writeToNBT(NBTTagCompound nbttagcompound)
- Overrides:
writeToNBTin classTileEntity
-
isLocked
public boolean isLocked()
- Specified by:
isLockedin interfaceILockableContainer
-
getLockCode
public LockCode getLockCode()
- Specified by:
getLockCodein interfaceILockableContainer
-
setLockCode
public void setLockCode(LockCode code)
- Specified by:
setLockCodein interfaceILockableContainer
-
getDisplayName
public IChatComponent getDisplayName()
+ Get the formatted ChatComponent that will be used for the sender's username in chat- Specified by:
getDisplayNamein interfaceIWorldNameable
-
-