Class BookEditScreen

All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Renderable, TabOrderedElement

public class BookEditScreen extends Screen
  • Field Details

  • Constructor Details

  • Method Details

    • getNumPages

      private int getNumPages()
    • init

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

      private int backgroundLeft()
    • backgroundTop

      private int backgroundTop()
    • setInitialFocus

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

      public Component getNarrationMessage()
      Overrides:
      getNarrationMessage in class Screen
    • getPageNumberMessage

      private Component getPageNumberMessage()
    • pageBack

      private void pageBack()
    • pageForward

      private void pageForward()
    • updatePageContent

      private void updatePageContent()
    • updateButtonVisibility

      private void updateButtonVisibility()
    • eraseEmptyTrailingPages

      private void eraseEmptyTrailingPages()
    • saveChanges

      private void saveChanges()
    • updateLocalCopy

      private void updateLocalCopy()
    • appendPageToBook

      private void appendPageToBook()
    • isInGameUi

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

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

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

      private void visitText(ActiveTextCollector collector)
    • renderBackground

      public void renderBackground(GuiGraphics graphics, int mouseX, int mouseY, float a)
      Overrides:
      renderBackground in class Screen