Class LecternScreen
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.inventory.BookViewScreen
net.minecraft.client.gui.screens.inventory.LecternScreen
- All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Renderable, TabOrderedElement, MenuAccess<LecternMenu>
-
Nested Class Summary
Nested classes/interfaces inherited from class BookViewScreen
BookViewScreen.BookAccessNested classes/interfaces inherited from class Screen
Screen.NarratableSearchResult -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ContainerListenerprivate final LecternMenuprivate static final intprivate static final intprivate static final ComponentFields inherited from class BookViewScreen
BOOK_LOCATION, EMPTY_ACCESS, IMAGE_HEIGHT, IMAGE_WIDTH, PAGE_INDICATOR_TEXT_Y_OFFSET, PAGE_TEXT_X_OFFSET, PAGE_TEXT_Y_OFFSET, TEXT_HEIGHT, TEXT_WIDTHFields inherited from class Screen
FADE_IN_TIME, font, FOOTER_SEPARATOR, HEADER_SEPARATOR, height, INWORLD_FOOTER_SEPARATOR, INWORLD_HEADER_SEPARATOR, MENU_BACKGROUND, minecraft, narratorButton, renderables, screenExecutor, title, width -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidprotected voidprotected voidprotected booleanforcePage(int page) I'm not sure why this exists.getMenu()protected voidinit()booleanvoidonClose()protected voidpageBack()private voidprotected voidvoidremoved()private voidsendButtonClick(int button) Methods inherited from class BookViewScreen
createPageControlButtons, getNarrationMessage, handleClickEvent, isInGameUi, keyPressed, menuControlsTop, mouseClicked, render, renderBackground, setBookAccess, setPageMethods inherited from class Screen
added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, canInterruptWithAnotherScreen, changeFocus, children, clearFocus, clearWidgets, clickCommandAction, clickUrlAction, defaultHandleClickEvent, defaultHandleGameClickEvent, fadeWidgets, fillCrashDetails, findNarratableWidget, getBackgroundMusic, getFont, getMinecraft, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleDelayedNarration, init, insertText, isAllowedInPortal, isMouseOver, isValidCharacterForName, onFilesDrop, panoramaShouldSpin, rebuildWidgets, removeWidget, renderBlurredBackground, renderMenuBackground, renderMenuBackground, renderMenuBackgroundTexture, renderPanorama, renderTransparentBackground, renderWithTooltipAndSubtitles, repositionElements, resize, setInitialFocus, setInitialFocus, shouldCloseOnEsc, shouldNarrateNavigation, showsActiveEffects, tick, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, updateNarratorStatusMethods inherited from class AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocusedMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ContainerEventHandler
charTyped, getBorderForArrowNavigation, getChildAt, getCurrentFocusPath, isFocused, keyReleased, mouseDragged, mouseReleased, mouseScrolled, nextFocusPath, setFocusedMethods inherited from interface GuiEventListener
mouseMoved, shouldTakeFocusAfterInteractionMethods inherited from interface TabOrderedElement
getTabOrderGroup
-
Field Details
-
MENU_BUTTON_MARGIN
private static final int MENU_BUTTON_MARGIN- See Also:
-
MENU_BUTTON_SIZE
private static final int MENU_BUTTON_SIZE- See Also:
-
TAKE_BOOK_LABEL
-
listener
-
-
Constructor Details
-
LecternScreen
-
-
Method Details
-
getMenu
- Specified by:
getMenuin interfaceMenuAccess<LecternMenu>
-
init
protected void init()- Overrides:
initin classBookViewScreen
-
onClose
-
removed
-
createMenuControls
protected void createMenuControls()- Overrides:
createMenuControlsin classBookViewScreen
-
pageBack
protected void pageBack()- Overrides:
pageBackin classBookViewScreen
-
pageForward
protected void pageForward()- Overrides:
pageForwardin classBookViewScreen
-
forcePage
protected boolean forcePage(int page) I'm not sure why this exists. The function it calls is public and does all the work.- Overrides:
forcePagein classBookViewScreen
-
sendButtonClick
private void sendButtonClick(int button) -
isPauseScreen
public boolean isPauseScreen()- Overrides:
isPauseScreenin classScreen
-
bookChanged
private void bookChanged() -
pageChanged
private void pageChanged() -
closeContainerOnServer
protected void closeContainerOnServer()- Overrides:
closeContainerOnServerin classBookViewScreen
-