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 IChatComponent
getDisplayName()
+ Get the formatted ChatComponent that will be used for the sender's username in chatLockCode
getLockCode()
boolean
isLocked()
void
readFromNBT(NBTTagCompound nbttagcompound)
void
setLockCode(LockCode code)
void
writeToNBT(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:
readFromNBT
in classTileEntity
-
writeToNBT
public void writeToNBT(NBTTagCompound nbttagcompound)
- Overrides:
writeToNBT
in classTileEntity
-
isLocked
public boolean isLocked()
- Specified by:
isLocked
in interfaceILockableContainer
-
getLockCode
public LockCode getLockCode()
- Specified by:
getLockCode
in interfaceILockableContainer
-
setLockCode
public void setLockCode(LockCode code)
- Specified by:
setLockCode
in interfaceILockableContainer
-
getDisplayName
public IChatComponent getDisplayName()
+ Get the formatted ChatComponent that will be used for the sender's username in chat- Specified by:
getDisplayName
in interfaceIWorldNameable
-
-