Class BookEditScreen

All Implemented Interfaces:
Drawable, Element, Navigable, ParentElement

@Environment(CLIENT) public class BookEditScreen extends Screen
Mappings:
Namespace Name
named net/minecraft/client/gui/screen/ingame/BookEditScreen
intermediary net/minecraft/class_473
official fut
  • Field Details

    • MAX_TEXT_WIDTH

      private 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 Lfut;a:I
    • MAX_TEXT_HEIGHT

      private 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 Lfut;b:I
    • WIDTH

      private 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 Lfut;c:I
    • HEIGHT

      private 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 Lfut;d:I
    • field_52805

      private 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 s Lfut;s:I
    • field_52806

      private 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 u Lfut;u:I
    • EDIT_TITLE_TEXT

      private static final Text EDIT_TITLE_TEXT
      Mappings:
      Namespace Name Mixin selector
      named EDIT_TITLE_TEXT Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;EDIT_TITLE_TEXT:Lnet/minecraft/text/Text;
      intermediary field_25893 Lnet/minecraft/class_473;field_25893:Lnet/minecraft/class_2561;
      official v Lfut;v:Lxv;
    • FINALIZE_WARNING_TEXT

      private static final Text FINALIZE_WARNING_TEXT
      Mappings:
      Namespace Name Mixin selector
      named FINALIZE_WARNING_TEXT Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;FINALIZE_WARNING_TEXT:Lnet/minecraft/text/Text;
      intermediary field_25894 Lnet/minecraft/class_473;field_25894:Lnet/minecraft/class_2561;
      official w Lfut;w:Lxv;
    • BLACK_CURSOR_TEXT

      private static final OrderedText BLACK_CURSOR_TEXT
      Mappings:
      Namespace Name Mixin selector
      named BLACK_CURSOR_TEXT Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;BLACK_CURSOR_TEXT:Lnet/minecraft/text/OrderedText;
      intermediary field_25895 Lnet/minecraft/class_473;field_25895:Lnet/minecraft/class_5481;
      official x Lfut;x:Lazq;
    • GRAY_CURSOR_TEXT

      private static final OrderedText GRAY_CURSOR_TEXT
      Mappings:
      Namespace Name Mixin selector
      named GRAY_CURSOR_TEXT Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;GRAY_CURSOR_TEXT:Lnet/minecraft/text/OrderedText;
      intermediary field_25896 Lnet/minecraft/class_473;field_25896:Lnet/minecraft/class_5481;
      official y Lfut;y:Lazq;
    • player

      private final PlayerEntity 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 z Lfut;z:Lcpw;
    • stack

      private final ItemStack 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 A Lfut;A:Lcxo;
    • dirty

      private boolean dirty
      Mappings:
      Namespace Name Mixin selector
      named dirty Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;dirty:Z
      intermediary field_2837 Lnet/minecraft/class_473;field_2837:Z
      official B Lfut;B:Z
    • signing

      private boolean signing
      Mappings:
      Namespace Name Mixin selector
      named signing Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;signing:Z
      intermediary field_2828 Lnet/minecraft/class_473;field_2828:Z
      official C Lfut;C:Z
    • tickCounter

      private int tickCounter
      Mappings:
      Namespace Name Mixin selector
      named tickCounter Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;tickCounter:I
      intermediary field_2844 Lnet/minecraft/class_473;field_2844:I
      official D Lfut;D:I
    • 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 E Lfut;E:I
    • pages

      private final List<String> 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 F Lfut;F:Ljava/util/List;
    • title

      private String title
      Mappings:
      Namespace Name Mixin selector
      named title Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;title:Ljava/lang/String;
      intermediary field_2847 Lnet/minecraft/class_473;field_2847:Ljava/lang/String;
      official G Lfut;G:Ljava/lang/String;
    • currentPageSelectionManager

      private final SelectionManager currentPageSelectionManager
      Mappings:
      Namespace Name Mixin selector
      named currentPageSelectionManager Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;currentPageSelectionManager:Lnet/minecraft/client/util/SelectionManager;
      intermediary field_24269 Lnet/minecraft/class_473;field_24269:Lnet/minecraft/class_3728;
      official H Lfut;H:Lfra;
    • bookTitleSelectionManager

      private final SelectionManager bookTitleSelectionManager
      Mappings:
      Namespace Name Mixin selector
      named bookTitleSelectionManager Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;bookTitleSelectionManager:Lnet/minecraft/client/util/SelectionManager;
      intermediary field_24270 Lnet/minecraft/class_473;field_24270:Lnet/minecraft/class_3728;
      official I Lfut;I:Lfra;
    • lastClickTime

      private long lastClickTime
      Mappings:
      Namespace Name Mixin selector
      named lastClickTime Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;lastClickTime:J
      intermediary field_2830 Lnet/minecraft/class_473;field_2830:J
      official J Lfut;J:J
    • lastClickIndex

      private int lastClickIndex
      Mappings:
      Namespace Name Mixin selector
      named lastClickIndex Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;lastClickIndex:I
      intermediary field_2827 Lnet/minecraft/class_473;field_2827:I
      official K Lfut;K:I
    • nextPageButton

      private PageTurnWidget 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 L Lfut;L:Lfvv;
    • previousPageButton

      private PageTurnWidget 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 M Lfut;M:Lfvv;
    • doneButton

      private ButtonWidget doneButton
      Mappings:
      Namespace Name Mixin selector
      named doneButton Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;doneButton:Lnet/minecraft/client/gui/widget/ButtonWidget;
      intermediary field_2848 Lnet/minecraft/class_473;field_2848:Lnet/minecraft/class_4185;
      official N Lfut;N:Lfoe;
    • signButton

      private ButtonWidget signButton
      Mappings:
      Namespace Name Mixin selector
      named signButton Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;signButton:Lnet/minecraft/client/gui/widget/ButtonWidget;
      intermediary field_2831 Lnet/minecraft/class_473;field_2831:Lnet/minecraft/class_4185;
      official O Lfut;O:Lfoe;
    • finalizeButton

      private ButtonWidget finalizeButton
      Mappings:
      Namespace Name Mixin selector
      named finalizeButton Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;finalizeButton:Lnet/minecraft/client/gui/widget/ButtonWidget;
      intermediary field_2841 Lnet/minecraft/class_473;field_2841:Lnet/minecraft/class_4185;
      official P Lfut;P:Lfoe;
    • cancelButton

      private ButtonWidget cancelButton
      Mappings:
      Namespace Name Mixin selector
      named cancelButton Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;cancelButton:Lnet/minecraft/client/gui/widget/ButtonWidget;
      intermediary field_2849 Lnet/minecraft/class_473;field_2849:Lnet/minecraft/class_4185;
      official Q Lfut;Q:Lfoe;
    • hand

      private final Hand 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 R Lfut;R:Lbth;
    • pageContent

      Mappings:
      Namespace Name Mixin selector
      named pageContent Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;pageContent:Lnet/minecraft/client/gui/screen/ingame/BookEditScreen$PageContent;
      intermediary field_24268 Lnet/minecraft/class_473;field_24268:Lnet/minecraft/class_473$class_5233;
      official S Lfut;S:Lfut$a;
    • pageIndicatorText

      private Text pageIndicatorText
      Mappings:
      Namespace Name Mixin selector
      named pageIndicatorText Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;pageIndicatorText:Lnet/minecraft/text/Text;
      intermediary field_25891 Lnet/minecraft/class_473;field_25891:Lnet/minecraft/class_2561;
      official T Lfut;T:Lxv;
    • signedByText

      private final Text signedByText
      Mappings:
      Namespace Name Mixin selector
      named signedByText Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;signedByText:Lnet/minecraft/text/Text;
      intermediary field_25892 Lnet/minecraft/class_473;field_25892:Lnet/minecraft/class_2561;
      official U Lfut;U:Lxv;
  • 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> Lfut;<init>(Lcpw;Lcxo;Lbth;Ldav;)V
  • Method Details

    • setClipboard

      private void setClipboard(String clipboard)
      Mappings:
      Namespace Name Mixin selector
      named setClipboard Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;setClipboard(Ljava/lang/String;)V
      intermediary method_27584 Lnet/minecraft/class_473;method_27584(Ljava/lang/String;)V
      official a Lfut;a(Ljava/lang/String;)V
    • getClipboard

      private String getClipboard()
      Mappings:
      Namespace Name Mixin selector
      named getClipboard Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;getClipboard()Ljava/lang/String;
      intermediary method_27595 Lnet/minecraft/class_473;method_27595()Ljava/lang/String;
      official l Lfut;l()Ljava/lang/String;
    • 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 E Lfut;E()I
    • tick

      public void tick()
      Overrides:
      tick in class Screen
      Mappings:
      Namespace Name Mixin selector
      named tick Lnet/minecraft/client/gui/screen/Screen;tick()V
      intermediary method_25393 Lnet/minecraft/class_437;method_25393()V
      official e Lftx;e()V
    • init

      protected void init()
      Called when a screen should be initialized.

      This method is called when this screen is opened or resized.

      Overrides:
      init in class Screen
      Mappings:
      Namespace Name Mixin selector
      named init Lnet/minecraft/client/gui/screen/Screen;init()V
      intermediary method_25426 Lnet/minecraft/class_437;method_25426()V
      official aT_ Lftx;aT_()V
    • 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 F Lfut;F()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 G Lfut;G()V
    • updateButtons

      private void updateButtons()
      Mappings:
      Namespace Name Mixin selector
      named updateButtons Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;updateButtons()V
      intermediary method_2413 Lnet/minecraft/class_473;method_2413()V
      official J Lfut;J()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 K Lfut;K()V
    • finalizeBook

      private void finalizeBook(boolean signBook)
      Mappings:
      Namespace Name Mixin selector
      named finalizeBook Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;finalizeBook(Z)V
      intermediary method_2407 Lnet/minecraft/class_473;method_2407(Z)V
      official c Lfut;c(Z)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 Lfut;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 Lfut;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 in GLFW class.
      Specified by:
      keyPressed in interface Element
      Specified by:
      keyPressed in interface ParentElement
      Overrides:
      keyPressed in class Screen
      Parameters:
      keyCode - the named key code of the event as described in the GLFW class
      scanCode - the unique/platform-specific scan code of the keyboard input
      modifiers - 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 Lfqc;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 in GLFW class.
      Parameters:
      chr - the captured character
      modifiers - 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 charTyped Lnet/minecraft/client/gui/Element;charTyped(CI)Z
      intermediary method_25400 Lnet/minecraft/class_364;method_25400(CI)Z
      official a Lfqc;a(CI)Z
    • keyPressedEditMode

      private boolean keyPressedEditMode(int keyCode, int scanCode, int modifiers)
      Mappings:
      Namespace Name Mixin selector
      named keyPressedEditMode Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;keyPressedEditMode(III)Z
      intermediary method_27592 Lnet/minecraft/class_473;method_27592(III)Z
      official b Lfut;b(III)Z
    • moveUpLine

      private void moveUpLine()
      Mappings:
      Namespace Name Mixin selector
      named moveUpLine Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;moveUpLine()V
      intermediary method_27597 Lnet/minecraft/class_473;method_27597()V
      official N Lfut;N()V
    • moveDownLine

      private void moveDownLine()
      Mappings:
      Namespace Name Mixin selector
      named moveDownLine Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;moveDownLine()V
      intermediary method_27598 Lnet/minecraft/class_473;method_27598()V
      official O Lfut;O()V
    • moveVertically

      private void moveVertically(int lines)
      Mappings:
      Namespace Name Mixin selector
      named moveVertically Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;moveVertically(I)V
      intermediary method_27580 Lnet/minecraft/class_473;method_27580(I)V
      official a Lfut;a(I)V
    • moveToLineStart

      private void moveToLineStart()
      Mappings:
      Namespace Name Mixin selector
      named moveToLineStart Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;moveToLineStart()V
      intermediary method_2421 Lnet/minecraft/class_473;method_2421()V
      official P Lfut;P()V
    • moveToLineEnd

      private void moveToLineEnd()
      Mappings:
      Namespace Name Mixin selector
      named moveToLineEnd Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;moveToLineEnd()V
      intermediary method_2414 Lnet/minecraft/class_473;method_2414()V
      official Q Lfut;Q()V
    • keyPressedSignMode

      private boolean keyPressedSignMode(int keyCode, int scanCode, int modifiers)
      Mappings:
      Namespace Name Mixin selector
      named keyPressedSignMode Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;keyPressedSignMode(III)Z
      intermediary method_2446 Lnet/minecraft/class_473;method_2446(III)Z
      official d Lfut;d(III)Z
    • getCurrentPageContent

      private String getCurrentPageContent()
      Mappings:
      Namespace Name Mixin selector
      named getCurrentPageContent Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;getCurrentPageContent()Ljava/lang/String;
      intermediary method_2427 Lnet/minecraft/class_473;method_2427()Ljava/lang/String;
      official R Lfut;R()Ljava/lang/String;
    • setPageContent

      private void setPageContent(String newContent)
      Mappings:
      Namespace Name Mixin selector
      named setPageContent Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;setPageContent(Ljava/lang/String;)V
      intermediary method_2439 Lnet/minecraft/class_473;method_2439(Ljava/lang/String;)V
      official b Lfut;b(Ljava/lang/String;)V
    • render

      public void render(DrawContext context, int mouseX, int mouseY, float delta)
      Specified by:
      render in interface Drawable
      Overrides:
      render in class Screen
      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 Lfpi;a(Lfnr;IIF)V
    • renderBackground

      public void renderBackground(DrawContext context, int mouseX, int mouseY, float delta)
      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 class Screen
      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 Lftx;b(Lfnr;IIF)V
    • drawCursor

      private void drawCursor(DrawContext context, BookEditScreen.Position position, boolean atEnd)
      Mappings:
      Namespace Name Mixin selector
      named drawCursor Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;drawCursor(Lnet/minecraft/client/gui/DrawContext;Lnet/minecraft/client/gui/screen/ingame/BookEditScreen$Position;Z)V
      intermediary method_27581 Lnet/minecraft/class_473;method_27581(Lnet/minecraft/class_332;Lnet/minecraft/class_473$class_5234;Z)V
      official a Lfut;a(Lfnr;Lfut$c;Z)V
    • drawSelection

      private void drawSelection(DrawContext context, Rect2i[] selectionRectangles)
      Mappings:
      Namespace Name Mixin selector
      named drawSelection Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;drawSelection(Lnet/minecraft/client/gui/DrawContext;[Lnet/minecraft/client/util/math/Rect2i;)V
      intermediary method_27588 Lnet/minecraft/class_473;method_27588(Lnet/minecraft/class_332;[Lnet/minecraft/class_768;)V
      official a Lfut;a(Lfnr;[Lglr;)V
    • screenPositionToAbsolutePosition

      private BookEditScreen.Position screenPositionToAbsolutePosition(BookEditScreen.Position position)
      Mappings:
      Namespace Name Mixin selector
      named screenPositionToAbsolutePosition Lnet/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_27582 Lnet/minecraft/class_473;method_27582(Lnet/minecraft/class_473$class_5234;)Lnet/minecraft/class_473$class_5234;
      official a Lfut;a(Lfut$c;)Lfut$c;
    • absolutePositionToScreenPosition

      private BookEditScreen.Position absolutePositionToScreenPosition(BookEditScreen.Position position)
      Mappings:
      Namespace Name Mixin selector
      named absolutePositionToScreenPosition Lnet/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_27590 Lnet/minecraft/class_473;method_27590(Lnet/minecraft/class_473$class_5234;)Lnet/minecraft/class_473$class_5234;
      official b Lfut;b(Lfut$c;)Lfut$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 in GLFW class.
      Parameters:
      mouseX - the X coordinate of the mouse
      mouseY - the Y coordinate of the mouse
      button - the mouse button number
      Returns:
      true to indicate that the event handling is successful/valid
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named mouseClicked Lnet/minecraft/client/gui/Element;mouseClicked(DDI)Z
      intermediary method_25402 Lnet/minecraft/class_364;method_25402(DDI)Z
      official a Lfqc;a(DDI)Z
    • selectCurrentWord

      private void selectCurrentWord(int cursor)
      Mappings:
      Namespace Name Mixin selector
      named selectCurrentWord Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;selectCurrentWord(I)V
      intermediary method_27589 Lnet/minecraft/class_473;method_27589(I)V
      official b Lfut;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 in GLFW class.
      Parameters:
      mouseX - the current X coordinate of the mouse
      mouseY - the current Y coordinate of the mouse
      button - the mouse button number
      deltaX - the difference of the current X with the previous X coordinate
      deltaY - the difference of the current Y with the previous Y coordinate
      Returns:
      true to indicate that the event handling is successful/valid
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named mouseDragged Lnet/minecraft/client/gui/Element;mouseDragged(DDIDD)Z
      intermediary method_25403 Lnet/minecraft/class_364;method_25403(DDIDD)Z
      official a Lfqc;a(DDIDD)Z
    • getPageContent

      private BookEditScreen.PageContent getPageContent()
      Mappings:
      Namespace Name Mixin selector
      named getPageContent Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;getPageContent()Lnet/minecraft/client/gui/screen/ingame/BookEditScreen$PageContent;
      intermediary method_27576 Lnet/minecraft/class_473;method_27576()Lnet/minecraft/class_473$class_5233;
      official S Lfut;S()Lfut$a;
    • invalidatePageContent

      private void invalidatePageContent()
      Mappings:
      Namespace Name Mixin selector
      named invalidatePageContent Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;invalidatePageContent()V
      intermediary method_27577 Lnet/minecraft/class_473;method_27577()V
      official T Lfut;T()V
    • changePage

      private void changePage()
      Mappings:
      Namespace Name Mixin selector
      named changePage Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;changePage()V
      intermediary method_27872 Lnet/minecraft/class_473;method_27872()V
      official U Lfut;U()V
    • createPageContent

      private BookEditScreen.PageContent createPageContent()
      Mappings:
      Namespace Name Mixin selector
      named createPageContent Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;createPageContent()Lnet/minecraft/client/gui/screen/ingame/BookEditScreen$PageContent;
      intermediary method_27578 Lnet/minecraft/class_473;method_27578()Lnet/minecraft/class_473$class_5233;
      official V Lfut;V()Lfut$a;
    • getLineFromOffset

      static int getLineFromOffset(int[] lineStarts, int position)
      Mappings:
      Namespace Name Mixin selector
      named getLineFromOffset Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;getLineFromOffset([II)I
      intermediary method_27591 Lnet/minecraft/class_473;method_27591([II)I
      official a Lfut;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 getLineSelectionRectangle Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;getLineSelectionRectangle(Ljava/lang/String;Lnet/minecraft/client/font/TextHandler;IIII)Lnet/minecraft/client/util/math/Rect2i;
      intermediary method_27585 Lnet/minecraft/class_473;method_27585(Ljava/lang/String;Lnet/minecraft/class_5225;IIII)Lnet/minecraft/class_768;
      official a Lfut;a(Ljava/lang/String;Lfmp;IIII)Lglr;
    • getRectFromCorners

      private Rect2i getRectFromCorners(BookEditScreen.Position start, BookEditScreen.Position end)
      Mappings:
      Namespace Name Mixin selector
      named getRectFromCorners Lnet/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_27583 Lnet/minecraft/class_473;method_27583(Lnet/minecraft/class_473$class_5234;Lnet/minecraft/class_473$class_5234;)Lnet/minecraft/class_768;
      official a Lfut;a(Lfut$c;Lfut$c;)Lglr;