public abstract class TileEntityLockable extends TileEntity implements ILockableContainer
pos, removed, worldINFINITE_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, validateareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, invalidateCaps, reviveCaps, serializeCapsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclear, closeInventory, decrStackSize, getField, getFieldCount, getHeight, getInventoryStackLimit, getSizeInventory, getStackInSlot, getWidth, isEmpty, isItemValidForSlot, isUsableByPlayer, markDirty, openInventory, removeStackFromSlot, setField, setInventorySlotContentscreateContainer, getGuiIDgetCustomName, getDisplayName, getName, hasCustomNamecanRenderBreaking, deserializeNBT, getModelData, getRenderBoundingBox, getTileEntity, handleUpdateTag, hasFastRenderer, onChunkUnloaded, onDataPacket, onLoad, requestModelDataUpdate, serializeNBT, shouldRenderInPassgetCapabilityprotected TileEntityLockable(TileEntityType<?> typeIn)
public void read(NBTTagCompound compound)
read in class TileEntitypublic NBTTagCompound write(NBTTagCompound compound)
write in class TileEntitypublic boolean isLocked()
isLocked in interface ILockableContainerpublic LockCode getLockCode()
getLockCode in interface ILockableContainerpublic void setLockCode(LockCode code)
setLockCode in interface ILockableContainerprotected IItemHandler createUnSidedHandler()
@Nullable public <T> LazyOptional<T> getCapability(Capability<T> cap, @Nullable EnumFacing side)
ICapabilityProvidergetCapability in interface ICapabilityProvidergetCapability in class CapabilityProvider<TileEntity>public void remove()
remove in class TileEntity