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
,Widget
,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, STATS_ICON_LOCATION
-
Constructor Summary
ConstructorDescriptionLecternScreen(LecternMenu p_99020_, Inventory p_99021_, Component p_99022_)
-
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
addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, children, clearWidgets, findNarratableWidget, getMinecraft, getNarrationMessage, getTitle, getTooltipFromItem, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, narrationEnabled, onFilesDrop, removeWidget, renderBackground, renderBackground, renderComponentHoverEffect, renderComponentTooltip, renderComponentTooltip, renderComponentTooltip, renderComponentTooltip, renderComponentToolTip, renderDirtBackground, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderToolTip, resize, sendMessage, sendMessage, shouldCloseOnEsc, 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, blitOutlineBlack, drawCenteredString, drawCenteredString, drawCenteredString, drawString, drawString, drawString, fill, fillGradient, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, 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
changeFocus, charTyped, getChildAt, keyReleased, magicalSpecialHackyFocus, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus
Methods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
mouseMoved
-
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
-