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 intstatic final intstatic final intstatic final intprivate static final intprivate final Containerprivate final ContainerDataprivate static final intFields 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, SLOT_SIZE, slots, SLOTS_PER_ROW -
Constructor Summary
ConstructorsConstructorDescriptionLecternMenu(int pContainerId) LecternMenu(int pContainerId, Container pLectern, ContainerData pLecternData) -
Method Summary
Modifier and TypeMethodDescriptionbooleanclickMenuButton(Player pPlayer, int pId) Handles the given Button-click on the server, currently only used by enchanting.getBook()intgetPage()quickMoveStack(Player p_219987_, int p_219988_) Handle when the stack in slotindexis shift-clicked.voidsetData(int pId, int pData) booleanstillValid(Player pPlayer) Determines whether supplied player can use this containerMethods inherited from class net.minecraft.world.inventory.AbstractContainerMenu
addDataSlot, addDataSlots, addInventoryExtendedSlots, addInventoryHotbarSlots, addSlot, addSlotListener, addStandardInventorySlots, 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, setRemoteSlotUnsafe, setSelectedBundleItemIndex, 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 pContainerId) -
LecternMenu
-
-
Method Details
-
clickMenuButton
Handles the given Button-click on the server, currently only used by enchanting. Name is for legacy.- Overrides:
clickMenuButtonin classAbstractContainerMenu
-
quickMoveStack
Description copied from class:AbstractContainerMenuHandle when the stack in slotindexis shift-clicked. Normally this moves the stack between the player inventory and the other inventory(s).- Specified by:
quickMoveStackin classAbstractContainerMenu
-
setData
public void setData(int pId, int pData) - Overrides:
setDatain classAbstractContainerMenu
-
stillValid
Determines whether supplied player can use this container- Specified by:
stillValidin classAbstractContainerMenu
-
getBook
-
getPage
public int getPage()
-