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_)
      Description copied from class: Screen
      Neo: mixins targeting this method won't fire for container screens as AbstractContainerScreen.render(net.minecraft.client.gui.GuiGraphics, int, int, float) replicates this method in place of a super call to insert an event
      Specified by:
      render in interface Renderable
      Overrides:
      render in class Screen
    • renderBackground

      public void renderBackground(GuiGraphics p_295678_, int p_296491_, int p_294260_, float p_294869_)
      Overrides:
      renderBackground 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_)