net.minecraft.world.level.block.entity

public class LecternBlockEntity

extends BlockEntity implements Clearable, MenuProvider

All mapped superinterfaces:

Clearable, MenuProvider, MenuConstructor

dwc
net.minecraft.world.level.block.entity.LecternBlockEntity
net.minecraft.class_3722
net.minecraft.block.entity.LecternBlockEntity
net.minecraft.world.level.block.entity.TileEntityLectern

Field summary

Modifier and TypeField
public static final int
a
DATA_PAGE
field_31348
field_31348
public static final int
b
NUM_DATA
field_31349
field_31349
public static final int
c
SLOT_BOOK
field_31350
field_31350
public static final int
d
NUM_SLOTS
field_31351
field_31351
private final Container
e
bookAccess
field_17386
inventory
private final ContainerData
f
dataAccess
field_17387
propertyDelegate
ItemStack
g
book
field_17388
book
int
h
page
field_17389
currentPage
private int
i
pageCount
field_17390
pageCount

Constructor summary

ModifierConstructor
public (BlockPos pos, BlockState state)

Method summary

Modifier and TypeMethod
public ItemStack
b()
getBook()
method_17520()
getBook()
public boolean
c()
hasBook()
method_17522()
hasBook()
public void
b(cxp arg0)
setBook(ItemStack arg0)
method_17513(class_1799 arg0)
setBook(ItemStack book)
void
k()
onBookItemRemove()
method_17525()
onBookRemoved()
public void
a(cxp arg0, cpx arg1)
setBook(ItemStack arg0, Player arg1)
method_17514(class_1799 arg0, class_1657 arg1)
setBook(ItemStack book, PlayerEntity player)
void
a(int arg0)
setPage(int arg0)
method_17511(int arg0)
setCurrentPage(int currentPage)
public int
f()
getPage()
method_17523()
getCurrentPage()
public int
j()
getRedstoneSignal()
method_17524()
getComparatorOutput()
private ItemStack
b(cxp arg0, cpx arg1)
resolveBook(ItemStack arg0, Player arg1)
method_17518(class_1799 arg0, class_1657 arg1)
resolveBook(ItemStack book, PlayerEntity player)
private CommandSourceStack
a(cpx arg0, ash arg1)
createCommandSourceStack(Player arg0, ServerLevel arg1)
method_17512(class_1657 arg0, class_3218 arg1)
getCommandSource(PlayerEntity player, ServerWorld world)
public boolean
p()
onlyOpCanSetNbt()
method_11011()
copyItemDataRequiresOperator()
protected void
a(ux arg0, js$a arg1)
loadAdditional(CompoundTag arg0, HolderLookup$Provider arg1)
method_11014(class_2487 arg0, class_7225$class_7874 arg1)
readNbt(NbtCompound arg0, RegistryWrapper$WrapperLookup arg1)
protected void
b(ux arg0, js$a arg1)
saveAdditional(CompoundTag arg0, HolderLookup$Provider arg1)
method_11007(class_2487 arg0, class_7225$class_7874 arg1)
writeNbt(NbtCompound arg0, RegistryWrapper$WrapperLookup arg1)
public void
a()
clearContent()
method_5448()
clear()
public AbstractContainerMenu
createMenu(int arg0, cpw arg1, cpx arg2)
createMenu(int arg0, Inventory arg1, Player arg2)
createMenu(int arg0, class_1661 arg1, class_1657 arg2)
createMenu(int arg0, PlayerInventory arg1, PlayerEntity arg2)
public Component
p_()
getDisplayName()
method_5476()
getDisplayName()
private static int
c(cxp arg0)
getPageCount(ItemStack arg0)
method_57591(class_1799 arg0)
getPageCount(ItemStack stack)