Class BookEditScreen
java.lang.Object
net.minecraft.client.gui.AbstractParentElement
net.minecraft.client.gui.screen.Screen
net.minecraft.client.gui.screen.ingame.BookEditScreen
- All Implemented Interfaces:
Drawable
,Element
,Navigable
,ParentElement
- Mappings:
Namespace Name named net/minecraft/client/gui/screen/ingame/BookEditScreen
intermediary net/minecraft/class_473
official ggf
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.screen.Screen
Screen.SelectedElementNarrationData
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private EditBoxWidget
static final int
static final int
private final Hand
static final int
static final int
static final int
private PageTurnWidget
private Text
private final PlayerEntity
private PageTurnWidget
private final BookSigningScreen
private final ItemStack
private static final Text
static final int
Fields 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, width
Fields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL
-
Constructor Summary
ConstructorsConstructorDescriptionBookEditScreen
(PlayerEntity player, ItemStack stack, Hand hand, WritableBookContentComponent writableBookContent) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
private int
private void
private Text
protected void
init()
Called when a screen should be initialized.boolean
keyPressed
(int keyCode, int scanCode, int modifiers) Callback for when a key down event has been captured.private void
private void
private void
void
render
(DrawContext context, int mouseX, int mouseY, float deltaTicks) void
renderBackground
(DrawContext context, int mouseX, int mouseY, float deltaTicks) Renders the background of this screen.protected void
This should be overridden with a call toScreen.setInitialFocus(Element)
to set the element that is initially focused.private void
private void
private void
Methods 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, 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, setWidgetAlpha, shouldCloseOnEsc, shouldPause, showsStatusEffects, switchFocus, tick, updateNarrator
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
getBorder, 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, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setFocused
-
Field Details
-
MAX_TEXT_WIDTH
public static final int MAX_TEXT_WIDTH- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_TEXT_WIDTH
Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;MAX_TEXT_WIDTH:I
intermediary field_32323
Lnet/minecraft/class_473;field_32323:I
official a
Lggf;a:I
-
MAX_TEXT_HEIGHT
public static final int MAX_TEXT_HEIGHT- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_TEXT_HEIGHT
Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;MAX_TEXT_HEIGHT:I
intermediary field_32324
Lnet/minecraft/class_473;field_32324:I
official b
Lggf;b:I
-
WIDTH
public static final int WIDTH- See Also:
- Mappings:
Namespace Name Mixin selector named WIDTH
Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;WIDTH:I
intermediary field_32326
Lnet/minecraft/class_473;field_32326:I
official c
Lggf;c:I
-
HEIGHT
public static final int HEIGHT- See Also:
- Mappings:
Namespace Name Mixin selector named HEIGHT
Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;HEIGHT:I
intermediary field_32327
Lnet/minecraft/class_473;field_32327:I
official d
Lggf;d:I
-
field_52805
public static final int field_52805- See Also:
- Mappings:
Namespace Name Mixin selector named field_52805
Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;field_52805:I
intermediary field_52805
Lnet/minecraft/class_473;field_52805:I
official e
Lggf;e:I
-
field_52806
public static final int field_52806- See Also:
- Mappings:
Namespace Name Mixin selector named field_52806
Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;field_52806:I
intermediary field_52806
Lnet/minecraft/class_473;field_52806:I
official f
Lggf;f:I
-
TITLE_TEXT
- Mappings:
Namespace Name Mixin selector named TITLE_TEXT
Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;TITLE_TEXT:Lnet/minecraft/text/Text;
intermediary field_60463
Lnet/minecraft/class_473;field_60463:Lnet/minecraft/class_2561;
official u
Lggf;u:Lxo;
-
player
- Mappings:
Namespace Name Mixin selector named player
Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;player:Lnet/minecraft/entity/player/PlayerEntity;
intermediary field_2826
Lnet/minecraft/class_473;field_2826:Lnet/minecraft/class_1657;
official v
Lggf;v:Lcut;
-
stack
- Mappings:
Namespace Name Mixin selector named stack
Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;stack:Lnet/minecraft/item/ItemStack;
intermediary field_2835
Lnet/minecraft/class_473;field_2835:Lnet/minecraft/class_1799;
official w
Lggf;w:Ldcv;
-
signingScreen
- Mappings:
Namespace Name Mixin selector named signingScreen
Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;signingScreen:Lnet/minecraft/client/gui/screen/ingame/BookSigningScreen;
intermediary field_60464
Lnet/minecraft/class_473;field_60464:Lnet/minecraft/class_11385;
official x
Lggf;x:Lggg;
-
currentPage
private int currentPage- Mappings:
Namespace Name Mixin selector named currentPage
Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;currentPage:I
intermediary field_2840
Lnet/minecraft/class_473;field_2840:I
official y
Lggf;y:I
-
pages
- Mappings:
Namespace Name Mixin selector named pages
Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;pages:Ljava/util/List;
intermediary field_17116
Lnet/minecraft/class_473;field_17116:Ljava/util/List;
official z
Lggf;z:Ljava/util/List;
-
nextPageButton
- Mappings:
Namespace Name Mixin selector named nextPageButton
Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;nextPageButton:Lnet/minecraft/client/gui/widget/PageTurnWidget;
intermediary field_2843
Lnet/minecraft/class_473;field_2843:Lnet/minecraft/class_474;
official A
Lggf;A:Lghi;
-
previousPageButton
- Mappings:
Namespace Name Mixin selector named previousPageButton
Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;previousPageButton:Lnet/minecraft/client/gui/widget/PageTurnWidget;
intermediary field_2839
Lnet/minecraft/class_473;field_2839:Lnet/minecraft/class_474;
official B
Lggf;B:Lghi;
-
hand
- Mappings:
Namespace Name Mixin selector named hand
Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;hand:Lnet/minecraft/util/Hand;
intermediary field_2832
Lnet/minecraft/class_473;field_2832:Lnet/minecraft/class_1268;
official C
Lggf;C:Lbxi;
-
pageIndicatorText
- Mappings:
Namespace Name Mixin selector named pageIndicatorText
Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;pageIndicatorText:Lnet/minecraft/text/Text;
intermediary field_60461
Lnet/minecraft/class_473;field_60461:Lnet/minecraft/class_2561;
official D
Lggf;D:Lxo;
-
editBox
- Mappings:
Namespace Name Mixin selector named editBox
Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;editBox:Lnet/minecraft/client/gui/widget/EditBoxWidget;
intermediary field_60462
Lnet/minecraft/class_473;field_60462:Lnet/minecraft/class_7529;
official E
Lggf;E:Lfyg;
-
-
Constructor Details
-
BookEditScreen
public BookEditScreen(PlayerEntity player, ItemStack stack, Hand hand, WritableBookContentComponent writableBookContent) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;<init>(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/item/ItemStack;Lnet/minecraft/util/Hand;Lnet/minecraft/component/type/WritableBookContentComponent;)V
intermediary <init>
Lnet/minecraft/class_473;<init>(Lnet/minecraft/class_1657;Lnet/minecraft/class_1799;Lnet/minecraft/class_1268;Lnet/minecraft/class_9301;)V
official <init>
Lggf;<init>(Lcut;Ldcv;Lbxi;Ldge;)V
-
-
Method Details
-
countPages
private int countPages()- Mappings:
Namespace Name Mixin selector named countPages
Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;countPages()I
intermediary method_17046
Lnet/minecraft/class_473;method_17046()I
official l
Lggf;l()I
-
init
protected void init()Called when a screen should be initialized.This method is called when this screen is opened or resized.
-
setInitialFocus
protected void setInitialFocus()This should be overridden with a call toScreen.setInitialFocus(Element)
to set the element that is initially focused.- Overrides:
setInitialFocus
in classScreen
- Mappings:
Namespace Name Mixin selector named setInitialFocus
Lnet/minecraft/client/gui/screen/Screen;setInitialFocus()V
intermediary method_56131
Lnet/minecraft/class_437;method_56131()V
official aF_
Lges;aF_()V
-
getNarratedTitle
- Overrides:
getNarratedTitle
in classScreen
- Mappings:
Namespace Name Mixin selector named getNarratedTitle
Lnet/minecraft/client/gui/screen/Screen;getNarratedTitle()Lnet/minecraft/text/Text;
intermediary method_25435
Lnet/minecraft/class_437;method_25435()Lnet/minecraft/class_2561;
official i
Lges;i()Lxo;
-
getPageIndicatorText
- Mappings:
Namespace Name Mixin selector named getPageIndicatorText
Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;getPageIndicatorText()Lnet/minecraft/text/Text;
intermediary method_71540
Lnet/minecraft/class_473;method_71540()Lnet/minecraft/class_2561;
official m
Lggf;m()Lxo;
-
openPreviousPage
private void openPreviousPage()- Mappings:
Namespace Name Mixin selector named openPreviousPage
Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;openPreviousPage()V
intermediary method_2437
Lnet/minecraft/class_473;method_2437()V
official n
Lggf;n()V
-
openNextPage
private void openNextPage()- Mappings:
Namespace Name Mixin selector named openNextPage
Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;openNextPage()V
intermediary method_2444
Lnet/minecraft/class_473;method_2444()V
official E
Lggf;E()V
-
updatePage
private void updatePage()- Mappings:
Namespace Name Mixin selector named updatePage
Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;updatePage()V
intermediary method_71537
Lnet/minecraft/class_473;method_71537()V
official F
Lggf;F()V
-
updatePreviousPageButtonVisibility
private void updatePreviousPageButtonVisibility()- Mappings:
Namespace Name Mixin selector named updatePreviousPageButtonVisibility
Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;updatePreviousPageButtonVisibility()V
intermediary method_71538
Lnet/minecraft/class_473;method_71538()V
official G
Lggf;G()V
-
removeEmptyPages
private void removeEmptyPages()- Mappings:
Namespace Name Mixin selector named removeEmptyPages
Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;removeEmptyPages()V
intermediary method_17047
Lnet/minecraft/class_473;method_17047()V
official H
Lggf;H()V
-
finalizeBook
private void finalizeBook()- Mappings:
Namespace Name Mixin selector named finalizeBook
Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;finalizeBook()V
intermediary method_2407
Lnet/minecraft/class_473;method_2407()V
official K
Lggf;K()V
-
writeNbtData
private void writeNbtData()- Mappings:
Namespace Name Mixin selector named writeNbtData
Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;writeNbtData()V
intermediary method_37433
Lnet/minecraft/class_473;method_37433()V
official L
Lggf;L()V
-
appendNewPage
private void appendNewPage()- Mappings:
Namespace Name Mixin selector named appendNewPage
Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;appendNewPage()V
intermediary method_2436
Lnet/minecraft/class_473;method_2436()V
official M
Lggf;M()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
Lfzm;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
Lfyr;a(Lfxa;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
Lges;b(Lfxa;IIF)V
-