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 int
static int
static int
static int
private static int
private Container
private ContainerData
private static 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()
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, moveItemStackTo, quickMoveStack, 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:
- Constant Field Values
-
SLOT_COUNT
private static final int SLOT_COUNT- See Also:
- Constant Field Values
-
BUTTON_PREV_PAGE
public static final int BUTTON_PREV_PAGE- See Also:
- Constant Field Values
-
BUTTON_NEXT_PAGE
public static final int BUTTON_NEXT_PAGE- See Also:
- Constant Field Values
-
BUTTON_TAKE_BOOK
public static final int BUTTON_TAKE_BOOK- See Also:
- Constant Field Values
-
BUTTON_PAGE_JUMP_RANGE_START
public static final int BUTTON_PAGE_JUMP_RANGE_START- See Also:
- Constant Field Values
-
lectern
-
lecternData
-
-
Constructor Details
-
LecternMenu
public LecternMenu(int p_39822_) -
LecternMenu
-
-
Method Details
-
clickMenuButton
- Overrides:
clickMenuButton
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()
-