Package net.minecraft.world.inventory
Class LecternMenu
java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
net.minecraft.world.inventory.LecternMenu
-
Field Summary
FieldsModifier 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
ConstructorsConstructorDescriptionLecternMenu
(int containerId) LecternMenu
(int containerId, Container lectern, ContainerData lecternData) -
Method Summary
Modifier and TypeMethodDescriptionboolean
clickMenuButton
(Player player, int id) Handles the given Button-click on the server, currently only used by enchanting.getBook()
int
getPage()
quickMoveStack
(Player player, int index) Handle when the stack in slotindex
is shift-clicked.void
setData
(int id, int data) boolean
stillValid
(Player player) Determines whether supplied player can use this containerMethods 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, getQuickCraftPlaceCount, 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 containerId) -
LecternMenu
-
-
Method Details
-
clickMenuButton
Handles the given Button-click on the server, currently only used by enchanting. Name is for legacy.- Overrides:
clickMenuButton
in classAbstractContainerMenu
-
quickMoveStack
Handle when the stack in slotindex
is shift-clicked. Normally this moves the stack between the player inventory and the other inventory(s).- Specified by:
quickMoveStack
in classAbstractContainerMenu
-
setData
public void setData(int id, int data) - Overrides:
setData
in classAbstractContainerMenu
-
stillValid
Determines whether supplied player can use this container- Specified by:
stillValid
in classAbstractContainerMenu
-
getBook
-
getPage
public int getPage()
-