Class BookViewScreen

All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Renderable, TabOrderedElement
Direct Known Subclasses:
LecternScreen

public class BookViewScreen extends Screen
  • Field Details

  • Constructor Details

  • Method Details

    • setBookAccess

      public void setBookAccess(BookViewScreen.BookAccess p_98289_)
    • setPage

      public boolean setPage(int p_98276_)
    • forcePage

      protected boolean forcePage(int p_98295_)
    • init

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

      protected void createMenuControls()
    • createPageControlButtons

      protected void createPageControlButtons()
    • getNumPages

      private int getNumPages()
    • pageBack

      protected void pageBack()
    • pageForward

      protected void pageForward()
    • updateButtonVisibility

      private void updateButtonVisibility()
    • keyPressed

      public boolean keyPressed(int p_98278_, int p_98279_, int p_98280_)
      Specified by:
      keyPressed in interface ContainerEventHandler
      Specified by:
      keyPressed in interface GuiEventListener
      Overrides:
      keyPressed in class Screen
    • render

      public void render(GuiGraphics p_281997_, int p_281262_, int p_283321_, float p_282251_)
      Specified by:
      render in interface Renderable
      Overrides:
      render in class Screen
    • mouseClicked

      public boolean mouseClicked(double p_98272_, double p_98273_, int p_98274_)
    • handleComponentClicked

      public boolean handleComponentClicked(Style p_98293_)
      Overrides:
      handleComponentClicked in class Screen
    • closeScreen

      protected void closeScreen()
    • getClickedComponentStyleAt

      @Nullable public Style getClickedComponentStyleAt(double p_98269_, double p_98270_)
    • loadPages

      static List<String> loadPages(CompoundTag p_169695_)
    • loadPages

      public static void loadPages(CompoundTag p_169697_, Consumer<String> p_169698_)