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 fog
-
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, 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, applyNarratorModeChangeDelay, 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, method_59870, narrateScreenIfNarrationEnabled, onDisplayed, 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 aLfog;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 bLfog;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 cLfog;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 dLfog;d: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 rLfog;r:Lxo;
-
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 sLfog;s:Lxo;
-
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 uLfog;u:Layk;
-
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 vLfog;v:Layk;
-
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 wLfog;w:Lcmw;
-
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 xLfog;x:Lcuo;
-
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 yLfog;y: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 zLfog;z: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 ALfog;A: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 BLfog;B: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 CLfog;C: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 DLfog;D: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 ELfog;E:Lfjx;
-
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 FLfog;F:Lfjx;
-
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 GLfog;G: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 HLfog;H: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 ILfog;I:Lfpj;
-
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 JLfog;J:Lfpj;
-
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 KLfog;K:Lfhd;
-
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 LLfog;L:Lfhd;
-
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 MLfog;M:Lfhd;
-
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 NLfog;N:Lfhd;
-
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 OLfog;O:Lbqs;
-
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 PLfog;P:Lfog$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 QLfog;Q:Lxo;
-
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 RLfog;R:Lxo;
-
-
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>Lfog;<init>(Lcmw;Lcuo;Lbqs;)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 aLfog;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 mLfog;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 ELfog;E()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 FLfog;F()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 ILfog;I()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 JLfog;J()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 KLfog;K()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 cLfog;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 LLfog;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 MLfog;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 aLfiz;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 aLfiz;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 bLfog;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 NLfog;N()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 OLfog;O()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 aLfog;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 PLfog;P()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 QLfog;Q()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 dLfog;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 RLfog;R()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 bLfog;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 aLfig;a(Lfgq;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 bLfnc;b(Lfgq;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 aLfog;a(Lfgq;Lfog$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 aLfog;a(Lfgq;[Lgds;)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 aLfog;a(Lfog$c;)Lfog$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 bLfog;b(Lfog$c;)Lfog$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 aLfiz;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 bLfog;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 aLfiz;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 SLfog;S()Lfog$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 TLfog;T()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 ULfog;U()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 VLfog;V()Lfog$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 aLfog;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 aLfog;a(Ljava/lang/String;Lffp;IIII)Lgds;
-
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 aLfog;a(Lfog$c;Lfog$c;)Lgds;
-