Class BookViewScreen
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.inventory.BookViewScreen
- All Implemented Interfaces:
- ContainerEventHandler,- GuiEventListener,- Renderable,- TabOrderedElement
- Direct Known Subclasses:
- LecternScreen
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic interfacestatic classstatic classNested classes/interfaces inherited from class net.minecraft.client.gui.screens.ScreenScreen.NarratableSearchResult
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate PageButtonstatic final ResourceLocationprivate BookViewScreen.BookAccessprivate intprivate List<FormattedCharSequence>private intstatic final BookViewScreen.BookAccessprivate PageButtonprotected static final intprotected static final intstatic final intstatic final intstatic final intprivate Componentprivate final booleanprotected static final intprotected static final intFields inherited from class net.minecraft.client.gui.screens.ScreenBACKGROUND_LOCATION, font, height, minecraft, renderables, screenExecutor, title, widthFields inherited from interface net.minecraft.client.gui.components.events.GuiEventListenerDOUBLE_CLICK_THRESHOLD_MS
- 
Constructor SummaryConstructorsModifierConstructorDescriptionBookViewScreen(BookViewScreen.BookAccess p_98264_) privateBookViewScreen(BookViewScreen.BookAccess p_98266_, boolean p_98267_) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidprotected voidprotected voidprotected booleanforcePage(int p_98295_) getClickedComponentStyleAt(double p_98269_, double p_98270_) private intbooleanhandleComponentClicked(Style p_98293_) protected voidinit()booleankeyPressed(int p_98278_, int p_98279_, int p_98280_) loadPages(CompoundTag p_169695_) static voidloadPages(CompoundTag p_169697_, Consumer<String> p_169698_) booleanmouseClicked(double p_98272_, double p_98273_, int p_98274_) protected voidpageBack()protected voidvoidrender(GuiGraphics p_281997_, int p_281262_, int p_283321_, float p_282251_) voidrenderBackground(GuiGraphics p_301081_, int p_297765_, int p_300192_, float p_297977_) voidsetBookAccess(BookViewScreen.BookAccess p_98289_) booleansetPage(int p_98276_) private voidMethods inherited from class net.minecraft.client.gui.screens.Screenadded, 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, isPauseScreen, isSelectAll, isValidCharacterForName, narrationEnabled, onClose, onFilesDrop, rebuildWidgets, removed, removeWidget, renderDirtBackground, renderTransparentBackground, renderWithTooltip, repositionElements, resize, setInitialFocus, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldCloseOnEsc, shouldNarrateNavigation, tick, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, wrapScreenErrorMethods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandlergetFocused, isDragging, setDragging, setFocusedMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.components.events.ContainerEventHandlercharTyped, getChildAt, getCurrentFocusPath, isFocused, keyReleased, magicalSpecialHackyFocus, mouseDragged, mouseReleased, mouseScrolled, nextFocusPath, setFocusedMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListenermouseMovedMethods inherited from interface net.minecraft.client.gui.components.TabOrderedElementgetTabOrderGroup
- 
Field Details- 
PAGE_INDICATOR_TEXT_Y_OFFSETpublic static final int PAGE_INDICATOR_TEXT_Y_OFFSET- See Also:
 
- 
PAGE_TEXT_X_OFFSETpublic static final int PAGE_TEXT_X_OFFSET- See Also:
 
- 
PAGE_TEXT_Y_OFFSETpublic static final int PAGE_TEXT_Y_OFFSET- See Also:
 
- 
EMPTY_ACCESS
- 
BOOK_LOCATION
- 
TEXT_WIDTHprotected static final int TEXT_WIDTH- See Also:
 
- 
TEXT_HEIGHTprotected static final int TEXT_HEIGHT- See Also:
 
- 
IMAGE_WIDTHprotected static final int IMAGE_WIDTH- See Also:
 
- 
IMAGE_HEIGHTprotected static final int IMAGE_HEIGHT- See Also:
 
- 
bookAccess
- 
currentPageprivate int currentPage
- 
cachedPageComponents
- 
cachedPageprivate int cachedPage
- 
pageMsg
- 
forwardButton
- 
backButton
- 
playTurnSoundprivate final boolean playTurnSound
 
- 
- 
Constructor Details- 
BookViewScreen
- 
BookViewScreenpublic BookViewScreen()
- 
BookViewScreen
 
- 
- 
Method Details- 
setBookAccess
- 
setPagepublic boolean setPage(int p_98276_) 
- 
forcePageprotected boolean forcePage(int p_98295_) 
- 
initprotected void init()
- 
createMenuControlsprotected void createMenuControls()
- 
createPageControlButtonsprotected void createPageControlButtons()
- 
getNumPagesprivate int getNumPages()
- 
pageBackprotected void pageBack()
- 
pageForwardprotected void pageForward()
- 
updateButtonVisibilityprivate void updateButtonVisibility()
- 
keyPressedpublic boolean keyPressed(int p_98278_, int p_98279_, int p_98280_) - Specified by:
- keyPressedin interface- ContainerEventHandler
- Specified by:
- keyPressedin interface- GuiEventListener
- Overrides:
- keyPressedin class- Screen
 
- 
render- Specified by:
- renderin interface- Renderable
- Overrides:
- renderin class- Screen
 
- 
renderBackground- Overrides:
- renderBackgroundin class- Screen
 
- 
mouseClickedpublic boolean mouseClicked(double p_98272_, double p_98273_, int p_98274_) 
- 
handleComponentClicked- Overrides:
- handleComponentClickedin class- Screen
 
- 
closeScreenprotected void closeScreen()
- 
getClickedComponentStyleAt
- 
loadPages
- 
loadPages
 
-