Class LecternScreen
java.lang.Object
net.minecraft.client.gui.GuiComponent
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
font, height, itemRenderer, minecraft, passEvents, renderables, title, width
Fields inherited from class net.minecraft.client.gui.GuiComponent
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, LIGHT_DIRT_BACKGROUND, STATS_ICON_LOCATION
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, setBookAccess, setPage
Methods inherited from class net.minecraft.client.gui.screens.Screen
added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, changeFocus, children, clearWidgets, findNarratableWidget, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, hideWidgets, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, narrationEnabled, onFilesDrop, rebuildWidgets, removeWidget, renderBackground, renderComponentHoverEffect, renderComponentTooltip, renderComponentTooltip, renderComponentTooltip, renderComponentTooltip, renderDirtBackground, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, 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 net.minecraft.client.gui.GuiComponent
blit, blit, blit, blit, blit, blit, blitNineSliced, blitNineSliced, blitNineSliced, blitOutlineBlack, blitRepeating, disableScissor, drawCenteredString, drawCenteredString, drawCenteredString, drawString, drawString, drawString, enableScissor, fill, fill, fillGradient, fillGradient, fillGradient, hLine, renderOutline, vLine
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
-