Class BookScreen
java.lang.Object
net.minecraft.client.gui.DrawableHelper
net.minecraft.client.gui.AbstractParentElement
net.minecraft.client.gui.screen.Screen
net.minecraft.client.gui.screen.ingame.BookScreen
- All Implemented Interfaces:
Drawable
,Element
,ParentElement
- Direct Known Subclasses:
LecternScreen
- Mappings:
Namespace Name official eqg
intermediary net/minecraft/class_3872
named net/minecraft/client/gui/screen/ingame/BookScreen
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
static class
static class
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, height, itemRenderer, passEvents, textRenderer, title, width
Fields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
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
static void
filterPages
(NbtCompound nbt, Consumer<String> pageConsumer) 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.readPages
(NbtCompound nbt) void
render
(MatrixStack matrices, int mouseX, int mouseY, float delta) 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, applyKeyPressNarratorDelay, applyMouseMoveNarratorDelay, applyMousePressScrollNarratorDelay, applyNarratorModeChangeDelay, children, clearAndInit, clearChildren, close, filesDragged, findSelectedElementData, getNarratedTitle, getTitle, getTooltipFromItem, hasAltDown, hasControlDown, hasShiftDown, hide, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, narrateScreenIfNarrationEnabled, remove, removed, renderBackground, renderBackground, renderBackgroundTexture, renderOrderedTooltip, renderTextHoverEffect, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderWithTooltip, resize, setTooltip, setTooltip, setTooltip, setTooltip, shouldCloseOnEsc, shouldPause, tick, updateNarrator, wrapScreenError
Methods inherited from class net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocused
Methods inherited from class net.minecraft.client.gui.DrawableHelper
disableScissor, drawCenteredText, drawCenteredText, drawCenteredTextWithShadow, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, drawWithOutline, drawWithShadow, enableScissor, fill, fillGradient, fillGradient, fillGradient, getZOffset, setZOffset
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.ParentElement
changeFocus, charTyped, focusOn, hoveredElement, keyReleased, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus
-
Field Details
-
field_32328
public static final int field_32328- See Also:
- Mappings:
Namespace Name Mixin selector official a
Leqg;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_32329
public static final int field_32329- See Also:
- Mappings:
Namespace Name Mixin selector official b
Leqg;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_32330
public static final int field_32330- See Also:
- Mappings:
Namespace Name Mixin selector official c
Leqg;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 n
Leqg;n:Leqg$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 o
Leqg;o:Lacf;
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_WIDTH
protected static final int MAX_TEXT_WIDTH- See Also:
- Mappings:
Namespace Name Mixin selector official p
Leqg;p: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_HEIGHT
protected static final int MAX_TEXT_HEIGHT- See Also:
- Mappings:
Namespace Name Mixin selector official q
Leqg;q: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
-
WIDTH
protected static final int WIDTH- See Also:
- Mappings:
Namespace Name Mixin selector official r
Leqg;r:I
intermediary field_32333
Lnet/minecraft/class_3872;field_32333:I
named WIDTH
Lnet/minecraft/client/gui/screen/ingame/BookScreen;WIDTH:I
-
HEIGHT
protected static final int HEIGHT- See Also:
- Mappings:
Namespace Name Mixin selector official s
Leqg;s: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 t
Leqg;t:Leqg$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;
-
pageIndex
private int pageIndex- Mappings:
Namespace Name Mixin selector official u
Leqg;u: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 v
Leqg;v: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;
-
cachedPageIndex
private int cachedPageIndex- Mappings:
Namespace Name Mixin selector official w
Leqg;w: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 x
Leqg;x:Lss;
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 y
Leqg;y:Lerf;
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 z
Leqg;z:Lerf;
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;
-
pageTurnSound
private final boolean pageTurnSound- Mappings:
Namespace Name Mixin selector official A
Leqg;A: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>
Leqg;<init>(Leqg$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
-
BookScreen
public BookScreen() -
BookScreen
- Mappings:
Namespace Name Mixin selector official <init>
Leqg;<init>(Leqg$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
Leqg;a(Leqg$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
-
setPage
public boolean setPage(int index) - Mappings:
Namespace Name Mixin selector official a
Leqg;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
-
jumpToPage
protected boolean jumpToPage(int page) - Mappings:
Namespace Name Mixin selector official b
Leqg;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
-
init
protected void init()Called when a screen should be initialized.This method is called when this screen is opened or resized.
-
addCloseButton
protected void addCloseButton()- Mappings:
Namespace Name Mixin selector official i
Leqg;i()V
intermediary method_17557
Lnet/minecraft/class_3872;method_17557()V
named addCloseButton
Lnet/minecraft/client/gui/screen/ingame/BookScreen;addCloseButton()V
-
addPageButtons
protected void addPageButtons()- Mappings:
Namespace Name Mixin selector official w
Leqg;w()V
intermediary method_17558
Lnet/minecraft/class_3872;method_17558()V
named addPageButtons
Lnet/minecraft/client/gui/screen/ingame/BookScreen;addPageButtons()V
-
getPageCount
private int getPageCount()- Mappings:
Namespace Name Mixin selector official x
Leqg;x()I
intermediary method_17055
Lnet/minecraft/class_3872;method_17055()I
named getPageCount
Lnet/minecraft/client/gui/screen/ingame/BookScreen;getPageCount()I
-
goToPreviousPage
protected void goToPreviousPage()- Mappings:
Namespace Name Mixin selector official y
Leqg;y()V
intermediary method_17057
Lnet/minecraft/class_3872;method_17057()V
named goToPreviousPage
Lnet/minecraft/client/gui/screen/ingame/BookScreen;goToPreviousPage()V
-
goToNextPage
protected void goToNextPage()- Mappings:
Namespace Name Mixin selector official z
Leqg;z()V
intermediary method_17058
Lnet/minecraft/class_3872;method_17058()V
named goToNextPage
Lnet/minecraft/client/gui/screen/ingame/BookScreen;goToNextPage()V
-
updatePageButtons
private void updatePageButtons()- Mappings:
Namespace Name Mixin selector official B
Leqg;B()V
intermediary method_17059
Lnet/minecraft/class_3872;method_17059()V
named updatePageButtons
Lnet/minecraft/client/gui/screen/ingame/BookScreen;updatePageButtons()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 official a
Lemg;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:
render
in interfaceDrawable
- Overrides:
render
in classScreen
- Mappings:
Namespace Name Mixin selector official a
Lely;a(Leed;IIF)V
intermediary method_25394
Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_4587;IIF)V
named render
Lnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/util/math/MatrixStack;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 official a
Lemg;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:
handleTextClick
in classScreen
- Mappings:
Namespace Name Mixin selector official a
Lepb;a(Lto;)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
-
closeScreen
protected void closeScreen()- Mappings:
Namespace Name Mixin selector official A
Leqg;A()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
Leqg;a(DD)Lto;
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
Leqg;a(Lqp;)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
Leqg;a(Lqp;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
-