public abstract class LockableTileEntity extends TileEntity implements IInventory, INamedContainerProvider, INameable
pos, removed, world
INFINITE_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, warnInvalidBlock
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, invalidateCaps, reviveCaps, serializeCaps
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
closeInventory, count, decrStackSize, getInventoryStackLimit, getSizeInventory, getStackInSlot, hasAny, isEmpty, isItemValidForSlot, isUsableByPlayer, markDirty, openInventory, removeStackFromSlot, setInventorySlotContents
clear, clearObj
hasCustomName
canRenderBreaking, deserializeNBT, getModelData, getRenderBoundingBox, getTileEntity, handleUpdateTag, hasFastRenderer, onChunkUnloaded, onDataPacket, onLoad, requestModelDataUpdate, serializeNBT
getCapability
protected LockableTileEntity(TileEntityType<?> typeIn)
public void read(CompoundNBT compound)
read
クラス内 TileEntity
public CompoundNBT write(CompoundNBT compound)
write
クラス内 TileEntity
public void setCustomName(ITextComponent name)
public ITextComponent getName()
public ITextComponent getDisplayName()
getDisplayName
インタフェース内 INamedContainerProvider
getDisplayName
インタフェース内 INameable
@Nullable public ITextComponent getCustomName()
getCustomName
インタフェース内 INameable
protected 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
インタフェース内 IContainerProvider
protected abstract Container createMenu(int id, PlayerInventory player)
protected IItemHandler createUnSidedHandler()
@Nullable public <T> LazyOptional<T> getCapability(Capability<T> cap, @Nullable Direction side)
ICapabilityProvider
getCapability
インタフェース内 ICapabilityProvider
getCapability
クラス内 CapabilityProvider<TileEntity>
public void remove()
remove
クラス内 TileEntity