public class LecternTileEntity extends TileEntity implements IClearable, INamedContainerProvider
pos, removed, worldINFINITE_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, warnInvalidBlockareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCapsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclearObjcanRenderBreaking, deserializeNBT, getModelData, getRenderBoundingBox, getTileEntity, handleUpdateTag, hasFastRenderer, onChunkUnloaded, onDataPacket, onLoad, requestModelDataUpdate, serializeNBTgetCapability, getCapabilitypublic 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 クラス内 TileEntitypublic void read(CompoundNBT compound)
read クラス内 TileEntitypublic CompoundNBT write(CompoundNBT compound)
write クラス内 TileEntitypublic void clear()
clear インタフェース内 IClearablepublic Container createMenu(int p_createMenu_1_, PlayerInventory p_createMenu_2_, PlayerEntity p_createMenu_3_)
createMenu インタフェース内 IContainerProviderpublic ITextComponent getDisplayName()
getDisplayName インタフェース内 INamedContainerProvider