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 net.minecraft.client.gui.screens.inventory.BookViewScreen
BookViewScreen.BookAccess
Nested classes/interfaces inherited from class net.minecraft.client.gui.screens.Screen
Screen.NarratableSearchResult
-
Field Summary
Fields inherited from class net.minecraft.client.gui.screens.inventory.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_WIDTH
Fields inherited from class net.minecraft.client.gui.screens.Screen
CUBE_MAP, font, FOOTER_SEPARATOR, HEADER_SEPARATOR, height, INWORLD_FOOTER_SEPARATOR, INWORLD_HEADER_SEPARATOR, MENU_BACKGROUND, minecraft, narratorButton, PANORAMA, renderables, screenExecutor, title, width
Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription(package private) void
protected void
protected void
protected boolean
forcePage
(int p_99031_) getMenu()
protected void
init()
boolean
void
onClose()
protected void
pageBack()
(package private) void
protected void
void
removed()
private void
sendButtonClick
(int p_99037_) Methods inherited from class net.minecraft.client.gui.screens.inventory.BookViewScreen
createPageControlButtons, getClickedComponentStyleAt, handleComponentClicked, keyPressed, mouseClicked, render, renderBackground, setBookAccess, setPage
Methods inherited from class net.minecraft.client.gui.screens.Screen
added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, changeFocus, children, clearFocus, clearTooltipForNextRenderPass, clearWidgets, findNarratableWidget, getBackgroundMusic, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, onFilesDrop, rebuildWidgets, removeWidget, renderBlurredBackground, renderMenuBackground, renderMenuBackground, renderMenuBackgroundTexture, renderPanorama, renderTransparentBackground, renderWithTooltip, repositionElements, resize, setInitialFocus, setInitialFocus, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldCloseOnEsc, shouldNarrateNavigation, tick, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, updateNarratorStatus, wrapScreenError
Methods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocused
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.gui.components.events.ContainerEventHandler
charTyped, getChildAt, getCurrentFocusPath, isFocused, keyReleased, mouseDragged, mouseReleased, mouseScrolled, nextFocusPath, setFocused
Methods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
mouseMoved
Methods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Field Details
-
listener
-
Constructor Details
-
LecternScreen
-
-
Method Details
-
getMenu
- Specified by:
getMenu
in interfaceMenuAccess<LecternMenu>
-
init
protected void init()- Overrides:
init
in classBookViewScreen
-
onClose
public void onClose() -
removed
public void removed() -
createMenuControls
protected void createMenuControls()- Overrides:
createMenuControls
in classBookViewScreen
-
pageBack
protected void pageBack()- Overrides:
pageBack
in classBookViewScreen
-
pageForward
protected void pageForward()- Overrides:
pageForward
in classBookViewScreen
-
forcePage
protected boolean forcePage(int p_99031_) - Overrides:
forcePage
in classBookViewScreen
-
sendButtonClick
private void sendButtonClick(int p_99037_) -
isPauseScreen
public boolean isPauseScreen()- Overrides:
isPauseScreen
in classScreen
-
bookChanged
void bookChanged() -
pageChanged
void pageChanged() -
closeScreen
protected void closeScreen()- Overrides:
closeScreen
in classBookViewScreen
-