public abstract class TileEntityLockable extends TileEntity implements ILockableContainer
pos, removed, world
INFINITE_EXTENT_AABB
Modifier | Constructor and Description |
---|---|
protected |
TileEntityLockable(TileEntityType<?> typeIn) |
Modifier and Type | Method and Description |
---|---|
protected IItemHandler |
createUnSidedHandler() |
<T> LazyOptional<T> |
getCapability(Capability<T> cap,
EnumFacing side)
Retrieves the Optional handler for the capability requested on the specific side.
|
LockCode |
getLockCode() |
boolean |
isLocked() |
void |
read(NBTTagCompound compound) |
void |
remove() |
void |
setLockCode(LockCode code) |
NBTTagCompound |
write(NBTTagCompound compound) |
addInfoToCrashReport, create, getBlockState, getDistanceSq, getMaxRenderDistanceSquared, getPos, getTileData, getType, getUpdatePacket, getUpdateTag, getWorld, hasWorld, isRemoved, markDirty, mirror, onlyOpsCanSetNbt, receiveClientEvent, rotate, setPos, setWorld, updateContainingBlockInfo, validate
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, invalidateCaps, reviveCaps, serializeCaps
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clear, closeInventory, decrStackSize, getField, getFieldCount, getHeight, getInventoryStackLimit, getSizeInventory, getStackInSlot, getWidth, isEmpty, isItemValidForSlot, isUsableByPlayer, markDirty, openInventory, removeStackFromSlot, setField, setInventorySlotContents
createContainer, getGuiID
getCustomName, getDisplayName, getName, hasCustomName
canRenderBreaking, deserializeNBT, getModelData, getRenderBoundingBox, getTileEntity, handleUpdateTag, hasFastRenderer, onChunkUnloaded, onDataPacket, onLoad, requestModelDataUpdate, serializeNBT, shouldRenderInPass
getCapability
protected TileEntityLockable(TileEntityType<?> typeIn)
public void read(NBTTagCompound compound)
read
in class TileEntity
public NBTTagCompound write(NBTTagCompound compound)
write
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
protected IItemHandler createUnSidedHandler()
@Nullable public <T> LazyOptional<T> getCapability(Capability<T> cap, @Nullable EnumFacing side)
ICapabilityProvider
getCapability
in interface ICapabilityProvider
getCapability
in class CapabilityProvider<TileEntity>
public void remove()
remove
in class TileEntity