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, slots -
Constructor Summary
ConstructorsConstructorDescriptionLecternMenu(int containerId) LecternMenu(int containerId, Container lectern, ContainerData lecternData) -
Method Summary
Modifier and TypeMethodDescriptionbooleanclickMenuButton(Player player, int id) Handles the given Button-click on the server, currently only used by enchanting.getBook()intgetPage()quickMoveStack(Player player, int index) Handle when the stack in slotindexis shift-clicked.voidsetData(int id, int data) booleanstillValid(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:
clickMenuButtonin classAbstractContainerMenu
-
quickMoveStack
Handle 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 id, int data) - Overrides:
setDatain classAbstractContainerMenu
-
stillValid
Determines whether supplied player can use this container- Specified by:
stillValidin classAbstractContainerMenu
-
getBook
-
getPage
public int getPage()
-