类 BookEditScreen

所有已实现的接口:
ContainerEventHandler, GuiEventListener, Renderable, TabOrderedElement

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

    • TEXT_WIDTH

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

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

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

      private static final int IMAGE_HEIGHT
      另请参阅:
    • EDIT_TITLE_LABEL

      private static final Component EDIT_TITLE_LABEL
    • FINALIZE_WARNING_LABEL

      private static final Component FINALIZE_WARNING_LABEL
    • BLACK_CURSOR

      private static final FormattedCharSequence BLACK_CURSOR
    • GRAY_CURSOR

      private static final FormattedCharSequence GRAY_CURSOR
    • owner

      private final Player owner
    • book

      private final ItemStack book
    • isModified

      private boolean isModified
    • isSigning

      private boolean isSigning
    • frameTick

      private int frameTick
    • currentPage

      private int currentPage
    • pages

      private final List<String> pages
    • title

      private String title
    • pageEdit

      private final TextFieldHelper pageEdit
    • titleEdit

      private final TextFieldHelper titleEdit
    • lastClickTime

      private long lastClickTime
    • lastIndex

      private int lastIndex
    • forwardButton

      private PageButton forwardButton
    • backButton

      private PageButton backButton
    • doneButton

      private Button doneButton
    • signButton

      private Button signButton
    • finalizeButton

      private Button finalizeButton
    • cancelButton

      private Button cancelButton
    • hand

      private final InteractionHand hand
    • displayCache

      @Nullable private BookEditScreen.DisplayCache displayCache
    • pageMsg

      private Component pageMsg
    • ownerText

      private final Component ownerText
  • 构造器详细资料

  • 方法详细资料

    • setClipboard

      private void setClipboard(String p_98148_)
    • getClipboard

      private String getClipboard()
    • getNumPages

      private int getNumPages()
    • tick

      public void tick()
      覆盖:
      tick 在类中 Screen
    • init

      protected void init()
      覆盖:
      init 在类中 Screen
    • pageBack

      private void pageBack()
    • pageForward

      private void pageForward()
    • updateButtonVisibility

      private void updateButtonVisibility()
    • eraseEmptyTrailingPages

      private void eraseEmptyTrailingPages()
    • saveChanges

      private void saveChanges(boolean pPublish)
    • updateLocalCopy

      private void updateLocalCopy(boolean pSign)
    • appendPageToBook

      private void appendPageToBook()
    • keyPressed

      public boolean keyPressed(int pKeyCode, int pScanCode, int pModifiers)
      指定者:
      keyPressed 在接口中 ContainerEventHandler
      指定者:
      keyPressed 在接口中 GuiEventListener
      覆盖:
      keyPressed 在类中 Screen
    • charTyped

      public boolean charTyped(char pCodePoint, int pModifiers)
    • bookKeyPressed

      private boolean bookKeyPressed(int pKeyCode, int pScanCode, int pModifiers)
    • keyUp

      private void keyUp()
    • keyDown

      private void keyDown()
    • changeLine

      private void changeLine(int pYChange)
    • keyHome

      private void keyHome()
    • keyEnd

      private void keyEnd()
    • titleKeyPressed

      private boolean titleKeyPressed(int pKeyCode, int pScanCode, int pModifiers)
    • getCurrentPageText

      private String getCurrentPageText()
    • setCurrentPageText

      private void setCurrentPageText(String p_98159_)
    • render

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

      private void renderCursor(GuiGraphics pGuiGraphics, BookEditScreen.Pos2i pCursorPos, boolean pIsEndOfText)
    • renderHighlight

      private void renderHighlight(GuiGraphics pGuiGraphics, Rect2i[] pHighlightAreas)
    • convertScreenToLocal

      private BookEditScreen.Pos2i convertScreenToLocal(BookEditScreen.Pos2i pScreenPos)
    • convertLocalToScreen

      private BookEditScreen.Pos2i convertLocalToScreen(BookEditScreen.Pos2i pLocalScreenPos)
    • mouseClicked

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

      private void selectWord(int pIndex)
    • mouseDragged

      public boolean mouseDragged(double pMouseX, double pMouseY, int pButton, double pDragX, double pDragY)
    • getDisplayCache

      private BookEditScreen.DisplayCache getDisplayCache()
    • clearDisplayCache

      private void clearDisplayCache()
    • clearDisplayCacheAfterPageChange

      private void clearDisplayCacheAfterPageChange()
    • rebuildDisplayCache

      private BookEditScreen.DisplayCache rebuildDisplayCache()
    • findLineFromPos

      static int findLineFromPos(int[] pLineStarts, int pFind)
    • createPartialLineSelection

      private Rect2i createPartialLineSelection(String pInput, StringSplitter pSplitter, int p_98122_, int p_98123_, int p_98124_, int p_98125_)
    • createSelection

      private Rect2i createSelection(BookEditScreen.Pos2i pCorner1, BookEditScreen.Pos2i pCorner2)