public class LecternTileEntity extends TileEntity implements IClearable, INamedContainerProvider
pos, removed, world
INFINITE_EXTENT_AABB
コンストラクタと説明 |
---|
LecternTileEntity() |
修飾子とタイプ | メソッドと説明 |
---|---|
void |
clear() |
Container |
createMenu(int p_createMenu_1_,
PlayerInventory p_createMenu_2_,
PlayerEntity p_createMenu_3_) |
ItemStack |
getBook() |
int |
getComparatorSignalLevel() |
ITextComponent |
getDisplayName() |
int |
getPage() |
boolean |
hasBook()
True if the item in this lectern is a book or written book.
|
boolean |
onlyOpsCanSetNbt()
Checks if players can use this tile entity to access operator (permission level 2) commands either directly or
indirectly, such as give or setblock.
|
void |
read(CompoundNBT compound) |
void |
setBook(ItemStack stack)
Sets the item stack in this lectern.
|
void |
setBook(ItemStack stack,
PlayerEntity player)
Sets the item stack in this lectern.
|
CompoundNBT |
write(CompoundNBT compound) |
addInfoToCrashReport, create, getBlockState, getDistanceSq, getMaxRenderDistanceSquared, getPos, getTileData, getType, getUpdatePacket, getUpdateTag, getWorld, hasWorld, isRemoved, markDirty, mirror, receiveClientEvent, remove, rotate, setPos, setWorldAndPos, updateContainingBlockInfo, validate, warnInvalidBlock
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCaps
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clearObj
canRenderBreaking, deserializeNBT, getModelData, getRenderBoundingBox, getTileEntity, handleUpdateTag, hasFastRenderer, onChunkUnloaded, onDataPacket, onLoad, requestModelDataUpdate, serializeNBT
getCapability, getCapability
public ItemStack getBook()
public boolean hasBook()
public void setBook(ItemStack stack)
LecternBlock.tryPlaceBook(net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.block.BlockState, net.minecraft.item.ItemStack)
for that.public void setBook(ItemStack stack, @Nullable PlayerEntity player)
LecternBlock.tryPlaceBook(net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.block.BlockState, net.minecraft.item.ItemStack)
for that.public int getPage()
public int getComparatorSignalLevel()
public boolean onlyOpsCanSetNbt()
Entity.ignoreItemEntityData()
.For example, signs
(player right-clicking) and command blocks
are considered
accessible.
onlyOpsCanSetNbt
クラス内 TileEntity
public void read(CompoundNBT compound)
read
クラス内 TileEntity
public CompoundNBT write(CompoundNBT compound)
write
クラス内 TileEntity
public void clear()
clear
インタフェース内 IClearable
public Container createMenu(int p_createMenu_1_, PlayerInventory p_createMenu_2_, PlayerEntity p_createMenu_3_)
createMenu
インタフェース内 IContainerProvider
public ITextComponent getDisplayName()
getDisplayName
インタフェース内 INamedContainerProvider