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 ggf
  • Field Details

    • MAX_TEXT_WIDTH

      public 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 Lggf;a:I
    • MAX_TEXT_HEIGHT

      public 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 Lggf;b:I
    • WIDTH

      public 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 Lggf;c:I
    • HEIGHT

      public 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 Lggf;d:I
    • field_52805

      public 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 e Lggf;e:I
    • field_52806

      public 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 f Lggf;f:I
    • TITLE_TEXT

      private static final Text TITLE_TEXT
      Mappings:
      Namespace Name Mixin selector
      named TITLE_TEXT Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;TITLE_TEXT:Lnet/minecraft/text/Text;
      intermediary field_60463 Lnet/minecraft/class_473;field_60463:Lnet/minecraft/class_2561;
      official u Lggf;u:Lxo;
    • 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 v Lggf;v:Lcut;
    • 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 w Lggf;w:Ldcv;
    • signingScreen

      private final BookSigningScreen signingScreen
      Mappings:
      Namespace Name Mixin selector
      named signingScreen Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;signingScreen:Lnet/minecraft/client/gui/screen/ingame/BookSigningScreen;
      intermediary field_60464 Lnet/minecraft/class_473;field_60464:Lnet/minecraft/class_11385;
      official x Lggf;x:Lggg;
    • 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 y Lggf;y: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 z Lggf;z:Ljava/util/List;
    • 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 A Lggf;A:Lghi;
    • 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 B Lggf;B:Lghi;
    • 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 C Lggf;C:Lbxi;
    • 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_60461 Lnet/minecraft/class_473;field_60461:Lnet/minecraft/class_2561;
      official D Lggf;D:Lxo;
    • editBox

      private EditBoxWidget editBox
      Mappings:
      Namespace Name Mixin selector
      named editBox Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;editBox:Lnet/minecraft/client/gui/widget/EditBoxWidget;
      intermediary field_60462 Lnet/minecraft/class_473;field_60462:Lnet/minecraft/class_7529;
      official E Lggf;E:Lfyg;
  • 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> Lggf;<init>(Lcut;Ldcv;Lbxi;Ldge;)V
  • Method Details

    • 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 l Lggf;l()I
    • 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 aV_ Lges;aV_()V
    • setInitialFocus

      protected void setInitialFocus()
      This should be overridden with a call to Screen.setInitialFocus(Element) to set the element that is initially focused.
      Overrides:
      setInitialFocus in class Screen
      Mappings:
      Namespace Name Mixin selector
      named setInitialFocus Lnet/minecraft/client/gui/screen/Screen;setInitialFocus()V
      intermediary method_56131 Lnet/minecraft/class_437;method_56131()V
      official aF_ Lges;aF_()V
    • getNarratedTitle

      public Text getNarratedTitle()
      Overrides:
      getNarratedTitle in class Screen
      Mappings:
      Namespace Name Mixin selector
      named getNarratedTitle Lnet/minecraft/client/gui/screen/Screen;getNarratedTitle()Lnet/minecraft/text/Text;
      intermediary method_25435 Lnet/minecraft/class_437;method_25435()Lnet/minecraft/class_2561;
      official i Lges;i()Lxo;
    • getPageIndicatorText

      private Text getPageIndicatorText()
      Mappings:
      Namespace Name Mixin selector
      named getPageIndicatorText Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;getPageIndicatorText()Lnet/minecraft/text/Text;
      intermediary method_71540 Lnet/minecraft/class_473;method_71540()Lnet/minecraft/class_2561;
      official m Lggf;m()Lxo;
    • 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 n Lggf;n()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 E Lggf;E()V
    • updatePage

      private void updatePage()
      Mappings:
      Namespace Name Mixin selector
      named updatePage Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;updatePage()V
      intermediary method_71537 Lnet/minecraft/class_473;method_71537()V
      official F Lggf;F()V
    • updatePreviousPageButtonVisibility

      private void updatePreviousPageButtonVisibility()
      Mappings:
      Namespace Name Mixin selector
      named updatePreviousPageButtonVisibility Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;updatePreviousPageButtonVisibility()V
      intermediary method_71538 Lnet/minecraft/class_473;method_71538()V
      official G Lggf;G()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 H Lggf;H()V
    • finalizeBook

      private void finalizeBook()
      Mappings:
      Namespace Name Mixin selector
      named finalizeBook Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;finalizeBook()V
      intermediary method_2407 Lnet/minecraft/class_473;method_2407()V
      official K Lggf;K()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 Lggf;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 Lggf;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 Lfzm;a(III)Z
    • render

      public void render(DrawContext context, int mouseX, int mouseY, float deltaTicks)
      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 Lfyr;a(Lfxa;IIF)V
    • renderBackground

      public void renderBackground(DrawContext context, int mouseX, int mouseY, float deltaTicks)
      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 Lges;b(Lfxa;IIF)V