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 foz
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classprivate static classprivate static classNested classes/interfaces inherited from class net.minecraft.client.gui.screen.Screen
Screen.SelectedElementNarrationData -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final OrderedTextprivate final SelectionManagerprivate ButtonWidgetprivate intprivate final SelectionManagerprivate booleanprivate ButtonWidgetprivate static final Textprivate static final Textprivate ButtonWidgetprivate static final OrderedTextprivate final Handprivate static final intprivate final ItemStackprivate intprivate longprivate static final intprivate static final intprivate PageTurnWidgetprivate @Nullable BookEditScreen.PageContentprivate Textprivate final PlayerEntityprivate PageTurnWidgetprivate ButtonWidgetprivate final Textprivate booleanprivate intprivate Stringprivate static final intFields 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, narratorToggleButton, PANORAMA_RENDERER, ROTATING_PANORAMA_RENDERER, textRenderer, widthFields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate BookEditScreen.Positionprivate voidprivate voidbooleancharTyped(char chr, int modifiers) Callback for when a character input has been captured.private intprivate BookEditScreen.PageContentprivate voiddrawCursor(DrawContext context, BookEditScreen.Position position, boolean atEnd) private voiddrawSelection(DrawContext context, Rect2i[] selectionRectangles) private voidfinalizeBook(boolean signBook) private Stringprivate String(package private) static intgetLineFromOffset(int[] lineStarts, int position) private Rect2igetLineSelectionRectangle(String string, TextHandler handler, int selectionStart, int selectionEnd, int lineY, int lineStart) private BookEditScreen.PageContentprivate Rect2iprotected voidinit()Called when a screen should be initialized.private voidbooleankeyPressed(int keyCode, int scanCode, int modifiers) Callback for when a key down event has been captured.private booleankeyPressedEditMode(int keyCode, int scanCode, int modifiers) private booleankeyPressedSignMode(int keyCode, int scanCode, int modifiers) booleanmouseClicked(double mouseX, double mouseY, int button) Callback for when a mouse button down event has been captured.booleanmouseDragged(double mouseX, double mouseY, int button, double deltaX, double deltaY) Callback for when a mouse button drag event has been captured.private voidprivate voidprivate voidprivate voidprivate voidmoveVertically(int lines) private voidprivate voidprivate voidvoidrender(DrawContext context, int mouseX, int mouseY, float delta) voidrenderBackground(DrawContext context, int mouseX, int mouseY, float delta) Renders the background of this screen.private BookEditScreen.Positionprivate voidselectCurrentWord(int cursor) private voidsetClipboard(String clipboard) private voidsetPageContent(String newContent) voidtick()private voidprivate voidMethods inherited from class net.minecraft.client.gui.screen.Screen
addDrawable, addDrawableChild, addElementNarrations, addScreenNarrations, addSelectableChild, applyBlur, applyKeyPressNarratorDelay, applyMouseMoveNarratorDelay, applyMousePressScrollNarratorDelay, blur, children, clearAndInit, clearChildren, clearTooltip, close, filesDragged, findSelectedElementData, getMusic, getNarratedTitle, getNavigationFocus, getTitle, getTooltipFromItem, getUsageNarrationText, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, hasUsageText, init, initTabNavigation, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, narrateScreenIfNarrationEnabled, onDisplayed, refreshNarrator, remove, removed, renderBackgroundTexture, renderDarkening, renderDarkening, renderInGameBackground, renderPanoramaBackground, renderWithTooltip, resize, setInitialFocus, setInitialFocus, setTooltip, setTooltip, setTooltip, setTooltip, shouldCloseOnEsc, shouldPause, switchFocus, updateNarrator, wrapScreenErrorMethods 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
mouseMovedMethods inherited from interface net.minecraft.client.gui.navigation.Navigable
getNavigationOrderMethods inherited from interface net.minecraft.client.gui.ParentElement
getFocusedPath, getNavigationPath, hoveredElement, isFocused, keyReleased, mouseReleased, mouseScrolled, setFocused
-
Field Details
-
MAX_TEXT_WIDTH
private 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 aLfoz;a:I
-
MAX_TEXT_HEIGHT
private 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 bLfoz;b:I
-
WIDTH
private 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 cLfoz;c:I
-
HEIGHT
private 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 rLfoz;r:I
-
EDIT_TITLE_TEXT
- Mappings:
Namespace Name Mixin selector named EDIT_TITLE_TEXTLnet/minecraft/client/gui/screen/ingame/BookEditScreen;EDIT_TITLE_TEXT:Lnet/minecraft/text/Text;intermediary field_25893Lnet/minecraft/class_473;field_25893:Lnet/minecraft/class_2561;official sLfoz;s:Lwz;
-
FINALIZE_WARNING_TEXT
- Mappings:
Namespace Name Mixin selector named FINALIZE_WARNING_TEXTLnet/minecraft/client/gui/screen/ingame/BookEditScreen;FINALIZE_WARNING_TEXT:Lnet/minecraft/text/Text;intermediary field_25894Lnet/minecraft/class_473;field_25894:Lnet/minecraft/class_2561;official uLfoz;u:Lwz;
-
BLACK_CURSOR_TEXT
- Mappings:
Namespace Name Mixin selector named BLACK_CURSOR_TEXTLnet/minecraft/client/gui/screen/ingame/BookEditScreen;BLACK_CURSOR_TEXT:Lnet/minecraft/text/OrderedText;intermediary field_25895Lnet/minecraft/class_473;field_25895:Lnet/minecraft/class_5481;official vLfoz;v:Laya;
-
GRAY_CURSOR_TEXT
- Mappings:
Namespace Name Mixin selector named GRAY_CURSOR_TEXTLnet/minecraft/client/gui/screen/ingame/BookEditScreen;GRAY_CURSOR_TEXT:Lnet/minecraft/text/OrderedText;intermediary field_25896Lnet/minecraft/class_473;field_25896:Lnet/minecraft/class_5481;official wLfoz;w:Laya;
-
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 xLfoz;x:Lcmx;
-
itemStack
- Mappings:
Namespace Name Mixin selector named itemStackLnet/minecraft/client/gui/screen/ingame/BookEditScreen;itemStack:Lnet/minecraft/item/ItemStack;intermediary field_2835Lnet/minecraft/class_473;field_2835:Lnet/minecraft/class_1799;official yLfoz;y:Lcuq;
-
dirty
private boolean dirty- Mappings:
Namespace Name Mixin selector named dirtyLnet/minecraft/client/gui/screen/ingame/BookEditScreen;dirty:Zintermediary field_2837Lnet/minecraft/class_473;field_2837:Zofficial zLfoz;z:Z
-
signing
private boolean signing- Mappings:
Namespace Name Mixin selector named signingLnet/minecraft/client/gui/screen/ingame/BookEditScreen;signing:Zintermediary field_2828Lnet/minecraft/class_473;field_2828:Zofficial ALfoz;A:Z
-
tickCounter
private int tickCounter- Mappings:
Namespace Name Mixin selector named tickCounterLnet/minecraft/client/gui/screen/ingame/BookEditScreen;tickCounter:Iintermediary field_2844Lnet/minecraft/class_473;field_2844:Iofficial BLfoz;B:I
-
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 CLfoz;C: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 DLfoz;D:Ljava/util/List;
-
title
- Mappings:
Namespace Name Mixin selector named titleLnet/minecraft/client/gui/screen/ingame/BookEditScreen;title:Ljava/lang/String;intermediary field_2847Lnet/minecraft/class_473;field_2847:Ljava/lang/String;official ELfoz;E:Ljava/lang/String;
-
currentPageSelectionManager
- Mappings:
Namespace Name Mixin selector named currentPageSelectionManagerLnet/minecraft/client/gui/screen/ingame/BookEditScreen;currentPageSelectionManager:Lnet/minecraft/client/util/SelectionManager;intermediary field_24269Lnet/minecraft/class_473;field_24269:Lnet/minecraft/class_3728;official FLfoz;F:Lflg;
-
bookTitleSelectionManager
- Mappings:
Namespace Name Mixin selector named bookTitleSelectionManagerLnet/minecraft/client/gui/screen/ingame/BookEditScreen;bookTitleSelectionManager:Lnet/minecraft/client/util/SelectionManager;intermediary field_24270Lnet/minecraft/class_473;field_24270:Lnet/minecraft/class_3728;official GLfoz;G:Lflg;
-
lastClickTime
private long lastClickTime- Mappings:
Namespace Name Mixin selector named lastClickTimeLnet/minecraft/client/gui/screen/ingame/BookEditScreen;lastClickTime:Jintermediary field_2830Lnet/minecraft/class_473;field_2830:Jofficial HLfoz;H:J
-
lastClickIndex
private int lastClickIndex- Mappings:
Namespace Name Mixin selector named lastClickIndexLnet/minecraft/client/gui/screen/ingame/BookEditScreen;lastClickIndex:Iintermediary field_2827Lnet/minecraft/class_473;field_2827:Iofficial ILfoz;I:I
-
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 JLfoz;J:Lfqb;
-
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 KLfoz;K:Lfqb;
-
doneButton
- Mappings:
Namespace Name Mixin selector named doneButtonLnet/minecraft/client/gui/screen/ingame/BookEditScreen;doneButton:Lnet/minecraft/client/gui/widget/ButtonWidget;intermediary field_2848Lnet/minecraft/class_473;field_2848:Lnet/minecraft/class_4185;official LLfoz;L:Lfim;
-
signButton
- Mappings:
Namespace Name Mixin selector named signButtonLnet/minecraft/client/gui/screen/ingame/BookEditScreen;signButton:Lnet/minecraft/client/gui/widget/ButtonWidget;intermediary field_2831Lnet/minecraft/class_473;field_2831:Lnet/minecraft/class_4185;official MLfoz;M:Lfim;
-
finalizeButton
- Mappings:
Namespace Name Mixin selector named finalizeButtonLnet/minecraft/client/gui/screen/ingame/BookEditScreen;finalizeButton:Lnet/minecraft/client/gui/widget/ButtonWidget;intermediary field_2841Lnet/minecraft/class_473;field_2841:Lnet/minecraft/class_4185;official NLfoz;N:Lfim;
-
cancelButton
- Mappings:
Namespace Name Mixin selector named cancelButtonLnet/minecraft/client/gui/screen/ingame/BookEditScreen;cancelButton:Lnet/minecraft/client/gui/widget/ButtonWidget;intermediary field_2849Lnet/minecraft/class_473;field_2849:Lnet/minecraft/class_4185;official OLfoz;O:Lfim;
-
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 PLfoz;P:Lbqq;
-
pageContent
- Mappings:
Namespace Name Mixin selector named pageContentLnet/minecraft/client/gui/screen/ingame/BookEditScreen;pageContent:Lnet/minecraft/client/gui/screen/ingame/BookEditScreen$PageContent;intermediary field_24268Lnet/minecraft/class_473;field_24268:Lnet/minecraft/class_473$class_5233;official QLfoz;Q:Lfoz$a;
-
pageIndicatorText
- Mappings:
Namespace Name Mixin selector named pageIndicatorTextLnet/minecraft/client/gui/screen/ingame/BookEditScreen;pageIndicatorText:Lnet/minecraft/text/Text;intermediary field_25891Lnet/minecraft/class_473;field_25891:Lnet/minecraft/class_2561;official RLfoz;R:Lwz;
-
signedByText
- Mappings:
Namespace Name Mixin selector named signedByTextLnet/minecraft/client/gui/screen/ingame/BookEditScreen;signedByText:Lnet/minecraft/text/Text;intermediary field_25892Lnet/minecraft/class_473;field_25892:Lnet/minecraft/class_2561;official SLfoz;S:Lwz;
-
-
Constructor Details
-
BookEditScreen
- 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;)Vintermediary <init>Lnet/minecraft/class_473;<init>(Lnet/minecraft/class_1657;Lnet/minecraft/class_1799;Lnet/minecraft/class_1268;)Vofficial <init>Lfoz;<init>(Lcmx;Lcuq;Lbqq;)V
-
-
Method Details
-
setClipboard
- Mappings:
Namespace Name Mixin selector named setClipboardLnet/minecraft/client/gui/screen/ingame/BookEditScreen;setClipboard(Ljava/lang/String;)Vintermediary method_27584Lnet/minecraft/class_473;method_27584(Ljava/lang/String;)Vofficial aLfoz;a(Ljava/lang/String;)V
-
getClipboard
- Mappings:
Namespace Name Mixin selector named getClipboardLnet/minecraft/client/gui/screen/ingame/BookEditScreen;getClipboard()Ljava/lang/String;intermediary method_27595Lnet/minecraft/class_473;method_27595()Ljava/lang/String;official mLfoz;m()Ljava/lang/String;
-
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 CLfoz;C()I
-
tick
public void tick() -
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. -
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 DLfoz;D()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 ELfoz;E()V
-
updateButtons
private void updateButtons()- Mappings:
Namespace Name Mixin selector named updateButtonsLnet/minecraft/client/gui/screen/ingame/BookEditScreen;updateButtons()Vintermediary method_2413Lnet/minecraft/class_473;method_2413()Vofficial FLfoz;F()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 GLfoz;G()V
-
finalizeBook
private void finalizeBook(boolean signBook) - Mappings:
Namespace Name Mixin selector named finalizeBookLnet/minecraft/client/gui/screen/ingame/BookEditScreen;finalizeBook(Z)Vintermediary method_2407Lnet/minecraft/class_473;method_2407(Z)Vofficial cLfoz;c(Z)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 JLfoz;J()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 KLfoz;K()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 aLfki;a(III)Z
-
charTyped
public boolean charTyped(char chr, int modifiers) Callback for when a character input has been captured. The key code is identified by the constants inGLFWclass.- Parameters:
chr- the captured charactermodifiers- 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 charTypedLnet/minecraft/client/gui/Element;charTyped(CI)Zintermediary method_25400Lnet/minecraft/class_364;method_25400(CI)Zofficial aLfki;a(CI)Z
-
keyPressedEditMode
private boolean keyPressedEditMode(int keyCode, int scanCode, int modifiers) - Mappings:
Namespace Name Mixin selector named keyPressedEditModeLnet/minecraft/client/gui/screen/ingame/BookEditScreen;keyPressedEditMode(III)Zintermediary method_27592Lnet/minecraft/class_473;method_27592(III)Zofficial bLfoz;b(III)Z
-
moveUpLine
private void moveUpLine()- Mappings:
Namespace Name Mixin selector named moveUpLineLnet/minecraft/client/gui/screen/ingame/BookEditScreen;moveUpLine()Vintermediary method_27597Lnet/minecraft/class_473;method_27597()Vofficial LLfoz;L()V
-
moveDownLine
private void moveDownLine()- Mappings:
Namespace Name Mixin selector named moveDownLineLnet/minecraft/client/gui/screen/ingame/BookEditScreen;moveDownLine()Vintermediary method_27598Lnet/minecraft/class_473;method_27598()Vofficial MLfoz;M()V
-
moveVertically
private void moveVertically(int lines) - Mappings:
Namespace Name Mixin selector named moveVerticallyLnet/minecraft/client/gui/screen/ingame/BookEditScreen;moveVertically(I)Vintermediary method_27580Lnet/minecraft/class_473;method_27580(I)Vofficial aLfoz;a(I)V
-
moveToLineStart
private void moveToLineStart()- Mappings:
Namespace Name Mixin selector named moveToLineStartLnet/minecraft/client/gui/screen/ingame/BookEditScreen;moveToLineStart()Vintermediary method_2421Lnet/minecraft/class_473;method_2421()Vofficial NLfoz;N()V
-
moveToLineEnd
private void moveToLineEnd()- Mappings:
Namespace Name Mixin selector named moveToLineEndLnet/minecraft/client/gui/screen/ingame/BookEditScreen;moveToLineEnd()Vintermediary method_2414Lnet/minecraft/class_473;method_2414()Vofficial OLfoz;O()V
-
keyPressedSignMode
private boolean keyPressedSignMode(int keyCode, int scanCode, int modifiers) - Mappings:
Namespace Name Mixin selector named keyPressedSignModeLnet/minecraft/client/gui/screen/ingame/BookEditScreen;keyPressedSignMode(III)Zintermediary method_2446Lnet/minecraft/class_473;method_2446(III)Zofficial dLfoz;d(III)Z
-
getCurrentPageContent
- Mappings:
Namespace Name Mixin selector named getCurrentPageContentLnet/minecraft/client/gui/screen/ingame/BookEditScreen;getCurrentPageContent()Ljava/lang/String;intermediary method_2427Lnet/minecraft/class_473;method_2427()Ljava/lang/String;official PLfoz;P()Ljava/lang/String;
-
setPageContent
- Mappings:
Namespace Name Mixin selector named setPageContentLnet/minecraft/client/gui/screen/ingame/BookEditScreen;setPageContent(Ljava/lang/String;)Vintermediary method_2439Lnet/minecraft/class_473;method_2439(Ljava/lang/String;)Vofficial bLfoz;b(Ljava/lang/String;)V
-
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 aLfjp;a(Lfhz;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 bLfod;b(Lfhz;IIF)V
-
drawCursor
- Mappings:
Namespace Name Mixin selector named drawCursorLnet/minecraft/client/gui/screen/ingame/BookEditScreen;drawCursor(Lnet/minecraft/client/gui/DrawContext;Lnet/minecraft/client/gui/screen/ingame/BookEditScreen$Position;Z)Vintermediary method_27581Lnet/minecraft/class_473;method_27581(Lnet/minecraft/class_332;Lnet/minecraft/class_473$class_5234;Z)Vofficial aLfoz;a(Lfhz;Lfoz$c;Z)V
-
drawSelection
- Mappings:
Namespace Name Mixin selector named drawSelectionLnet/minecraft/client/gui/screen/ingame/BookEditScreen;drawSelection(Lnet/minecraft/client/gui/DrawContext;[Lnet/minecraft/client/util/math/Rect2i;)Vintermediary method_27588Lnet/minecraft/class_473;method_27588(Lnet/minecraft/class_332;[Lnet/minecraft/class_768;)Vofficial aLfoz;a(Lfhz;[Lgfe;)V
-
screenPositionToAbsolutePosition
- Mappings:
Namespace Name Mixin selector named screenPositionToAbsolutePositionLnet/minecraft/client/gui/screen/ingame/BookEditScreen;screenPositionToAbsolutePosition(Lnet/minecraft/client/gui/screen/ingame/BookEditScreen$Position;)Lnet/minecraft/client/gui/screen/ingame/BookEditScreen$Position;intermediary method_27582Lnet/minecraft/class_473;method_27582(Lnet/minecraft/class_473$class_5234;)Lnet/minecraft/class_473$class_5234;official aLfoz;a(Lfoz$c;)Lfoz$c;
-
absolutePositionToScreenPosition
- Mappings:
Namespace Name Mixin selector named absolutePositionToScreenPositionLnet/minecraft/client/gui/screen/ingame/BookEditScreen;absolutePositionToScreenPosition(Lnet/minecraft/client/gui/screen/ingame/BookEditScreen$Position;)Lnet/minecraft/client/gui/screen/ingame/BookEditScreen$Position;intermediary method_27590Lnet/minecraft/class_473;method_27590(Lnet/minecraft/class_473$class_5234;)Lnet/minecraft/class_473$class_5234;official bLfoz;b(Lfoz$c;)Lfoz$c;
-
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 inGLFWclass.- Parameters:
mouseX- the X coordinate of the mousemouseY- the Y coordinate of the mousebutton- the mouse button number- Returns:
trueto indicate that the event handling is successful/valid- See Also:
- Mappings:
Namespace Name Mixin selector named mouseClickedLnet/minecraft/client/gui/Element;mouseClicked(DDI)Zintermediary method_25402Lnet/minecraft/class_364;method_25402(DDI)Zofficial aLfki;a(DDI)Z
-
selectCurrentWord
private void selectCurrentWord(int cursor) - Mappings:
Namespace Name Mixin selector named selectCurrentWordLnet/minecraft/client/gui/screen/ingame/BookEditScreen;selectCurrentWord(I)Vintermediary method_27589Lnet/minecraft/class_473;method_27589(I)Vofficial bLfoz;b(I)V
-
mouseDragged
public boolean mouseDragged(double mouseX, double mouseY, int button, double deltaX, double deltaY) Callback for when a mouse button drag event has been captured. The button number is identified by the constants inGLFWclass.- Parameters:
mouseX- the current X coordinate of the mousemouseY- the current Y coordinate of the mousebutton- the mouse button numberdeltaX- the difference of the current X with the previous X coordinatedeltaY- the difference of the current Y with the previous Y coordinate- Returns:
trueto indicate that the event handling is successful/valid- See Also:
- Mappings:
Namespace Name Mixin selector named mouseDraggedLnet/minecraft/client/gui/Element;mouseDragged(DDIDD)Zintermediary method_25403Lnet/minecraft/class_364;method_25403(DDIDD)Zofficial aLfki;a(DDIDD)Z
-
getPageContent
- Mappings:
Namespace Name Mixin selector named getPageContentLnet/minecraft/client/gui/screen/ingame/BookEditScreen;getPageContent()Lnet/minecraft/client/gui/screen/ingame/BookEditScreen$PageContent;intermediary method_27576Lnet/minecraft/class_473;method_27576()Lnet/minecraft/class_473$class_5233;official QLfoz;Q()Lfoz$a;
-
invalidatePageContent
private void invalidatePageContent()- Mappings:
Namespace Name Mixin selector named invalidatePageContentLnet/minecraft/client/gui/screen/ingame/BookEditScreen;invalidatePageContent()Vintermediary method_27577Lnet/minecraft/class_473;method_27577()Vofficial RLfoz;R()V
-
changePage
private void changePage()- Mappings:
Namespace Name Mixin selector named changePageLnet/minecraft/client/gui/screen/ingame/BookEditScreen;changePage()Vintermediary method_27872Lnet/minecraft/class_473;method_27872()Vofficial SLfoz;S()V
-
createPageContent
- Mappings:
Namespace Name Mixin selector named createPageContentLnet/minecraft/client/gui/screen/ingame/BookEditScreen;createPageContent()Lnet/minecraft/client/gui/screen/ingame/BookEditScreen$PageContent;intermediary method_27578Lnet/minecraft/class_473;method_27578()Lnet/minecraft/class_473$class_5233;official TLfoz;T()Lfoz$a;
-
getLineFromOffset
static int getLineFromOffset(int[] lineStarts, int position) - Mappings:
Namespace Name Mixin selector named getLineFromOffsetLnet/minecraft/client/gui/screen/ingame/BookEditScreen;getLineFromOffset([II)Iintermediary method_27591Lnet/minecraft/class_473;method_27591([II)Iofficial aLfoz;a([II)I
-
getLineSelectionRectangle
private Rect2i getLineSelectionRectangle(String string, TextHandler handler, int selectionStart, int selectionEnd, int lineY, int lineStart) - Mappings:
Namespace Name Mixin selector named getLineSelectionRectangleLnet/minecraft/client/gui/screen/ingame/BookEditScreen;getLineSelectionRectangle(Ljava/lang/String;Lnet/minecraft/client/font/TextHandler;IIII)Lnet/minecraft/client/util/math/Rect2i;intermediary method_27585Lnet/minecraft/class_473;method_27585(Ljava/lang/String;Lnet/minecraft/class_5225;IIII)Lnet/minecraft/class_768;official aLfoz;a(Ljava/lang/String;Lfgz;IIII)Lgfe;
-
getRectFromCorners
- Mappings:
Namespace Name Mixin selector named getRectFromCornersLnet/minecraft/client/gui/screen/ingame/BookEditScreen;getRectFromCorners(Lnet/minecraft/client/gui/screen/ingame/BookEditScreen$Position;Lnet/minecraft/client/gui/screen/ingame/BookEditScreen$Position;)Lnet/minecraft/client/util/math/Rect2i;intermediary method_27583Lnet/minecraft/class_473;method_27583(Lnet/minecraft/class_473$class_5234;Lnet/minecraft/class_473$class_5234;)Lnet/minecraft/class_768;official aLfoz;a(Lfoz$c;Lfoz$c;)Lgfe;
-