类 BookViewScreen

所有已实现的接口:
ContainerEventHandler, GuiEventListener, Renderable, TabOrderedElement
直接已知子类:
LecternScreen

public class BookViewScreen extends Screen
  • 字段详细资料

    • PAGE_INDICATOR_TEXT_Y_OFFSET

      public static final int PAGE_INDICATOR_TEXT_Y_OFFSET
      另请参阅:
    • PAGE_TEXT_X_OFFSET

      public static final int PAGE_TEXT_X_OFFSET
      另请参阅:
    • PAGE_TEXT_Y_OFFSET

      public static final int PAGE_TEXT_Y_OFFSET
      另请参阅:
    • BACKGROUND_TEXTURE_WIDTH

      private static final int BACKGROUND_TEXTURE_WIDTH
      另请参阅:
    • BACKGROUND_TEXTURE_HEIGHT

      private static final int BACKGROUND_TEXTURE_HEIGHT
      另请参阅:
    • EMPTY_ACCESS

      public static final BookViewScreen.BookAccess EMPTY_ACCESS
    • BOOK_LOCATION

      public static final ResourceLocation BOOK_LOCATION
    • TEXT_WIDTH

      protected static final int TEXT_WIDTH
      另请参阅:
    • TEXT_HEIGHT

      protected static final int TEXT_HEIGHT
      另请参阅:
    • IMAGE_WIDTH

      protected static final int IMAGE_WIDTH
      另请参阅:
    • IMAGE_HEIGHT

      protected static final int IMAGE_HEIGHT
      另请参阅:
    • bookAccess

      private BookViewScreen.BookAccess bookAccess
    • currentPage

      private int currentPage
    • cachedPageComponents

      private List<FormattedCharSequence> cachedPageComponents
    • cachedPage

      private int cachedPage
    • pageMsg

      private Component pageMsg
    • forwardButton

      private PageButton forwardButton
    • backButton

      private PageButton backButton
    • playTurnSound

      private final boolean playTurnSound
  • 构造器详细资料

  • 方法详细资料

    • 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()
      覆盖:
      init 在类中 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_)
      指定者:
      keyPressed 在接口中 ContainerEventHandler
      指定者:
      keyPressed 在接口中 GuiEventListener
      覆盖:
      keyPressed 在类中 Screen
    • render

      public void render(GuiGraphics p_281997_, int p_281262_, int p_283321_, float p_282251_)
      指定者:
      render 在接口中 Renderable
      覆盖:
      render 在类中 Screen
    • renderBackground

      public void renderBackground(GuiGraphics p_301081_, int p_297765_, int p_300192_, float p_297977_)
      覆盖:
      renderBackground 在类中 Screen
    • mouseClicked

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

      public boolean handleComponentClicked(Style p_98293_)
      覆盖:
      handleComponentClicked 在类中 Screen
    • closeScreen

      protected void closeScreen()
    • getClickedComponentStyleAt

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