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/BookScreen
intermediary net/minecraft/class_3872
official foj
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.screen.Screen
Screen.SelectedElementNarrationData
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Identifier
private List
<OrderedText> private int
private BookScreen.Contents
static final BookScreen.Contents
static final int
static final int
static final int
protected static final int
protected static final int
protected static final int
private PageTurnWidget
private int
private Text
private final boolean
private PageTurnWidget
protected static final int
Fields inherited from class net.minecraft.client.gui.screen.Screen
client, executor, FOOTER_SEPARATOR_TEXTURE, HEADER_SEPARATOR_TEXTURE, height, INWORLD_FOOTER_SEPARATOR_TEXTURE, INWORLD_HEADER_SEPARATOR_TEXTURE, MENU_BACKGROUND_TEXTURE, PANORAMA_RENDERER, ROTATING_PANORAMA_RENDERER, textRenderer, title, width
Fields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL
-
Constructor Summary
ModifierConstructorDescriptionBookScreen
(BookScreen.Contents pageProvider) private
BookScreen
(BookScreen.Contents contents, boolean playPageTurnSound) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
protected void
private int
getTextStyleAt
(double x, double y) protected void
protected void
boolean
handleTextClick
(Style style) protected void
init()
Called when a screen should be initialized.protected boolean
jumpToPage
(int page) boolean
keyPressed
(int keyCode, int scanCode, int modifiers) Callback for when a key down event has been captured.boolean
mouseClicked
(double mouseX, double mouseY, int button) Callback for when a mouse button down event has been captured.void
render
(DrawContext context, int mouseX, int mouseY, float delta) void
renderBackground
(DrawContext context, int mouseX, int mouseY, float delta) Renders the background of this screen.boolean
setPage
(int index) void
setPageProvider
(BookScreen.Contents pageProvider) private void
Methods inherited from class net.minecraft.client.gui.screen.Screen
addDrawable, addDrawableChild, addElementNarrations, addScreenNarrations, addSelectableChild, applyBlur, applyKeyPressNarratorDelay, applyMouseMoveNarratorDelay, applyMousePressScrollNarratorDelay, applyNarratorModeChangeDelay, blur, children, clearAndInit, clearChildren, clearTooltip, close, filesDragged, findSelectedElementData, getMusic, getNarratedTitle, getNavigationFocus, getPanoramaTickDelta, getTitle, getTooltipFromItem, getUsageNarrationText, hasAltDown, hasControlDown, hasShiftDown, hasUsageText, init, initTabNavigation, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, narrateScreenIfNarrationEnabled, onDisplayed, remove, removed, renderBackgroundTexture, renderDarkening, renderDarkening, renderInGameBackground, renderPanoramaBackground, renderWithTooltip, resize, setInitialFocus, setInitialFocus, setTooltip, setTooltip, setTooltip, setTooltip, shouldCloseOnEsc, shouldPause, switchFocus, tick, updateNarrator, wrapScreenError
Methods inherited from class net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocused
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.Element
mouseMoved
Methods inherited from interface net.minecraft.client.gui.navigation.Navigable
getNavigationOrder
Methods 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_32328
Lnet/minecraft/client/gui/screen/ingame/BookScreen;field_32328:I
intermediary field_32328
Lnet/minecraft/class_3872;field_32328:I
official a
Lfoj;a:I
-
field_32329
public static final int field_32329- See Also:
- Mappings:
Namespace Name Mixin selector named field_32329
Lnet/minecraft/client/gui/screen/ingame/BookScreen;field_32329:I
intermediary field_32329
Lnet/minecraft/class_3872;field_32329:I
official b
Lfoj;b:I
-
field_32330
public static final int field_32330- See Also:
- Mappings:
Namespace Name Mixin selector named field_32330
Lnet/minecraft/client/gui/screen/ingame/BookScreen;field_32330:I
intermediary field_32330
Lnet/minecraft/class_3872;field_32330:I
official c
Lfoj;c:I
-
EMPTY_PROVIDER
- Mappings:
Namespace Name Mixin selector named EMPTY_PROVIDER
Lnet/minecraft/client/gui/screen/ingame/BookScreen;EMPTY_PROVIDER:Lnet/minecraft/client/gui/screen/ingame/BookScreen$Contents;
intermediary field_17417
Lnet/minecraft/class_3872;field_17417:Lnet/minecraft/class_3872$class_3931;
official d
Lfoj;d:Lfoj$a;
-
BOOK_TEXTURE
- Mappings:
Namespace Name Mixin selector named BOOK_TEXTURE
Lnet/minecraft/client/gui/screen/ingame/BookScreen;BOOK_TEXTURE:Lnet/minecraft/util/Identifier;
intermediary field_17117
Lnet/minecraft/class_3872;field_17117:Lnet/minecraft/class_2960;
official r
Lfoj;r:Lalf;
-
MAX_TEXT_WIDTH
protected static final int MAX_TEXT_WIDTH- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_TEXT_WIDTH
Lnet/minecraft/client/gui/screen/ingame/BookScreen;MAX_TEXT_WIDTH:I
intermediary field_32331
Lnet/minecraft/class_3872;field_32331:I
official s
Lfoj;s:I
-
MAX_TEXT_HEIGHT
protected static final int MAX_TEXT_HEIGHT- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_TEXT_HEIGHT
Lnet/minecraft/client/gui/screen/ingame/BookScreen;MAX_TEXT_HEIGHT:I
intermediary field_32332
Lnet/minecraft/class_3872;field_32332:I
official u
Lfoj;u:I
-
WIDTH
protected static final int WIDTH- See Also:
- Mappings:
Namespace Name Mixin selector named WIDTH
Lnet/minecraft/client/gui/screen/ingame/BookScreen;WIDTH:I
intermediary field_32333
Lnet/minecraft/class_3872;field_32333:I
official v
Lfoj;v:I
-
HEIGHT
protected static final int HEIGHT- See Also:
- Mappings:
Namespace Name Mixin selector named HEIGHT
Lnet/minecraft/client/gui/screen/ingame/BookScreen;HEIGHT:I
intermediary field_32334
Lnet/minecraft/class_3872;field_32334:I
official w
Lfoj;w:I
-
contents
- Mappings:
Namespace Name Mixin selector named contents
Lnet/minecraft/client/gui/screen/ingame/BookScreen;contents:Lnet/minecraft/client/gui/screen/ingame/BookScreen$Contents;
intermediary field_17418
Lnet/minecraft/class_3872;field_17418:Lnet/minecraft/class_3872$class_3931;
official x
Lfoj;x:Lfoj$a;
-
pageIndex
private int pageIndex- Mappings:
Namespace Name Mixin selector named pageIndex
Lnet/minecraft/client/gui/screen/ingame/BookScreen;pageIndex:I
intermediary field_17119
Lnet/minecraft/class_3872;field_17119:I
official y
Lfoj;y:I
-
cachedPage
- Mappings:
Namespace Name Mixin selector named cachedPage
Lnet/minecraft/client/gui/screen/ingame/BookScreen;cachedPage:Ljava/util/List;
intermediary field_17120
Lnet/minecraft/class_3872;field_17120:Ljava/util/List;
official z
Lfoj;z:Ljava/util/List;
-
cachedPageIndex
private int cachedPageIndex- Mappings:
Namespace Name Mixin selector named cachedPageIndex
Lnet/minecraft/client/gui/screen/ingame/BookScreen;cachedPageIndex:I
intermediary field_17121
Lnet/minecraft/class_3872;field_17121:I
official A
Lfoj;A:I
-
pageIndexText
- Mappings:
Namespace Name Mixin selector named pageIndexText
Lnet/minecraft/client/gui/screen/ingame/BookScreen;pageIndexText:Lnet/minecraft/text/Text;
intermediary field_25897
Lnet/minecraft/class_3872;field_25897:Lnet/minecraft/class_2561;
official B
Lfoj;B:Lxp;
-
nextPageButton
- Mappings:
Namespace Name Mixin selector named nextPageButton
Lnet/minecraft/client/gui/screen/ingame/BookScreen;nextPageButton:Lnet/minecraft/client/gui/widget/PageTurnWidget;
intermediary field_17122
Lnet/minecraft/class_3872;field_17122:Lnet/minecraft/class_474;
official C
Lfoj;C:Lfpl;
-
previousPageButton
- Mappings:
Namespace Name Mixin selector named previousPageButton
Lnet/minecraft/client/gui/screen/ingame/BookScreen;previousPageButton:Lnet/minecraft/client/gui/widget/PageTurnWidget;
intermediary field_17123
Lnet/minecraft/class_3872;field_17123:Lnet/minecraft/class_474;
official D
Lfoj;D:Lfpl;
-
pageTurnSound
private final boolean pageTurnSound- Mappings:
Namespace Name Mixin selector named pageTurnSound
Lnet/minecraft/client/gui/screen/ingame/BookScreen;pageTurnSound:Z
intermediary field_18976
Lnet/minecraft/class_3872;field_18976:Z
official E
Lfoj;E: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;)V
intermediary <init>
Lnet/minecraft/class_3872;<init>(Lnet/minecraft/class_3872$class_3931;)V
official <init>
Lfoj;<init>(Lfoj$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)V
intermediary <init>
Lnet/minecraft/class_3872;<init>(Lnet/minecraft/class_3872$class_3931;Z)V
official <init>
Lfoj;<init>(Lfoj$a;Z)V
-
-
Method Details
-
setPageProvider
- Mappings:
Namespace Name Mixin selector named setPageProvider
Lnet/minecraft/client/gui/screen/ingame/BookScreen;setPageProvider(Lnet/minecraft/client/gui/screen/ingame/BookScreen$Contents;)V
intermediary method_17554
Lnet/minecraft/class_3872;method_17554(Lnet/minecraft/class_3872$class_3931;)V
official a
Lfoj;a(Lfoj$a;)V
-
setPage
public boolean setPage(int index) - Mappings:
Namespace Name Mixin selector named setPage
Lnet/minecraft/client/gui/screen/ingame/BookScreen;setPage(I)Z
intermediary method_17556
Lnet/minecraft/class_3872;method_17556(I)Z
official a
Lfoj;a(I)Z
-
jumpToPage
protected boolean jumpToPage(int page) - Mappings:
Namespace Name Mixin selector named jumpToPage
Lnet/minecraft/client/gui/screen/ingame/BookScreen;jumpToPage(I)Z
intermediary method_17789
Lnet/minecraft/class_3872;method_17789(I)Z
official b
Lfoj;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.
This should call
Screen.setInitialFocus()
to set the element that is initially focused. -
addCloseButton
protected void addCloseButton()- Mappings:
Namespace Name Mixin selector named addCloseButton
Lnet/minecraft/client/gui/screen/ingame/BookScreen;addCloseButton()V
intermediary method_17557
Lnet/minecraft/class_3872;method_17557()V
official m
Lfoj;m()V
-
addPageButtons
protected void addPageButtons()- Mappings:
Namespace Name Mixin selector named addPageButtons
Lnet/minecraft/client/gui/screen/ingame/BookScreen;addPageButtons()V
intermediary method_17558
Lnet/minecraft/class_3872;method_17558()V
official E
Lfoj;E()V
-
getPageCount
private int getPageCount()- Mappings:
Namespace Name Mixin selector named getPageCount
Lnet/minecraft/client/gui/screen/ingame/BookScreen;getPageCount()I
intermediary method_17055
Lnet/minecraft/class_3872;method_17055()I
official F
Lfoj;F()I
-
goToPreviousPage
protected void goToPreviousPage()- Mappings:
Namespace Name Mixin selector named goToPreviousPage
Lnet/minecraft/client/gui/screen/ingame/BookScreen;goToPreviousPage()V
intermediary method_17057
Lnet/minecraft/class_3872;method_17057()V
official I
Lfoj;I()V
-
goToNextPage
protected void goToNextPage()- Mappings:
Namespace Name Mixin selector named goToNextPage
Lnet/minecraft/client/gui/screen/ingame/BookScreen;goToNextPage()V
intermediary method_17058
Lnet/minecraft/class_3872;method_17058()V
official J
Lfoj;J()V
-
updatePageButtons
private void updatePageButtons()- Mappings:
Namespace Name Mixin selector named updatePageButtons
Lnet/minecraft/client/gui/screen/ingame/BookScreen;updatePageButtons()V
intermediary method_17059
Lnet/minecraft/class_3872;method_17059()V
official L
Lfoj;L()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 inGLFW
class.- Specified by:
keyPressed
in interfaceElement
- Specified by:
keyPressed
in interfaceParentElement
- Overrides:
keyPressed
in classScreen
- Parameters:
keyCode
- the named key code of the event as described in theGLFW
classscanCode
- 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:
true
to indicate that the event handling is successful/valid- See Also:
- Mappings:
Namespace Name Mixin selector named keyPressed
Lnet/minecraft/client/gui/Element;keyPressed(III)Z
intermediary method_25404
Lnet/minecraft/class_364;method_25404(III)Z
official a
Lfjb;a(III)Z
-
render
- Specified by:
render
in interfaceDrawable
- Overrides:
render
in classScreen
- Mappings:
Namespace Name Mixin selector named render
Lnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/gui/DrawContext;IIF)V
intermediary method_25394
Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_332;IIF)V
official a
Lfii;a(Lfgs;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:
renderBackground
in classScreen
- Mappings:
Namespace Name Mixin selector named renderBackground
Lnet/minecraft/client/gui/screen/Screen;renderBackground(Lnet/minecraft/client/gui/DrawContext;IIF)V
intermediary method_25420
Lnet/minecraft/class_437;method_25420(Lnet/minecraft/class_332;IIF)V
official b
Lfne;b(Lfgs;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 inGLFW
class.- Parameters:
mouseX
- the X coordinate of the mousemouseY
- the Y coordinate of the mousebutton
- the mouse button number- Returns:
true
to indicate that the event handling is successful/valid- See Also:
- Mappings:
Namespace Name Mixin selector named mouseClicked
Lnet/minecraft/client/gui/Element;mouseClicked(DDI)Z
intermediary method_25402
Lnet/minecraft/class_364;method_25402(DDI)Z
official a
Lfjb;a(DDI)Z
-
handleTextClick
- Overrides:
handleTextClick
in classScreen
- Mappings:
Namespace Name Mixin selector named handleTextClick
Lnet/minecraft/client/gui/screen/Screen;handleTextClick(Lnet/minecraft/text/Style;)Z
intermediary method_25430
Lnet/minecraft/class_437;method_25430(Lnet/minecraft/class_2583;)Z
official a
Lfne;a(Lym;)Z
-
closeScreen
protected void closeScreen()- Mappings:
Namespace Name Mixin selector named closeScreen
Lnet/minecraft/client/gui/screen/ingame/BookScreen;closeScreen()V
intermediary method_34494
Lnet/minecraft/class_3872;method_34494()V
official K
Lfoj;K()V
-
getTextStyleAt
- Mappings:
Namespace Name Mixin selector named getTextStyleAt
Lnet/minecraft/client/gui/screen/ingame/BookScreen;getTextStyleAt(DD)Lnet/minecraft/text/Style;
intermediary method_17048
Lnet/minecraft/class_3872;method_17048(DD)Lnet/minecraft/class_2583;
official b
Lfoj;b(DD)Lym;
-