Package net.minecraft.world.inventory
Class LecternMenu
java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
net.minecraft.world.inventory.LecternMenu
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
private static final int
private final Container
private final ContainerData
private static final int
Fields inherited from class net.minecraft.world.inventory.AbstractContainerMenu
CARRIED_SLOT_SIZE, containerId, QUICKCRAFT_HEADER_CONTINUE, QUICKCRAFT_HEADER_END, QUICKCRAFT_HEADER_START, QUICKCRAFT_TYPE_CHARITABLE, QUICKCRAFT_TYPE_CLONE, QUICKCRAFT_TYPE_GREEDY, SLOT_CLICKED_OUTSIDE, slots
-
Constructor Summary
ConstructorDescriptionLecternMenu
(int p_39822_) LecternMenu
(int p_39824_, Container p_39825_, ContainerData p_39826_) -
Method Summary
Modifier and TypeMethodDescriptionboolean
clickMenuButton
(Player p_39833_, int p_39834_) getBook()
int
getPage()
quickMoveStack
(Player p_219987_, int p_219988_) void
setData
(int p_39828_, int p_39829_) boolean
stillValid
(Player p_39831_) Methods inherited from class net.minecraft.world.inventory.AbstractContainerMenu
addDataSlot, addDataSlots, addSlot, addSlotListener, broadcastChanges, broadcastFullState, canDragTo, canItemQuickReplace, canTakeItemForPickAll, checkContainerDataCount, checkContainerSize, clearContainer, clicked, findSlot, getCarried, getItems, getQuickcraftHeader, getQuickcraftMask, getQuickCraftSlotCount, getQuickcraftType, getRedstoneSignalFromBlockEntity, getRedstoneSignalFromContainer, getSlot, getStateId, getType, incrementStateId, initializeContents, isValidQuickcraftType, isValidSlotIndex, moveItemStackTo, removed, removeSlotListener, resetQuickCraft, resumeRemoteUpdates, sendAllDataToRemote, setCarried, setItem, setRemoteCarried, setRemoteSlot, setRemoteSlotNoCopy, setSynchronizer, slotsChanged, stillValid, suppressRemoteUpdates, transferState
-
Field Details
-
DATA_COUNT
private static final int DATA_COUNT- See Also:
-
SLOT_COUNT
private static final int SLOT_COUNT- See Also:
-
BUTTON_PREV_PAGE
public static final int BUTTON_PREV_PAGE- See Also:
-
BUTTON_NEXT_PAGE
public static final int BUTTON_NEXT_PAGE- See Also:
-
BUTTON_TAKE_BOOK
public static final int BUTTON_TAKE_BOOK- See Also:
-
BUTTON_PAGE_JUMP_RANGE_START
public static final int BUTTON_PAGE_JUMP_RANGE_START- See Also:
-
lectern
-
lecternData
-
-
Constructor Details
-
LecternMenu
public LecternMenu(int p_39822_) -
LecternMenu
-
-
Method Details
-
clickMenuButton
- Overrides:
clickMenuButton
in classAbstractContainerMenu
-
quickMoveStack
- Specified by:
quickMoveStack
in classAbstractContainerMenu
-
setData
public void setData(int p_39828_, int p_39829_) - Overrides:
setData
in classAbstractContainerMenu
-
stillValid
- Specified by:
stillValid
in classAbstractContainerMenu
-
getBook
-
getPage
public int getPage()
-