类 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
      另请参阅:
    • 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 pBookAccess)
    • setPage

      public boolean setPage(int pPageNum)
    • forcePage

      protected boolean forcePage(int pPageNum)
    • 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 pKeyCode, int pScanCode, int pModifiers)
      指定者:
      keyPressed 在接口中 ContainerEventHandler
      指定者:
      keyPressed 在接口中 GuiEventListener
      覆盖:
      keyPressed 在类中 Screen
    • render

      public void render(GuiGraphics pGuiGraphics, int pMouseX, int pMouseY, float pPartialTick)
      指定者:
      render 在接口中 Renderable
      覆盖:
      render 在类中 Screen
    • mouseClicked

      public boolean mouseClicked(double pMouseX, double pMouseY, int pButton)
    • handleComponentClicked

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

      protected void closeScreen()
    • getClickedComponentStyleAt

      @Nullable public Style getClickedComponentStyleAt(double pMouseX, double pMouseY)
    • loadPages

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

      public static void loadPages(CompoundTag pTag, Consumer<String> pConsumer)