Class BookSignScreen

All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Renderable, TabOrderedElement

public class BookSignScreen extends Screen
  • Field Details

    • EDIT_TITLE_LABEL

      private static final Component EDIT_TITLE_LABEL
    • FINALIZE_WARNING_LABEL

      private static final Component FINALIZE_WARNING_LABEL
    • TITLE

      private static final Component TITLE
    • TITLE_EDIT_BOX

      private static final Component TITLE_EDIT_BOX
    • bookEditScreen

      private final BookEditScreen bookEditScreen
    • owner

      private final Player owner
    • pages

      private final List<String> pages
    • hand

      private final InteractionHand hand
    • ownerText

      private final Component ownerText
    • titleBox

      private EditBox titleBox
    • titleValue

      private String titleValue
  • Constructor Details

  • Method Details

    • init

      protected void init()
      Overrides:
      init in class Screen
    • setInitialFocus

      protected void setInitialFocus()
      Overrides:
      setInitialFocus in class Screen
    • saveChanges

      private void saveChanges()
    • isInGameUi

      public boolean isInGameUi()
      Overrides:
      isInGameUi in class Screen
    • keyPressed

      public boolean keyPressed(KeyEvent p_446009_)
      Specified by:
      keyPressed in interface ContainerEventHandler
      Specified by:
      keyPressed in interface GuiEventListener
      Overrides:
      keyPressed in class Screen
    • render

      public void render(GuiGraphics p_422561_, int p_421651_, int p_421594_, float p_422678_)
      Description copied from interface: Renderable
      Renders the graphical user interface (GUI) element.
      Specified by:
      render in interface Renderable
      Overrides:
      render in class Screen
      Parameters:
      p_422561_ - the GuiGraphics object used for rendering.
      p_421651_ - the x-coordinate of the mouse cursor.
      p_421594_ - the y-coordinate of the mouse cursor.
      p_422678_ - the partial tick time.
    • renderBackground

      public void renderBackground(GuiGraphics p_421786_, int p_422251_, int p_421978_, float p_421611_)
      Overrides:
      renderBackground in class Screen