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, BookViewScreen.WritableBookAccess, BookViewScreen.WrittenBookAccess
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
BACKGROUND_LOCATION, font, height, minecraft, 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, loadPages, loadPages, mouseClicked, render, renderBackground, setBookAccess, setPage
Methods inherited from class net.minecraft.client.gui.screens.Screen
added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, changeFocus, children, clearWidgets, findNarratableWidget, getBackgroundMusic, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, hideWidgets, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, narrationEnabled, onFilesDrop, rebuildWidgets, removeWidget, renderDirtBackground, renderTransparentBackground, renderWithTooltip, repositionElements, resize, setInitialFocus, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldCloseOnEsc, shouldNarrateNavigation, tick, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, 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, magicalSpecialHackyFocus, 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
-