Class ReadBookScreen

All Implemented Interfaces:
IGuiEventListener, INestedGuiEventHandler, IRenderable, IScreen
Direct Known Subclasses:
LecternScreen

public class ReadBookScreen extends Screen
  • Field Details

  • Constructor Details

  • Method Details

    • setBookAccess

      public void setBookAccess(ReadBookScreen.IBookInfo p_214155_1_)
    • setPage

      public boolean setPage(int p_214160_1_)
    • forcePage

      protected boolean forcePage(int p_214153_1_)
    • 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_231046_1_, int p_231046_2_, int p_231046_3_)
      Specified by:
      keyPressed in interface IGuiEventListener
      Specified by:
      keyPressed in interface INestedGuiEventHandler
      Overrides:
      keyPressed in class Screen
    • render

      public void render(MatrixStack p_230430_1_, int p_230430_2_, int p_230430_3_, float p_230430_4_)
      Specified by:
      render in interface IRenderable
      Overrides:
      render in class Screen
    • mouseClicked

      public boolean mouseClicked(double p_231044_1_, double p_231044_3_, int p_231044_5_)
    • handleComponentClicked

      public boolean handleComponentClicked(Style p_230455_1_)
      Overrides:
      handleComponentClicked in class Screen
    • getClickedComponentStyleAt

      @Nullable public Style getClickedComponentStyleAt(double p_238805_1_, double p_238805_3_)
    • convertPages

      public static List<String> convertPages(CompoundNBT p_214157_0_)