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 ggg
- 
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, widthFields 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 voidprivate intprivate voidprivate Textprotected voidinit()Called when a screen should be initialized.booleankeyPressed(int keyCode, int scanCode, int modifiers) 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, 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, 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, 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 aLggg;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 bLggg;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 cLggg;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 dLggg;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 eLggg;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 fLggg;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 uLggg;u:Lxo;
 - 
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 vLggg;v:Lcut;
 - 
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 wLggg;w:Ldcv;
 - 
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 xLggg;x:Lggh;
 - 
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 yLggg;y: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 zLggg;z: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 ALggg;A:Lghj;
 - 
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 BLggg;B:Lghj;
 - 
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 CLggg;C:Lbxi;
 - 
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 DLggg;D:Lxo;
 - 
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 ELggg;E:Lfyh;
 
 - 
 - 
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>Lggg;<init>(Lcut;Ldcv;Lbxi;Ldge;)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 lLggg;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:
 setInitialFocusin classScreen- Mappings:
 Namespace Name Mixin selector named setInitialFocusLnet/minecraft/client/gui/screen/Screen;setInitialFocus()Vintermediary method_56131Lnet/minecraft/class_437;method_56131()Vofficial aF_Lget;aF_()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 iLget;i()Lxo;
 - 
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 mLggg;m()Lxo;
 - 
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 nLggg;n()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 ELggg;E()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 FLggg;F()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 GLggg;G()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 HLggg;H()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 KLggg;K()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 LLggg;L()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 MLggg;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 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
 
 -