public abstract class LockableTileEntity extends TileEntity implements IInventory, INamedContainerProvider, INameable
pos, removed, worldINFINITE_EXTENT_AABB| 修飾子 | コンストラクタと説明 |
|---|---|
protected |
LockableTileEntity(TileEntityType<?> typeIn) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
canOpen(PlayerEntity p_213904_1_) |
static boolean |
canUnlock(PlayerEntity p_213905_0_,
LockCode p_213905_1_,
ITextComponent p_213905_2_) |
protected abstract Container |
createMenu(int id,
PlayerInventory player) |
Container |
createMenu(int p_createMenu_1_,
PlayerInventory p_createMenu_2_,
PlayerEntity p_createMenu_3_) |
protected IItemHandler |
createUnSidedHandler() |
<T> LazyOptional<T> |
getCapability(Capability<T> cap,
Direction side)
Retrieves the Optional handler for the capability requested on the specific side.
|
ITextComponent |
getCustomName() |
protected abstract ITextComponent |
getDefaultName() |
ITextComponent |
getDisplayName() |
ITextComponent |
getName() |
void |
read(CompoundNBT compound) |
void |
remove()
invalidates a tile entity
|
void |
setCustomName(ITextComponent name) |
CompoundNBT |
write(CompoundNBT compound) |
addInfoToCrashReport, create, getBlockState, getDistanceSq, getMaxRenderDistanceSquared, getPos, getTileData, getType, getUpdatePacket, getUpdateTag, getWorld, hasWorld, isRemoved, markDirty, mirror, onlyOpsCanSetNbt, receiveClientEvent, rotate, setPos, setWorldAndPos, updateContainingBlockInfo, validate, warnInvalidBlockareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, invalidateCaps, reviveCaps, serializeCapsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcloseInventory, count, decrStackSize, getInventoryStackLimit, getSizeInventory, getStackInSlot, hasAny, isEmpty, isItemValidForSlot, isUsableByPlayer, markDirty, openInventory, removeStackFromSlot, setInventorySlotContentsclear, clearObjhasCustomNamecanRenderBreaking, deserializeNBT, getModelData, getRenderBoundingBox, getTileEntity, handleUpdateTag, hasFastRenderer, onChunkUnloaded, onDataPacket, onLoad, requestModelDataUpdate, serializeNBTgetCapabilityprotected LockableTileEntity(TileEntityType<?> typeIn)
public void read(CompoundNBT compound)
read クラス内 TileEntitypublic CompoundNBT write(CompoundNBT compound)
write クラス内 TileEntitypublic void setCustomName(ITextComponent name)
public ITextComponent getName()
public ITextComponent getDisplayName()
getDisplayName インタフェース内 INamedContainerProvidergetDisplayName インタフェース内 INameable@Nullable public ITextComponent getCustomName()
getCustomName インタフェース内 INameableprotected abstract ITextComponent getDefaultName()
public boolean canOpen(PlayerEntity p_213904_1_)
public static boolean canUnlock(PlayerEntity p_213905_0_, LockCode p_213905_1_, ITextComponent p_213905_2_)
@Nullable public Container createMenu(int p_createMenu_1_, PlayerInventory p_createMenu_2_, PlayerEntity p_createMenu_3_)
createMenu インタフェース内 IContainerProviderprotected abstract Container createMenu(int id, PlayerInventory player)
protected IItemHandler createUnSidedHandler()
@Nullable public <T> LazyOptional<T> getCapability(Capability<T> cap, @Nullable Direction side)
ICapabilityProvidergetCapability インタフェース内 ICapabilityProvidergetCapability クラス内 CapabilityProvider<TileEntity>public void remove()
remove クラス内 TileEntity