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 named net/minecraft/client/gui/screen/ingame/BookScreenintermediary net/minecraft/class_3872official ggi
- 
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.client.gui.screen.Screen
Screen.SelectedElementNarrationData - 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Identifierprivate List<OrderedText> private intprivate BookScreen.Contentsstatic final BookScreen.Contentsstatic final intstatic final intstatic final intprivate static final intprivate static final intprotected static final intprotected static final intprotected static final intprivate PageTurnWidgetprivate intprivate Textprivate final booleanprivate PageTurnWidgetprivate static final Textprotected static final intFields inherited from class net.minecraft.client.gui.screen.Screen
client, executor, field_60460, FOOTER_SEPARATOR_TEXTURE, HEADER_SEPARATOR_TEXTURE, height, INWORLD_FOOTER_SEPARATOR_TEXTURE, INWORLD_HEADER_SEPARATOR_TEXTURE, MENU_BACKGROUND_TEXTURE, narratorToggleButton, textRenderer, title, widthFields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL - 
Constructor Summary
ConstructorsModifierConstructorDescriptionBookScreen(BookScreen.Contents pageProvider) privateBookScreen(BookScreen.Contents contents, boolean playPageTurnSound)  - 
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidprivate intprivate TextgetTextStyleAt(double x, double y) protected voidprotected voidprotected voidhandleClickEvent(MinecraftClient client, ClickEvent clickEvent) 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.protected voidbooleanmouseClicked(double mouseX, double mouseY, int button) Callback for when a mouse button down event has been captured.voidrender(DrawContext context, int mouseX, int mouseY, float deltaTicks) voidrenderBackground(DrawContext context, int mouseX, int mouseY, float deltaTicks) Renders the background of this screen.booleansetPage(int index) voidsetPageProvider(BookScreen.Contents pageProvider) private voidMethods inherited from class net.minecraft.client.gui.screen.Screen
addCrashReportSection, addDrawable, addDrawableChild, addElementNarrations, addScreenNarrations, addSelectableChild, applyBlur, applyKeyPressNarratorDelay, applyMouseMoveNarratorDelay, applyMousePressScrollNarratorDelay, blur, children, clearAndInit, clearChildren, close, findSelectedElementData, getMusic, getNavigationFocus, getTextRenderer, getTitle, getTooltipFromItem, getUsageNarrationText, handleBasicClickEvent, handleClickEvent, handleOpenUri, handleRunCommand, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, hasUsageText, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, narrateScreenIfNarrationEnabled, onDisplayed, onFilesDropped, refreshNarrator, refreshWidgetPositions, remove, removed, renderBackgroundTexture, renderDarkening, renderDarkening, renderInGameBackground, renderPanoramaBackground, renderWithTooltip, resize, setInitialFocus, setInitialFocus, setWidgetAlpha, shouldCloseOnEsc, shouldPause, showsStatusEffects, switchFocus, tick, updateNarratorMethods inherited from class net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocusedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.Element
getBorder, mouseMovedMethods inherited from interface net.minecraft.client.gui.navigation.Navigable
getNavigationOrderMethods inherited from interface net.minecraft.client.gui.ParentElement
charTyped, getFocusedPath, getNavigationPath, hoveredElement, isFocused, keyReleased, mouseDragged, mouseReleased, mouseScrolled, setFocused 
- 
Field Details
- 
field_32328
public static final int field_32328- See Also:
 - Mappings:
 Namespace Name Mixin selector named field_32328Lnet/minecraft/client/gui/screen/ingame/BookScreen;field_32328:Iintermediary field_32328Lnet/minecraft/class_3872;field_32328:Iofficial aLggi;a:I
 - 
field_32329
public static final int field_32329- See Also:
 - Mappings:
 Namespace Name Mixin selector named field_32329Lnet/minecraft/client/gui/screen/ingame/BookScreen;field_32329:Iintermediary field_32329Lnet/minecraft/class_3872;field_32329:Iofficial bLggi;b:I
 - 
field_32330
public static final int field_32330- See Also:
 - Mappings:
 Namespace Name Mixin selector named field_32330Lnet/minecraft/client/gui/screen/ingame/BookScreen;field_32330:Iintermediary field_32330Lnet/minecraft/class_3872;field_32330:Iofficial cLggi;c:I
 - 
field_52807
private static final int field_52807- See Also:
 - Mappings:
 Namespace Name Mixin selector named field_52807Lnet/minecraft/client/gui/screen/ingame/BookScreen;field_52807:Iintermediary field_52807Lnet/minecraft/class_3872;field_52807:Iofficial xLggi;x:I
 - 
field_52808
private static final int field_52808- See Also:
 - Mappings:
 Namespace Name Mixin selector named field_52808Lnet/minecraft/client/gui/screen/ingame/BookScreen;field_52808:Iintermediary field_52808Lnet/minecraft/class_3872;field_52808:Iofficial yLggi;y:I
 - 
TITLE_TEXT
- Mappings:
 Namespace Name Mixin selector named TITLE_TEXTLnet/minecraft/client/gui/screen/ingame/BookScreen;TITLE_TEXT:Lnet/minecraft/text/Text;intermediary field_60476Lnet/minecraft/class_3872;field_60476:Lnet/minecraft/class_2561;official zLggi;z:Lxo;
 - 
EMPTY_PROVIDER
- Mappings:
 Namespace Name Mixin selector named EMPTY_PROVIDERLnet/minecraft/client/gui/screen/ingame/BookScreen;EMPTY_PROVIDER:Lnet/minecraft/client/gui/screen/ingame/BookScreen$Contents;intermediary field_17417Lnet/minecraft/class_3872;field_17417:Lnet/minecraft/class_3872$class_3931;official dLggi;d:Lggi$a;
 - 
BOOK_TEXTURE
- Mappings:
 Namespace Name Mixin selector named BOOK_TEXTURELnet/minecraft/client/gui/screen/ingame/BookScreen;BOOK_TEXTURE:Lnet/minecraft/util/Identifier;intermediary field_17117Lnet/minecraft/class_3872;field_17117:Lnet/minecraft/class_2960;official eLggi;e:Lame;
 - 
MAX_TEXT_WIDTH
protected static final int MAX_TEXT_WIDTH- See Also:
 - Mappings:
 Namespace Name Mixin selector named MAX_TEXT_WIDTHLnet/minecraft/client/gui/screen/ingame/BookScreen;MAX_TEXT_WIDTH:Iintermediary field_32331Lnet/minecraft/class_3872;field_32331:Iofficial fLggi;f:I
 - 
MAX_TEXT_HEIGHT
protected static final int MAX_TEXT_HEIGHT- See Also:
 - Mappings:
 Namespace Name Mixin selector named MAX_TEXT_HEIGHTLnet/minecraft/client/gui/screen/ingame/BookScreen;MAX_TEXT_HEIGHT:Iintermediary field_32332Lnet/minecraft/class_3872;field_32332:Iofficial uLggi;u:I
 - 
WIDTH
protected static final int WIDTH- See Also:
 - Mappings:
 Namespace Name Mixin selector named WIDTHLnet/minecraft/client/gui/screen/ingame/BookScreen;WIDTH:Iintermediary field_32333Lnet/minecraft/class_3872;field_32333:Iofficial vLggi;v:I
 - 
HEIGHT
protected static final int HEIGHT- See Also:
 - Mappings:
 Namespace Name Mixin selector named HEIGHTLnet/minecraft/client/gui/screen/ingame/BookScreen;HEIGHT:Iintermediary field_32334Lnet/minecraft/class_3872;field_32334:Iofficial wLggi;w:I
 - 
contents
- Mappings:
 Namespace Name Mixin selector named contentsLnet/minecraft/client/gui/screen/ingame/BookScreen;contents:Lnet/minecraft/client/gui/screen/ingame/BookScreen$Contents;intermediary field_17418Lnet/minecraft/class_3872;field_17418:Lnet/minecraft/class_3872$class_3931;official ALggi;A:Lggi$a;
 - 
pageIndex
private int pageIndex- Mappings:
 Namespace Name Mixin selector named pageIndexLnet/minecraft/client/gui/screen/ingame/BookScreen;pageIndex:Iintermediary field_17119Lnet/minecraft/class_3872;field_17119:Iofficial BLggi;B:I
 - 
cachedPage
- Mappings:
 Namespace Name Mixin selector named cachedPageLnet/minecraft/client/gui/screen/ingame/BookScreen;cachedPage:Ljava/util/List;intermediary field_17120Lnet/minecraft/class_3872;field_17120:Ljava/util/List;official CLggi;C:Ljava/util/List;
 - 
cachedPageIndex
private int cachedPageIndex- Mappings:
 Namespace Name Mixin selector named cachedPageIndexLnet/minecraft/client/gui/screen/ingame/BookScreen;cachedPageIndex:Iintermediary field_17121Lnet/minecraft/class_3872;field_17121:Iofficial DLggi;D:I
 - 
pageIndexText
- Mappings:
 Namespace Name Mixin selector named pageIndexTextLnet/minecraft/client/gui/screen/ingame/BookScreen;pageIndexText:Lnet/minecraft/text/Text;intermediary field_25897Lnet/minecraft/class_3872;field_25897:Lnet/minecraft/class_2561;official ELggi;E:Lxo;
 - 
nextPageButton
- Mappings:
 Namespace Name Mixin selector named nextPageButtonLnet/minecraft/client/gui/screen/ingame/BookScreen;nextPageButton:Lnet/minecraft/client/gui/widget/PageTurnWidget;intermediary field_17122Lnet/minecraft/class_3872;field_17122:Lnet/minecraft/class_474;official FLggi;F:Lghj;
 - 
previousPageButton
- Mappings:
 Namespace Name Mixin selector named previousPageButtonLnet/minecraft/client/gui/screen/ingame/BookScreen;previousPageButton:Lnet/minecraft/client/gui/widget/PageTurnWidget;intermediary field_17123Lnet/minecraft/class_3872;field_17123:Lnet/minecraft/class_474;official GLggi;G:Lghj;
 - 
pageTurnSound
private final boolean pageTurnSound- Mappings:
 Namespace Name Mixin selector named pageTurnSoundLnet/minecraft/client/gui/screen/ingame/BookScreen;pageTurnSound:Zintermediary field_18976Lnet/minecraft/class_3872;field_18976:Zofficial HLggi;H:Z
 
 - 
 - 
Constructor Details
- 
BookScreen
- Mappings:
 Namespace Name Mixin selector named <init>Lnet/minecraft/client/gui/screen/ingame/BookScreen;<init>(Lnet/minecraft/client/gui/screen/ingame/BookScreen$Contents;)Vintermediary <init>Lnet/minecraft/class_3872;<init>(Lnet/minecraft/class_3872$class_3931;)Vofficial <init>Lggi;<init>(Lggi$a;)V
 - 
BookScreen
public BookScreen() - 
BookScreen
- Mappings:
 Namespace Name Mixin selector named <init>Lnet/minecraft/client/gui/screen/ingame/BookScreen;<init>(Lnet/minecraft/client/gui/screen/ingame/BookScreen$Contents;Z)Vintermediary <init>Lnet/minecraft/class_3872;<init>(Lnet/minecraft/class_3872$class_3931;Z)Vofficial <init>Lggi;<init>(Lggi$a;Z)V
 
 - 
 - 
Method Details
- 
setPageProvider
- Mappings:
 Namespace Name Mixin selector named setPageProviderLnet/minecraft/client/gui/screen/ingame/BookScreen;setPageProvider(Lnet/minecraft/client/gui/screen/ingame/BookScreen$Contents;)Vintermediary method_17554Lnet/minecraft/class_3872;method_17554(Lnet/minecraft/class_3872$class_3931;)Vofficial aLggi;a(Lggi$a;)V
 - 
setPage
public boolean setPage(int index) - Mappings:
 Namespace Name Mixin selector named setPageLnet/minecraft/client/gui/screen/ingame/BookScreen;setPage(I)Zintermediary method_17556Lnet/minecraft/class_3872;method_17556(I)Zofficial aLggi;a(I)Z
 - 
jumpToPage
protected boolean jumpToPage(int page) - Mappings:
 Namespace Name Mixin selector named jumpToPageLnet/minecraft/client/gui/screen/ingame/BookScreen;jumpToPage(I)Zintermediary method_17789Lnet/minecraft/class_3872;method_17789(I)Zofficial bLggi;b(I)Z
 - 
init
protected void init()Called when a screen should be initialized.This method is called when this screen is opened or resized.
 - 
getNarratedTitle
- Overrides:
 getNarratedTitlein classScreen- Mappings:
 Namespace Name Mixin selector named getNarratedTitleLnet/minecraft/client/gui/screen/Screen;getNarratedTitle()Lnet/minecraft/text/Text;intermediary method_25435Lnet/minecraft/class_437;method_25435()Lnet/minecraft/class_2561;official iLget;i()Lxo;
 - 
getPageIndicatorText
- Mappings:
 Namespace Name Mixin selector named getPageIndicatorTextLnet/minecraft/client/gui/screen/ingame/BookScreen;getPageIndicatorText()Lnet/minecraft/text/Text;intermediary method_71545Lnet/minecraft/class_3872;method_71545()Lnet/minecraft/class_2561;official nLggi;n()Lxo;
 - 
addCloseButton
protected void addCloseButton()- Mappings:
 Namespace Name Mixin selector named addCloseButtonLnet/minecraft/client/gui/screen/ingame/BookScreen;addCloseButton()Vintermediary method_17557Lnet/minecraft/class_3872;method_17557()Vofficial lLggi;l()V
 - 
addPageButtons
protected void addPageButtons()- Mappings:
 Namespace Name Mixin selector named addPageButtonsLnet/minecraft/client/gui/screen/ingame/BookScreen;addPageButtons()Vintermediary method_17558Lnet/minecraft/class_3872;method_17558()Vofficial mLggi;m()V
 - 
getPageCount
private int getPageCount()- Mappings:
 Namespace Name Mixin selector named getPageCountLnet/minecraft/client/gui/screen/ingame/BookScreen;getPageCount()Iintermediary method_17055Lnet/minecraft/class_3872;method_17055()Iofficial HLggi;H()I
 - 
goToPreviousPage
protected void goToPreviousPage()- Mappings:
 Namespace Name Mixin selector named goToPreviousPageLnet/minecraft/client/gui/screen/ingame/BookScreen;goToPreviousPage()Vintermediary method_17057Lnet/minecraft/class_3872;method_17057()Vofficial ELggi;E()V
 - 
goToNextPage
protected void goToNextPage()- Mappings:
 Namespace Name Mixin selector named goToNextPageLnet/minecraft/client/gui/screen/ingame/BookScreen;goToNextPage()Vintermediary method_17058Lnet/minecraft/class_3872;method_17058()Vofficial FLggi;F()V
 - 
updatePageButtons
private void updatePageButtons()- Mappings:
 Namespace Name Mixin selector named updatePageButtonsLnet/minecraft/client/gui/screen/ingame/BookScreen;updatePageButtons()Vintermediary method_17059Lnet/minecraft/class_3872;method_17059()Vofficial KLggi;K()V
 - 
keyPressed
public 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 interfaceElement- Specified by:
 keyPressedin interfaceParentElement- Overrides:
 keyPressedin classScreen- Parameters:
 keyCode- the named key code of the event as described in theGLFWclassscanCode- the unique/platform-specific scan code of the keyboard inputmodifiers- 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 named keyPressedLnet/minecraft/client/gui/Element;keyPressed(III)Zintermediary method_25404Lnet/minecraft/class_364;method_25404(III)Zofficial aLfzn;a(III)Z
 - 
render
- Specified by:
 renderin interfaceDrawable- Overrides:
 renderin classScreen- Mappings:
 Namespace Name Mixin selector named renderLnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/gui/DrawContext;IIF)Vintermediary method_25394Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_332;IIF)Vofficial aLfys;a(Lfxb;IIF)V
 - 
renderBackground
Renders the background of this screen.If the client is in a world, renders the translucent background gradient. Otherwise renders the background texture.
- Overrides:
 renderBackgroundin classScreen- Mappings:
 Namespace Name Mixin selector named renderBackgroundLnet/minecraft/client/gui/screen/Screen;renderBackground(Lnet/minecraft/client/gui/DrawContext;IIF)Vintermediary method_25420Lnet/minecraft/class_437;method_25420(Lnet/minecraft/class_332;IIF)Vofficial bLget;b(Lfxb;IIF)V
 - 
mouseClicked
public 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 mousemouseY- the Y coordinate of the mousebutton- the mouse button number- Returns:
 trueto indicate that the event handling is successful/valid- See Also:
 - Mappings:
 Namespace Name Mixin selector named mouseClickedLnet/minecraft/client/gui/Element;mouseClicked(DDI)Zintermediary method_25402Lnet/minecraft/class_364;method_25402(DDI)Zofficial aLfzn;a(DDI)Z
 - 
handleClickEvent
- Overrides:
 handleClickEventin classScreen- Mappings:
 Namespace Name Mixin selector named handleClickEventLnet/minecraft/client/gui/screen/Screen;handleClickEvent(Lnet/minecraft/client/MinecraftClient;Lnet/minecraft/text/ClickEvent;)Vintermediary method_71846Lnet/minecraft/class_437;method_71846(Lnet/minecraft/class_310;Lnet/minecraft/class_2558;)Vofficial aLget;a(Lfue;Lxm;)V
 - 
method_72151
protected void method_72151()- Mappings:
 Namespace Name Mixin selector named method_72151Lnet/minecraft/client/gui/screen/ingame/BookScreen;method_72151()Vintermediary method_72151Lnet/minecraft/class_3872;method_72151()Vofficial GLggi;G()V
 - 
getTextStyleAt
- Mappings:
 Namespace Name Mixin selector named getTextStyleAtLnet/minecraft/client/gui/screen/ingame/BookScreen;getTextStyleAt(DD)Lnet/minecraft/text/Style;intermediary method_17048Lnet/minecraft/class_3872;method_17048(DD)Lnet/minecraft/class_2583;official bLggi;b(DD)Lyl;
 
 -