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/BookEditScreenintermediary net/minecraft/class_473official gny
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.screen.Screen
Screen.SelectedElementNarrationData -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate EditBoxWidgetstatic final intstatic final intprivate final Handstatic final intstatic final intstatic final intprivate PageTurnWidgetprivate Textprivate final PlayerEntityprivate PageTurnWidgetprivate final BookSigningScreenprivate final ItemStackprivate static final Textstatic 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, width -
Constructor Summary
ConstructorsConstructorDescriptionBookEditScreen(PlayerEntity player, ItemStack stack, Hand hand, WritableBookContentComponent writableBookContent) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidprivate intbooleanprivate voidprivate Textprotected voidinit()Called when a screen should be initialized.booleankeyPressed(KeyInput input) Callback for when a key down event has been captured.private voidprivate voidprivate voidvoidrender(DrawContext context, int mouseX, int mouseY, float deltaTicks) voidrenderBackground(DrawContext context, int mouseX, int mouseY, float deltaTicks) Renders the background of this screen.protected voidThis should be overridden with a call toScreen.setInitialFocus(Element)to set the element that is initially focused.private voidprivate voidprivate voidMethods inherited from class net.minecraft.client.gui.screen.Screen
addCrashReportSection, addDrawable, addDrawableChild, addElementNarrations, addScreenNarrations, addSelectableChild, allowRotatingPanorama, applyBlur, applyKeyPressNarratorDelay, applyMouseMoveNarratorDelay, applyMousePressScrollNarratorDelay, blur, canInterruptOtherScreen, children, clearAndInit, clearChildren, close, findSelectedElementData, getMusic, getNavigationFocus, getTextRenderer, getTitle, getTooltipFromItem, getUsageNarrationText, handleBasicClickEvent, handleClickEvent, handleClickEvent, handleOpenUri, handleRunCommand, handleTextClick, hasUsageText, init, insertText, isMouseOver, isValidCharacterForName, keepOpenThroughPortal, narrateScreenIfNarrationEnabled, onDisplayed, onFilesDropped, refreshNarrator, refreshWidgetPositions, remove, removed, renderBackgroundTexture, renderDarkening, renderDarkening, renderInGameBackground, renderPanoramaBackground, renderWithTooltip, resize, 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, isClickable, 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, 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_WIDTHLnet/minecraft/client/gui/screen/ingame/BookEditScreen;MAX_TEXT_WIDTH:Iintermediary field_32323Lnet/minecraft/class_473;field_32323:Iofficial aLgny;a:I
-
MAX_TEXT_HEIGHT
public static final int MAX_TEXT_HEIGHT- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_TEXT_HEIGHTLnet/minecraft/client/gui/screen/ingame/BookEditScreen;MAX_TEXT_HEIGHT:Iintermediary field_32324Lnet/minecraft/class_473;field_32324:Iofficial bLgny;b:I
-
WIDTH
public static final int WIDTH- See Also:
- Mappings:
Namespace Name Mixin selector named WIDTHLnet/minecraft/client/gui/screen/ingame/BookEditScreen;WIDTH:Iintermediary field_32326Lnet/minecraft/class_473;field_32326:Iofficial cLgny;c:I
-
HEIGHT
public static final int HEIGHT- See Also:
- Mappings:
Namespace Name Mixin selector named HEIGHTLnet/minecraft/client/gui/screen/ingame/BookEditScreen;HEIGHT:Iintermediary field_32327Lnet/minecraft/class_473;field_32327:Iofficial dLgny;d:I
-
field_52805
public static final int field_52805- See Also:
- Mappings:
Namespace Name Mixin selector named field_52805Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;field_52805:Iintermediary field_52805Lnet/minecraft/class_473;field_52805:Iofficial eLgny;e:I
-
field_52806
public static final int field_52806- See Also:
- Mappings:
Namespace Name Mixin selector named field_52806Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;field_52806:Iintermediary field_52806Lnet/minecraft/class_473;field_52806:Iofficial fLgny;f:I
-
TITLE_TEXT
- Mappings:
Namespace Name Mixin selector named TITLE_TEXTLnet/minecraft/client/gui/screen/ingame/BookEditScreen;TITLE_TEXT:Lnet/minecraft/text/Text;intermediary field_60463Lnet/minecraft/class_473;field_60463:Lnet/minecraft/class_2561;official tLgny;t:Lxx;
-
player
- Mappings:
Namespace Name Mixin selector named playerLnet/minecraft/client/gui/screen/ingame/BookEditScreen;player:Lnet/minecraft/entity/player/PlayerEntity;intermediary field_2826Lnet/minecraft/class_473;field_2826:Lnet/minecraft/class_1657;official uLgny;u:Lczm;
-
stack
- Mappings:
Namespace Name Mixin selector named stackLnet/minecraft/client/gui/screen/ingame/BookEditScreen;stack:Lnet/minecraft/item/ItemStack;intermediary field_2835Lnet/minecraft/class_473;field_2835:Lnet/minecraft/class_1799;official vLgny;v:Ldhq;
-
signingScreen
- Mappings:
Namespace Name Mixin selector named signingScreenLnet/minecraft/client/gui/screen/ingame/BookEditScreen;signingScreen:Lnet/minecraft/client/gui/screen/ingame/BookSigningScreen;intermediary field_60464Lnet/minecraft/class_473;field_60464:Lnet/minecraft/class_11385;official wLgny;w:Lgnz;
-
currentPage
private int currentPage- Mappings:
Namespace Name Mixin selector named currentPageLnet/minecraft/client/gui/screen/ingame/BookEditScreen;currentPage:Iintermediary field_2840Lnet/minecraft/class_473;field_2840:Iofficial xLgny;x:I
-
pages
- Mappings:
Namespace Name Mixin selector named pagesLnet/minecraft/client/gui/screen/ingame/BookEditScreen;pages:Ljava/util/List;intermediary field_17116Lnet/minecraft/class_473;field_17116:Ljava/util/List;official yLgny;y:Ljava/util/List;
-
nextPageButton
- Mappings:
Namespace Name Mixin selector named nextPageButtonLnet/minecraft/client/gui/screen/ingame/BookEditScreen;nextPageButton:Lnet/minecraft/client/gui/widget/PageTurnWidget;intermediary field_2843Lnet/minecraft/class_473;field_2843:Lnet/minecraft/class_474;official zLgny;z:Lgpb;
-
previousPageButton
- Mappings:
Namespace Name Mixin selector named previousPageButtonLnet/minecraft/client/gui/screen/ingame/BookEditScreen;previousPageButton:Lnet/minecraft/client/gui/widget/PageTurnWidget;intermediary field_2839Lnet/minecraft/class_473;field_2839:Lnet/minecraft/class_474;official ALgny;A:Lgpb;
-
hand
- Mappings:
Namespace Name Mixin selector named handLnet/minecraft/client/gui/screen/ingame/BookEditScreen;hand:Lnet/minecraft/util/Hand;intermediary field_2832Lnet/minecraft/class_473;field_2832:Lnet/minecraft/class_1268;official BLgny;B:Lcbq;
-
pageIndicatorText
- Mappings:
Namespace Name Mixin selector named pageIndicatorTextLnet/minecraft/client/gui/screen/ingame/BookEditScreen;pageIndicatorText:Lnet/minecraft/text/Text;intermediary field_60461Lnet/minecraft/class_473;field_60461:Lnet/minecraft/class_2561;official CLgny;C:Lxx;
-
editBox
- Mappings:
Namespace Name Mixin selector named editBoxLnet/minecraft/client/gui/screen/ingame/BookEditScreen;editBox:Lnet/minecraft/client/gui/widget/EditBoxWidget;intermediary field_60462Lnet/minecraft/class_473;field_60462:Lnet/minecraft/class_7529;official DLgny;D:Lgej;
-
-
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;)Vintermediary <init>Lnet/minecraft/class_473;<init>(Lnet/minecraft/class_1657;Lnet/minecraft/class_1799;Lnet/minecraft/class_1268;Lnet/minecraft/class_9301;)Vofficial <init>Lgny;<init>(Lczm;Ldhq;Lcbq;Ldlb;)V
-
-
Method Details
-
countPages
private int countPages()- Mappings:
Namespace Name Mixin selector named countPagesLnet/minecraft/client/gui/screen/ingame/BookEditScreen;countPages()Iintermediary method_17046Lnet/minecraft/class_473;method_17046()Iofficial oLgny;o()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:
setInitialFocusin classScreen- Mappings:
Namespace Name Mixin selector named setInitialFocusLnet/minecraft/client/gui/screen/Screen;setInitialFocus()Vintermediary method_56131Lnet/minecraft/class_437;method_56131()Vofficial aI_Lgmk;aI_()V
-
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 iLgmk;i()Lxx;
-
getPageIndicatorText
- Mappings:
Namespace Name Mixin selector named getPageIndicatorTextLnet/minecraft/client/gui/screen/ingame/BookEditScreen;getPageIndicatorText()Lnet/minecraft/text/Text;intermediary method_71540Lnet/minecraft/class_473;method_71540()Lnet/minecraft/class_2561;official pLgny;p()Lxx;
-
openPreviousPage
private void openPreviousPage()- Mappings:
Namespace Name Mixin selector named openPreviousPageLnet/minecraft/client/gui/screen/ingame/BookEditScreen;openPreviousPage()Vintermediary method_2437Lnet/minecraft/class_473;method_2437()Vofficial HLgny;H()V
-
openNextPage
private void openNextPage()- Mappings:
Namespace Name Mixin selector named openNextPageLnet/minecraft/client/gui/screen/ingame/BookEditScreen;openNextPage()Vintermediary method_2444Lnet/minecraft/class_473;method_2444()Vofficial ILgny;I()V
-
updatePage
private void updatePage()- Mappings:
Namespace Name Mixin selector named updatePageLnet/minecraft/client/gui/screen/ingame/BookEditScreen;updatePage()Vintermediary method_71537Lnet/minecraft/class_473;method_71537()Vofficial JLgny;J()V
-
updatePreviousPageButtonVisibility
private void updatePreviousPageButtonVisibility()- Mappings:
Namespace Name Mixin selector named updatePreviousPageButtonVisibilityLnet/minecraft/client/gui/screen/ingame/BookEditScreen;updatePreviousPageButtonVisibility()Vintermediary method_71538Lnet/minecraft/class_473;method_71538()Vofficial KLgny;K()V
-
removeEmptyPages
private void removeEmptyPages()- Mappings:
Namespace Name Mixin selector named removeEmptyPagesLnet/minecraft/client/gui/screen/ingame/BookEditScreen;removeEmptyPages()Vintermediary method_17047Lnet/minecraft/class_473;method_17047()Vofficial LLgny;L()V
-
finalizeBook
private void finalizeBook()- Mappings:
Namespace Name Mixin selector named finalizeBookLnet/minecraft/client/gui/screen/ingame/BookEditScreen;finalizeBook()Vintermediary method_2407Lnet/minecraft/class_473;method_2407()Vofficial MLgny;M()V
-
writeNbtData
private void writeNbtData()- Mappings:
Namespace Name Mixin selector named writeNbtDataLnet/minecraft/client/gui/screen/ingame/BookEditScreen;writeNbtData()Vintermediary method_37433Lnet/minecraft/class_473;method_37433()Vofficial NLgny;N()V
-
appendNewPage
private void appendNewPage()- Mappings:
Namespace Name Mixin selector named appendNewPageLnet/minecraft/client/gui/screen/ingame/BookEditScreen;appendNewPage()Vintermediary method_2436Lnet/minecraft/class_473;method_2436()Vofficial OLgny;O()V
-
deferSubtitles
public boolean deferSubtitles()- Overrides:
deferSubtitlesin classScreen- Mappings:
Namespace Name Mixin selector named deferSubtitlesLnet/minecraft/client/gui/screen/Screen;deferSubtitles()Zintermediary method_73150Lnet/minecraft/class_437;method_73150()Zofficial vLgmk;v()Z
-
keyPressed
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- Returns:
trueto indicate that the event handling is successful/valid- See Also:
- Mappings:
Namespace Name Mixin selector named keyPressedLnet/minecraft/client/gui/Element;keyPressed(Lnet/minecraft/client/input/KeyInput;)Zintermediary method_25404Lnet/minecraft/class_364;method_25404(Lnet/minecraft/class_11908;)Zofficial aLggx;a(Lgti;)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 aLgeu;a(Lgde;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 bLgmk;b(Lgde;IIF)V
-