Class BookScreen
java.lang.Object
net.minecraft.client.gui.AbstractParentElement
net.minecraft.client.gui.screen.Screen
net.minecraft.client.gui.screen.ingame.BookScreen
- All Implemented Interfaces:
- Drawable,- Element,- Navigable,- ParentElement
- Direct Known Subclasses:
- LecternScreen
- Mappings:
- Namespace - Name - official - evw- intermediary - net/minecraft/class_3872- named - net/minecraft/client/gui/screen/ingame/BookScreen
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic interfacestatic classstatic classNested classes/interfaces inherited from class net.minecraft.client.gui.screen.ScreenScreen.SelectedElementNarrationData
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final Identifierprivate List<OrderedText>private intprivate BookScreen.Contentsstatic final BookScreen.Contentsstatic final intstatic final intstatic final intprotected static final intprotected static final intprotected static final intprivate PageTurnWidgetprivate intprivate Textprivate final booleanprivate PageTurnWidgetprotected static final intFields inherited from class net.minecraft.client.gui.screen.Screenclient, executor, height, OPTIONS_BACKGROUND_TEXTURE, textRenderer, title, widthFields inherited from interface net.minecraft.client.gui.ElementMAX_DOUBLE_CLICK_INTERVAL
- 
Constructor SummaryConstructorsModifierConstructorDescriptionBookScreen(BookScreen.Contents pageProvider) privateBookScreen(BookScreen.Contents contents, boolean playPageTurnSound) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidprotected voidprotected voidstatic voidfilterPages(NbtCompound nbt, Consumer<String> pageConsumer) private intgetTextStyleAt(double x, double y) protected voidprotected voidbooleanhandleTextClick(Style style) protected voidinit()Called when a screen should be initialized.protected booleanjumpToPage(int page) booleankeyPressed(int keyCode, int scanCode, int modifiers) Callback for when a key down event has been captured.booleanmouseClicked(double mouseX, double mouseY, int button) Callback for when a mouse button down event has been captured.readPages(NbtCompound nbt) voidrender(DrawContext context, int mouseX, int mouseY, float delta) booleansetPage(int index) voidsetPageProvider(BookScreen.Contents pageProvider) private voidMethods inherited from class net.minecraft.client.gui.screen.ScreenaddDrawable, addDrawableChild, addElementNarrations, addScreenNarrations, addSelectableChild, applyKeyPressNarratorDelay, applyMouseMoveNarratorDelay, applyMousePressScrollNarratorDelay, applyNarratorModeChangeDelay, children, clearAndInit, clearChildren, close, filesDragged, findSelectedElementData, getMusic, getNarratedTitle, getNavigationFocus, getTitle, getTooltipFromItem, hasAltDown, hasControlDown, hasShiftDown, hasUsageText, hide, init, initTabNavigation, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, narrateScreenIfNarrationEnabled, onDisplayed, remove, removed, renderBackground, renderBackgroundTexture, renderWithTooltip, resize, setInitialFocus, setTooltip, setTooltip, setTooltip, setTooltip, shouldCloseOnEsc, shouldPause, switchFocus, tick, updateNarrator, wrapScreenErrorMethods inherited from class net.minecraft.client.gui.AbstractParentElementgetFocused, 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.ElementmouseMovedMethods inherited from interface net.minecraft.client.gui.navigation.NavigablegetNavigationOrderMethods inherited from interface net.minecraft.client.gui.ParentElementcharTyped, focusOn, getFocusedPath, getNavigationPath, hoveredElement, isFocused, keyReleased, mouseDragged, mouseReleased, mouseScrolled, setFocused
- 
Field Details- 
field_32328public static final int field_32328- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - a- Levw;a:I- intermediary - field_32328- Lnet/minecraft/class_3872;field_32328:I- named - field_32328- Lnet/minecraft/client/gui/screen/ingame/BookScreen;field_32328:I
 
- 
field_32329public static final int field_32329- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - b- Levw;b:I- intermediary - field_32329- Lnet/minecraft/class_3872;field_32329:I- named - field_32329- Lnet/minecraft/client/gui/screen/ingame/BookScreen;field_32329:I
 
- 
field_32330public static final int field_32330- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - c- Levw;c:I- intermediary - field_32330- Lnet/minecraft/class_3872;field_32330:I- named - field_32330- Lnet/minecraft/client/gui/screen/ingame/BookScreen;field_32330:I
 
- 
EMPTY_PROVIDER- Mappings:
- Namespace - Name - Mixin selector - official - k- Levw;k:Levw$a;- intermediary - field_17417- Lnet/minecraft/class_3872;field_17417:Lnet/minecraft/class_3872$class_3931;- named - EMPTY_PROVIDER- Lnet/minecraft/client/gui/screen/ingame/BookScreen;EMPTY_PROVIDER:Lnet/minecraft/client/gui/screen/ingame/BookScreen$Contents;
 
- 
BOOK_TEXTURE- Mappings:
- Namespace - Name - Mixin selector - official - l- Levw;l:Lacq;- intermediary - field_17117- Lnet/minecraft/class_3872;field_17117:Lnet/minecraft/class_2960;- named - BOOK_TEXTURE- Lnet/minecraft/client/gui/screen/ingame/BookScreen;BOOK_TEXTURE:Lnet/minecraft/util/Identifier;
 
- 
MAX_TEXT_WIDTHprotected static final int MAX_TEXT_WIDTH- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - m- Levw;m:I- intermediary - field_32331- Lnet/minecraft/class_3872;field_32331:I- named - MAX_TEXT_WIDTH- Lnet/minecraft/client/gui/screen/ingame/BookScreen;MAX_TEXT_WIDTH:I
 
- 
MAX_TEXT_HEIGHTprotected static final int MAX_TEXT_HEIGHT- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - n- Levw;n:I- intermediary - field_32332- Lnet/minecraft/class_3872;field_32332:I- named - MAX_TEXT_HEIGHT- Lnet/minecraft/client/gui/screen/ingame/BookScreen;MAX_TEXT_HEIGHT:I
 
- 
WIDTHprotected static final int WIDTH- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - o- Levw;o:I- intermediary - field_32333- Lnet/minecraft/class_3872;field_32333:I- named - WIDTH- Lnet/minecraft/client/gui/screen/ingame/BookScreen;WIDTH:I
 
- 
HEIGHTprotected static final int HEIGHT- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - p- Levw;p:I- intermediary - field_32334- Lnet/minecraft/class_3872;field_32334:I- named - HEIGHT- Lnet/minecraft/client/gui/screen/ingame/BookScreen;HEIGHT:I
 
- 
contents- Mappings:
- Namespace - Name - Mixin selector - official - q- Levw;q:Levw$a;- intermediary - field_17418- Lnet/minecraft/class_3872;field_17418:Lnet/minecraft/class_3872$class_3931;- named - contents- Lnet/minecraft/client/gui/screen/ingame/BookScreen;contents:Lnet/minecraft/client/gui/screen/ingame/BookScreen$Contents;
 
- 
pageIndexprivate int pageIndex- Mappings:
- Namespace - Name - Mixin selector - official - r- Levw;r:I- intermediary - field_17119- Lnet/minecraft/class_3872;field_17119:I- named - pageIndex- Lnet/minecraft/client/gui/screen/ingame/BookScreen;pageIndex:I
 
- 
cachedPage- Mappings:
- Namespace - Name - Mixin selector - official - s- Levw;s:Ljava/util/List;- intermediary - field_17120- Lnet/minecraft/class_3872;field_17120:Ljava/util/List;- named - cachedPage- Lnet/minecraft/client/gui/screen/ingame/BookScreen;cachedPage:Ljava/util/List;
 
- 
cachedPageIndexprivate int cachedPageIndex- Mappings:
- Namespace - Name - Mixin selector - official - t- Levw;t:I- intermediary - field_17121- Lnet/minecraft/class_3872;field_17121:I- named - cachedPageIndex- Lnet/minecraft/client/gui/screen/ingame/BookScreen;cachedPageIndex:I
 
- 
pageIndexText- Mappings:
- Namespace - Name - Mixin selector - official - u- Levw;u:Lsw;- intermediary - field_25897- Lnet/minecraft/class_3872;field_25897:Lnet/minecraft/class_2561;- named - pageIndexText- Lnet/minecraft/client/gui/screen/ingame/BookScreen;pageIndexText:Lnet/minecraft/text/Text;
 
- 
nextPageButton- Mappings:
- Namespace - Name - Mixin selector - official - v- Levw;v:Leww;- intermediary - field_17122- Lnet/minecraft/class_3872;field_17122:Lnet/minecraft/class_474;- named - nextPageButton- Lnet/minecraft/client/gui/screen/ingame/BookScreen;nextPageButton:Lnet/minecraft/client/gui/widget/PageTurnWidget;
 
- 
previousPageButton- Mappings:
- Namespace - Name - Mixin selector - official - w- Levw;w:Leww;- intermediary - field_17123- Lnet/minecraft/class_3872;field_17123:Lnet/minecraft/class_474;- named - previousPageButton- Lnet/minecraft/client/gui/screen/ingame/BookScreen;previousPageButton:Lnet/minecraft/client/gui/widget/PageTurnWidget;
 
- 
pageTurnSoundprivate final boolean pageTurnSound- Mappings:
- Namespace - Name - Mixin selector - official - x- Levw;x:Z- intermediary - field_18976- Lnet/minecraft/class_3872;field_18976:Z- named - pageTurnSound- Lnet/minecraft/client/gui/screen/ingame/BookScreen;pageTurnSound:Z
 
 
- 
- 
Constructor Details- 
BookScreen- Mappings:
- Namespace - Name - Mixin selector - official - <init>- Levw;<init>(Levw$a;)V- intermediary - <init>- Lnet/minecraft/class_3872;<init>(Lnet/minecraft/class_3872$class_3931;)V- named - <init>- Lnet/minecraft/client/gui/screen/ingame/BookScreen;<init>(Lnet/minecraft/client/gui/screen/ingame/BookScreen$Contents;)V
 
- 
BookScreenpublic BookScreen()
- 
BookScreen- Mappings:
- Namespace - Name - Mixin selector - official - <init>- Levw;<init>(Levw$a;Z)V- intermediary - <init>- Lnet/minecraft/class_3872;<init>(Lnet/minecraft/class_3872$class_3931;Z)V- named - <init>- Lnet/minecraft/client/gui/screen/ingame/BookScreen;<init>(Lnet/minecraft/client/gui/screen/ingame/BookScreen$Contents;Z)V
 
 
- 
- 
Method Details- 
setPageProvider- Mappings:
- Namespace - Name - Mixin selector - official - a- Levw;a(Levw$a;)V- intermediary - method_17554- Lnet/minecraft/class_3872;method_17554(Lnet/minecraft/class_3872$class_3931;)V- named - setPageProvider- Lnet/minecraft/client/gui/screen/ingame/BookScreen;setPageProvider(Lnet/minecraft/client/gui/screen/ingame/BookScreen$Contents;)V
 
- 
setPagepublic boolean setPage(int index) - Mappings:
- Namespace - Name - Mixin selector - official - a- Levw;a(I)Z- intermediary - method_17556- Lnet/minecraft/class_3872;method_17556(I)Z- named - setPage- Lnet/minecraft/client/gui/screen/ingame/BookScreen;setPage(I)Z
 
- 
jumpToPageprotected boolean jumpToPage(int page) - Mappings:
- Namespace - Name - Mixin selector - official - b- Levw;b(I)Z- intermediary - method_17789- Lnet/minecraft/class_3872;method_17789(I)Z- named - jumpToPage- Lnet/minecraft/client/gui/screen/ingame/BookScreen;jumpToPage(I)Z
 
- 
initprotected void init()Called when a screen should be initialized.This method is called when this screen is opened or resized. This should call Screen.setInitialFocus(net.minecraft.client.gui.Element)to set the element that is initially focused.
- 
addCloseButtonprotected void addCloseButton()- Mappings:
- Namespace - Name - Mixin selector - official - l- Levw;l()V- intermediary - method_17557- Lnet/minecraft/class_3872;method_17557()V- named - addCloseButton- Lnet/minecraft/client/gui/screen/ingame/BookScreen;addCloseButton()V
 
- 
addPageButtonsprotected void addPageButtons()- Mappings:
- Namespace - Name - Mixin selector - official - B- Levw;B()V- intermediary - method_17558- Lnet/minecraft/class_3872;method_17558()V- named - addPageButtons- Lnet/minecraft/client/gui/screen/ingame/BookScreen;addPageButtons()V
 
- 
getPageCountprivate int getPageCount()- Mappings:
- Namespace - Name - Mixin selector - official - C- Levw;C()I- intermediary - method_17055- Lnet/minecraft/class_3872;method_17055()I- named - getPageCount- Lnet/minecraft/client/gui/screen/ingame/BookScreen;getPageCount()I
 
- 
goToPreviousPageprotected void goToPreviousPage()- Mappings:
- Namespace - Name - Mixin selector - official - D- Levw;D()V- intermediary - method_17057- Lnet/minecraft/class_3872;method_17057()V- named - goToPreviousPage- Lnet/minecraft/client/gui/screen/ingame/BookScreen;goToPreviousPage()V
 
- 
goToNextPageprotected void goToNextPage()- Mappings:
- Namespace - Name - Mixin selector - official - E- Levw;E()V- intermediary - method_17058- Lnet/minecraft/class_3872;method_17058()V- named - goToNextPage- Lnet/minecraft/client/gui/screen/ingame/BookScreen;goToNextPage()V
 
- 
updatePageButtonsprivate void updatePageButtons()- Mappings:
- Namespace - Name - Mixin selector - official - G- Levw;G()V- intermediary - method_17059- Lnet/minecraft/class_3872;method_17059()V- named - updatePageButtons- Lnet/minecraft/client/gui/screen/ingame/BookScreen;updatePageButtons()V
 
- 
keyPressedpublic boolean keyPressed(int keyCode, int scanCode, int modifiers) Callback for when a key down event has been captured. The key code is identified by the constants inGLFWclass.- Specified by:
- keyPressedin interface- Element
- Specified by:
- keyPressedin interface- ParentElement
- Overrides:
- keyPressedin class- Screen
- Parameters:
- keyCode- the named key code of the event as described in the- GLFWclass
- scanCode- the unique/platform-specific scan code of the keyboard input
- modifiers- a GLFW bitfield describing the modifier keys that are held down (see GLFW Modifier key flags)
- Returns:
- trueto indicate that the event handling is successful/valid
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - a- Leqt;a(III)Z- intermediary - method_25404- Lnet/minecraft/class_364;method_25404(III)Z- named - keyPressed- Lnet/minecraft/client/gui/Element;keyPressed(III)Z
 
- 
render- Specified by:
- renderin interface- Drawable
- Overrides:
- renderin class- Screen
- Mappings:
- Namespace - Name - Mixin selector - official - a- Leqh;a(Leox;IIF)V- intermediary - method_25394- Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_332;IIF)V- named - render- Lnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/gui/DrawContext;IIF)V
 
- 
mouseClickedpublic boolean mouseClicked(double mouseX, double mouseY, int button) Callback for when a mouse button down event has been captured. The button number is identified by the constants inGLFWclass.- Parameters:
- mouseX- the X coordinate of the mouse
- mouseY- the Y coordinate of the mouse
- button- the mouse button number
- Returns:
- trueto indicate that the event handling is successful/valid
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - a- Leqt;a(DDI)Z- intermediary - method_25402- Lnet/minecraft/class_364;method_25402(DDI)Z- named - mouseClicked- Lnet/minecraft/client/gui/Element;mouseClicked(DDI)Z
 
- 
handleTextClick- Overrides:
- handleTextClickin class- Screen
- Mappings:
- Namespace - Name - Mixin selector - official - a- Leuq;a(Lts;)Z- intermediary - method_25430- Lnet/minecraft/class_437;method_25430(Lnet/minecraft/class_2583;)Z- named - handleTextClick- Lnet/minecraft/client/gui/screen/Screen;handleTextClick(Lnet/minecraft/text/Style;)Z
 
- 
closeScreenprotected void closeScreen()- Mappings:
- Namespace - Name - Mixin selector - official - F- Levw;F()V- intermediary - method_34494- Lnet/minecraft/class_3872;method_34494()V- named - closeScreen- Lnet/minecraft/client/gui/screen/ingame/BookScreen;closeScreen()V
 
- 
getTextStyleAt- Mappings:
- Namespace - Name - Mixin selector - official - a- Levw;a(DD)Lts;- intermediary - method_17048- Lnet/minecraft/class_3872;method_17048(DD)Lnet/minecraft/class_2583;- named - getTextStyleAt- Lnet/minecraft/client/gui/screen/ingame/BookScreen;getTextStyleAt(DD)Lnet/minecraft/text/Style;
 
- 
readPages- Mappings:
- Namespace - Name - Mixin selector - official - a- Levw;a(Lqr;)Ljava/util/List;- intermediary - method_17555- Lnet/minecraft/class_3872;method_17555(Lnet/minecraft/class_2487;)Ljava/util/List;- named - readPages- Lnet/minecraft/client/gui/screen/ingame/BookScreen;readPages(Lnet/minecraft/nbt/NbtCompound;)Ljava/util/List;
 
- 
filterPages- Mappings:
- Namespace - Name - Mixin selector - official - a- Levw;a(Lqr;Ljava/util/function/Consumer;)V- intermediary - method_33888- Lnet/minecraft/class_3872;method_33888(Lnet/minecraft/class_2487;Ljava/util/function/Consumer;)V- named - filterPages- Lnet/minecraft/client/gui/screen/ingame/BookScreen;filterPages(Lnet/minecraft/nbt/NbtCompound;Ljava/util/function/Consumer;)V
 
 
-