Class BookSigningScreen

All Implemented Interfaces:
Drawable, Element, Navigable, ParentElement

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

    • 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/BookSigningScreen;EDIT_TITLE_TEXT:Lnet/minecraft/text/Text;
      intermediary field_60466 Lnet/minecraft/class_11385;field_60466:Lnet/minecraft/class_2561;
      official a Lggg;a:Lxo;
    • 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/BookSigningScreen;FINALIZE_WARNING_TEXT:Lnet/minecraft/text/Text;
      intermediary field_60467 Lnet/minecraft/class_11385;field_60467:Lnet/minecraft/class_2561;
      official b Lggg;b:Lxo;
    • TITLE_TEXT

      private static final Text TITLE_TEXT
      Mappings:
      Namespace Name Mixin selector
      named TITLE_TEXT Lnet/minecraft/client/gui/screen/ingame/BookSigningScreen;TITLE_TEXT:Lnet/minecraft/text/Text;
      intermediary field_60468 Lnet/minecraft/class_11385;field_60468:Lnet/minecraft/class_2561;
      official c Lggg;c:Lxo;
    • TITLE_BOX_TEXT

      private static final Text TITLE_BOX_TEXT
      Mappings:
      Namespace Name Mixin selector
      named TITLE_BOX_TEXT Lnet/minecraft/client/gui/screen/ingame/BookSigningScreen;TITLE_BOX_TEXT:Lnet/minecraft/text/Text;
      intermediary field_60469 Lnet/minecraft/class_11385;field_60469:Lnet/minecraft/class_2561;
      official d Lggg;d:Lxo;
    • editScreen

      private final BookEditScreen editScreen
      Mappings:
      Namespace Name Mixin selector
      named editScreen Lnet/minecraft/client/gui/screen/ingame/BookSigningScreen;editScreen:Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;
      intermediary field_60470 Lnet/minecraft/class_11385;field_60470:Lnet/minecraft/class_473;
      official e Lggg;e:Lggf;
    • player

      private final PlayerEntity player
      Mappings:
      Namespace Name Mixin selector
      named player Lnet/minecraft/client/gui/screen/ingame/BookSigningScreen;player:Lnet/minecraft/entity/player/PlayerEntity;
      intermediary field_60471 Lnet/minecraft/class_11385;field_60471:Lnet/minecraft/class_1657;
      official f Lggg;f:Lcut;
    • pages

      private final List<String> pages
      Mappings:
      Namespace Name Mixin selector
      named pages Lnet/minecraft/client/gui/screen/ingame/BookSigningScreen;pages:Ljava/util/List;
      intermediary field_60472 Lnet/minecraft/class_11385;field_60472:Ljava/util/List;
      official u Lggg;u:Ljava/util/List;
    • hand

      private final Hand hand
      Mappings:
      Namespace Name Mixin selector
      named hand Lnet/minecraft/client/gui/screen/ingame/BookSigningScreen;hand:Lnet/minecraft/util/Hand;
      intermediary field_60473 Lnet/minecraft/class_11385;field_60473:Lnet/minecraft/class_1268;
      official v Lggg;v:Lbxi;
    • bylineText

      private final Text bylineText
      Mappings:
      Namespace Name Mixin selector
      named bylineText Lnet/minecraft/client/gui/screen/ingame/BookSigningScreen;bylineText:Lnet/minecraft/text/Text;
      intermediary field_60474 Lnet/minecraft/class_11385;field_60474:Lnet/minecraft/class_2561;
      official w Lggg;w:Lxo;
    • bookTitleTextField

      private TextFieldWidget bookTitleTextField
      Mappings:
      Namespace Name Mixin selector
      named bookTitleTextField Lnet/minecraft/client/gui/screen/ingame/BookSigningScreen;bookTitleTextField:Lnet/minecraft/client/gui/widget/TextFieldWidget;
      intermediary field_60475 Lnet/minecraft/class_11385;field_60475:Lnet/minecraft/class_342;
      official x Lggg;x:Lfxw;
    • bookTitle

      private String bookTitle
      Mappings:
      Namespace Name Mixin selector
      named bookTitle Lnet/minecraft/client/gui/screen/ingame/BookSigningScreen;bookTitle:Ljava/lang/String;
      intermediary field_60465 Lnet/minecraft/class_11385;field_60465:Ljava/lang/String;
      official y Lggg;y:Ljava/lang/String;
  • Constructor Details

    • BookSigningScreen

      public BookSigningScreen(BookEditScreen editScreen, PlayerEntity player, Hand hand, List<String> pages)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/gui/screen/ingame/BookSigningScreen;<init>(Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;Ljava/util/List;)V
      intermediary <init> Lnet/minecraft/class_11385;<init>(Lnet/minecraft/class_473;Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;Ljava/util/List;)V
      official <init> Lggg;<init>(Lggf;Lcut;Lbxi;Ljava/util/List;)V
  • Method Details

    • 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
    • onFinalize

      private void onFinalize()
      Mappings:
      Namespace Name Mixin selector
      named onFinalize Lnet/minecraft/client/gui/screen/ingame/BookSigningScreen;onFinalize()V
      intermediary method_71544 Lnet/minecraft/class_11385;method_71544()V
      official l Lggg;l()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