EditBookGui mappings (#428)

This commit is contained in:
Siphalor 2019-01-26 13:54:04 +01:00 committed by Adrian Siekierka
parent 8675ebe25d
commit 79dd72bf58
3 changed files with 158 additions and 2 deletions

View File

@ -91,3 +91,4 @@ CLASS cqm net/minecraft/client/font/FontRenderer
ARG 1 text
METHOD e getCharacterCountForWidth (Ljava/lang/String;I)I
ARG 1 text
ARG 2 offset

View File

@ -44,6 +44,7 @@ CLASS cuf net/minecraft/client/gui/Gui
ARG 2 width
ARG 3 height
METHOD c onInitialized ()V
ARG 1 xOffset
METHOD c drawTextureBackground (I)V
METHOD c_ drawBackground (I)V
METHOD d drawBackground ()V

View File

@ -1,7 +1,161 @@
CLASS cvf net/minecraft/client/gui/ingame/EditBookGui
CLASS cvf$a Position
FIELD b x I
FIELD c y I
FIELD A buttonNextPage Lcwd;
FIELD B buttonDone Lcqw;
FIELD C buttonSign Lcqw;
FIELD D buttonFinalize Lcqw;
FIELD E buttonCancel Lcqw;
FIELD F hand Lafw;
FIELD a player Larj;
FIELD f stack Laxd;
FIELD f itemStack Laxd;
FIELD g dirty Z
FIELD h signing Z
FIELD i tickCounter I
FIELD s currentPage I
FIELD t pages Ljava/util/List;
FIELD u title Ljava/lang/String;
METHOD <init> (Larj;Laxd;Lafw;)V
FIELD v cursorIndex I
FIELD w highlightTo I
FIELD x lastClickTime J
FIELD y lastClickIndex I
FIELD z buttonPreviousPage Lcwd;
METHOD <init> (Larj;Laxc;Lafw;)V
ARG 1 player
ARG 2 stack
METHOD <init> (Larj;Laxd;Lafw;)V
ARG 1 playerEntity
ARG 2 itemStack
ARG 3 hand
ARG 4 compoundTag
ARG 5 pageListTag
METHOD a localizePosition (Lcvf$a;)V
ARG 1 position
METHOD a drawHighlightRect (Lcvf$a;Lcvf$a;)V
ARG 1 position1
ARG 2 position2
METHOD a stripFromatting (Ljava/lang/String;)Ljava/lang/String;
ARG 1 string
ARG 2 stringBuilder
METHOD a getCharWidthInString (Ljava/lang/String;I)I
ARG 1 string
ARG 2 index
METHOD a getCharacterCountInFrontOfCursor (Ljava/lang/String;Lcvf$a;)I
ARG 1 content
ARG 2 cursorPosition
ARG 3 totalHeight
ARG 4 lineTop
ARG 5 lineBottom
ARG 6 processedChars
ARG 7 remainingString
ARG 8 lineLength
ARG 9 line
ARG 10 charCount
ARG 11 white
ARG 12 lastCount
METHOD a finalizeBook (Z)V
ARG 1 signBook
ARG 2 pagesTag
METHOD b keyPressedEditMode (III)Z
ARG 1 keyCode
ARG 2 scanCode
ARG 3 modifiers
ARG 4 content
METHOD b translateGlPositionToRelativePosition (Lcvf$a;)V
ARG 1 position
METHOD b applyBackspaceKey (Ljava/lang/String;)V
ARG 1 content
ARG 2 newContent
METHOD b getCharacterCountForWidth (Ljava/lang/String;I)I
ARG 1 string
ARG 2 width
METHOD c translateRelativePositionToGlPosition (Lcvf$a;)V
ARG 1 position
METHOD c applyDeleteKey (Ljava/lang/String;)V
ARG 1 content
ARG 2 newContent
METHOD c getCursorPositionForIndex (Ljava/lang/String;I)Lcvf$a;
ARG 1 content
ARG 2 index
ARG 3 cursorPosition
ARG 4 writtenChars
ARG 5 lastWrittenChars
ARG 6 remainingString
ARG 7 maxChars
ARG 8 line
ARG 9 lastChar
ARG 10 isWhite
ARG 11 toIndex
METHOD d keyPressedSignMode (III)Z
ARG 1 keyCode
ARG 2 scanCode
ARG 3 modifiers
METHOD d applyLeftArrowKey (Ljava/lang/String;)V
ARG 1 content
ARG 2 offset
METHOD d getCharacterCountForStringWidth (Ljava/lang/String;I)I
ARG 1 string
ARG 2 width
ARG 3 oldWidth
ARG 4 wholeWidth
ARG 5 bold
ARG 6 string2
ARG 8 currentChar
ARG 9 charWidth
METHOD f applyRightArrowKey (Ljava/lang/String;)V
ARG 1 content
ARG 2 offset
METHOD g applyUpArrowKey (Ljava/lang/String;)V
ARG 1 content
ARG 2 cursorPosition
ARG 3 index
METHOD h playPageTurnSound ()V
METHOD h applyDownArrowKey (Ljava/lang/String;)V
ARG 1 content
ARG 2 cursorPosition
ARG 3 contentBottom
ARG 4 index
METHOD i countPages ()I
METHOD i moveCursorToTop (Ljava/lang/String;)V
ARG 1 content
METHOD j openPreviousPage ()V
METHOD j moveCursorToBottom (Ljava/lang/String;)V
ARG 1 content
METHOD k openNextPage ()V
METHOD k setPageContent (Ljava/lang/String;)V
ARG 1 newContent
METHOD l writeString (Ljava/lang/String;)V
ARG 1 string
ARG 2 content
ARG 3 newContent
ARG 4 contentBottom
METHOD m updateButtons ()V
METHOD m getStringWidth (Ljava/lang/String;)I
ARG 1 string
METHOD n drawHighlight (Ljava/lang/String;)V
ARG 1 content
ARG 2 begin
ARG 3 end
ARG 4 highlightText
ARG 5 lastLetter
ARG 6 actualHighlight
ARG 7 cursorPosition
ARG 8 nextLinePosition
ARG 9 highlightCount
ARG 10 highlightInLine
ARG 11 lastChar
ARG 12 white
METHOD o removeEmptyPages ()V
ARG 1 pageIterator
METHOD s appendNewPage ()V
METHOD u removeHighlightedText ()V
ARG 1 content
ARG 2 begin
ARG 3 end
ARG 4 newContent
METHOD v getCurrentPageContent ()Ljava/lang/String;
METHOD w getHighlightedText ()Ljava/lang/String;
ARG 1 content
ARG 2 begin
ARG 3 end