public class LecternTileEntity extends TileEntity implements IClearable, INamedContainerProvider
Modifier and Type | Field and Description |
---|---|
private ItemStack |
book |
private IIntArray |
field_214049_b |
private IInventory |
inventory |
private int |
page |
private int |
pages |
pos, removed, world
INFINITE_EXTENT_AABB
Constructor and Description |
---|
LecternTileEntity() |
Modifier and Type | Method and Description |
---|---|
private void |
bookRemoved() |
void |
clear() |
private CommandSource |
createCommandSource(PlayerEntity player) |
Container |
createMenu(int p_createMenu_1_,
PlayerInventory p_createMenu_2_,
PlayerEntity p_createMenu_3_) |
private ItemStack |
ensureResolved(ItemStack stack,
PlayerEntity player) |
ItemStack |
getBook() |
int |
getComparatorSignalLevel() |
ITextComponent |
getDisplayName() |
int |
getPage() |
boolean |
hasBook() |
boolean |
onlyOpsCanSetNbt() |
void |
read(CompoundNBT compound) |
void |
setBook(ItemStack stack) |
void |
setBook(ItemStack stack,
PlayerEntity player) |
private void |
setPage(int pageIn) |
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
private final IInventory inventory
private final IIntArray field_214049_b
private ItemStack book
private int page
private int pages
public ItemStack getBook()
public boolean hasBook()
public void setBook(ItemStack stack)
private void bookRemoved()
public void setBook(ItemStack stack, @Nullable PlayerEntity player)
private void setPage(int pageIn)
public int getPage()
public int getComparatorSignalLevel()
private ItemStack ensureResolved(ItemStack stack, @Nullable PlayerEntity player)
private CommandSource createCommandSource(@Nullable PlayerEntity player)
public boolean onlyOpsCanSetNbt()
onlyOpsCanSetNbt
in class TileEntity
public void read(CompoundNBT compound)
read
in class TileEntity
public CompoundNBT write(CompoundNBT compound)
write
in class TileEntity
public void clear()
clear
in interface IClearable
public Container createMenu(int p_createMenu_1_, PlayerInventory p_createMenu_2_, PlayerEntity p_createMenu_3_)
createMenu
in interface IContainerProvider
public ITextComponent getDisplayName()
getDisplayName
in interface INamedContainerProvider