net.minecraft.client.gui.screens.inventory

public class BookEditScreen

extends Screen

All mapped superinterfaces:

ContainerEventHandler, GuiEventListener, TabOrderedElement, Renderable

fuu
net.minecraft.client.gui.screens.inventory.BookEditScreen
net.minecraft.class_473
net.minecraft.client.gui.screen.ingame.BookEditScreen

Field summary

Modifier and TypeField
private static final int
a
TEXT_WIDTH
field_32323
MAX_TEXT_WIDTH
private static final int
b
TEXT_HEIGHT
field_32324
MAX_TEXT_HEIGHT
private static final int
c
IMAGE_WIDTH
field_32326
WIDTH
private static final int
d
IMAGE_HEIGHT
field_32327
HEIGHT
private static final int
s
BACKGROUND_TEXTURE_WIDTH
field_52805
field_52805
private static final int
u
BACKGROUND_TEXTURE_HEIGHT
field_52806
field_52806
private static final Component
v
EDIT_TITLE_LABEL
field_25893
EDIT_TITLE_TEXT
private static final Component
w
FINALIZE_WARNING_LABEL
field_25894
FINALIZE_WARNING_TEXT
private static final FormattedCharSequence
x
BLACK_CURSOR
field_25895
BLACK_CURSOR_TEXT
private static final FormattedCharSequence
y
GRAY_CURSOR
field_25896
GRAY_CURSOR_TEXT
private final Player
z
owner
field_2826
player
private final ItemStack
A
book
field_2835
stack
private boolean
B
isModified
field_2837
dirty
private boolean
C
isSigning
field_2828
signing
private int
D
frameTick
field_2844
tickCounter
private int
E
currentPage
field_2840
currentPage
private final List<String>
F
pages
field_17116
pages
private String
G
title
field_2847
title
private final TextFieldHelper
H
pageEdit
field_24269
currentPageSelectionManager
private final TextFieldHelper
I
titleEdit
field_24270
bookTitleSelectionManager
private long
J
lastClickTime
field_2830
lastClickTime
private int
K
lastIndex
field_2827
lastClickIndex
private PageButton
L
forwardButton
field_2843
nextPageButton
private PageButton
M
backButton
field_2839
previousPageButton
private Button
N
doneButton
field_2848
doneButton
private Button
O
signButton
field_2831
signButton
private Button
P
finalizeButton
field_2841
finalizeButton
private Button
Q
cancelButton
field_2849
cancelButton
private final InteractionHand
R
hand
field_2832
hand
private BookEditScreen$DisplayCache
S
displayCache
field_24268
pageContent
private Component
T
pageMsg
field_25891
pageIndicatorText
private final Component
U
ownerText
field_25892
signedByText

Constructor summary

ModifierConstructor
public (Player player, ItemStack stack, InteractionHand hand, WritableBookContent writableBookContent)

Method summary

Modifier and TypeMethod
private void
a(String arg0)
setClipboard(String arg0)
method_27584(String arg0)
setClipboard(String clipboard)
private String
l()
getClipboard()
method_27595()
getClipboard()
private int
E()
getNumPages()
method_17046()
countPages()
public void
e()
tick()
method_25393()
tick()
protected void
aT_()
init()
method_25426()
init()
private void
F()
pageBack()
method_2437()
openPreviousPage()
private void
G()
pageForward()
method_2444()
openNextPage()
private void
J()
updateButtonVisibility()
method_2413()
updateButtons()
private void
K()
eraseEmptyTrailingPages()
method_17047()
removeEmptyPages()
private void
c(boolean arg0)
saveChanges(boolean arg0)
method_2407(boolean arg0)
finalizeBook(boolean signBook)
private void
L()
updateLocalCopy()
method_37433()
writeNbtData()
private void
M()
appendPageToBook()
method_2436()
appendNewPage()
public boolean
a(int arg0, int arg1, int arg2)
keyPressed(int arg0, int arg1, int arg2)
method_25404(int arg0, int arg1, int arg2)
keyPressed(int arg0, int arg1, int arg2)
public boolean
a(char arg0, int arg1)
charTyped(char arg0, int arg1)
method_25400(char arg0, int arg1)
charTyped(char arg0, int arg1)
private boolean
b(int arg0, int arg1, int arg2)
bookKeyPressed(int arg0, int arg1, int arg2)
method_27592(int arg0, int arg1, int arg2)
keyPressedEditMode(int keyCode, int scanCode, int modifiers)
private void
N()
keyUp()
method_27597()
moveUpLine()
private void
O()
keyDown()
method_27598()
moveDownLine()
private void
a(int arg0)
changeLine(int arg0)
method_27580(int arg0)
moveVertically(int lines)
private void
P()
keyHome()
method_2421()
moveToLineStart()
private void
Q()
keyEnd()
method_2414()
moveToLineEnd()
private boolean
d(int arg0, int arg1, int arg2)
titleKeyPressed(int arg0, int arg1, int arg2)
method_2446(int arg0, int arg1, int arg2)
keyPressedSignMode(int keyCode, int scanCode, int modifiers)
private String
R()
getCurrentPageText()
method_2427()
getCurrentPageContent()
private void
b(String arg0)
setCurrentPageText(String arg0)
method_2439(String arg0)
setPageContent(String newContent)
public void
a(fns arg0, int arg1, int arg2, float arg3)
render(GuiGraphics arg0, int arg1, int arg2, float arg3)
method_25394(class_332 arg0, int arg1, int arg2, float arg3)
render(DrawContext arg0, int arg1, int arg2, float arg3)
public void
b(fns arg0, int arg1, int arg2, float arg3)
renderBackground(GuiGraphics arg0, int arg1, int arg2, float arg3)
method_25420(class_332 arg0, int arg1, int arg2, float arg3)
renderBackground(DrawContext arg0, int arg1, int arg2, float arg3)
private void
a(fns arg0, fuu$c arg1, boolean arg2)
renderCursor(GuiGraphics arg0, BookEditScreen$Pos2i arg1, boolean arg2)
method_27581(class_332 arg0, class_473$class_5234 arg1, boolean arg2)
drawCursor(DrawContext context, BookEditScreen$Position position, boolean atEnd)
private void
a(fns arg0, gls[] arg1)
renderHighlight(GuiGraphics arg0, Rect2i[] arg1)
method_27588(class_332 arg0, class_768[] arg1)
drawSelection(DrawContext context, Rect2i[] selectionRectangles)
private BookEditScreen$Pos2i
a(fuu$c arg0)
convertScreenToLocal(BookEditScreen$Pos2i arg0)
method_27582(class_473$class_5234 arg0)
screenPositionToAbsolutePosition(BookEditScreen$Position position)
private BookEditScreen$Pos2i
b(fuu$c arg0)
convertLocalToScreen(BookEditScreen$Pos2i arg0)
method_27590(class_473$class_5234 arg0)
absolutePositionToScreenPosition(BookEditScreen$Position position)
public boolean
a(double arg0, double arg1, int arg2)
mouseClicked(double arg0, double arg1, int arg2)
method_25402(double arg0, double arg1, int arg2)
mouseClicked(double arg0, double arg1, int arg2)
private void
b(int arg0)
selectWord(int arg0)
method_27589(int arg0)
selectCurrentWord(int cursor)
public boolean
a(double arg0, double arg1, int arg2, double arg3, double arg4)
mouseDragged(double arg0, double arg1, int arg2, double arg3, double arg4)
method_25403(double arg0, double arg1, int arg2, double arg3, double arg4)
mouseDragged(double arg0, double arg1, int arg2, double arg3, double arg4)
private BookEditScreen$DisplayCache
S()
getDisplayCache()
method_27576()
getPageContent()
private void
T()
clearDisplayCache()
method_27577()
invalidatePageContent()
private void
U()
clearDisplayCacheAfterPageChange()
method_27872()
changePage()
private BookEditScreen$DisplayCache
V()
rebuildDisplayCache()
method_27578()
createPageContent()
static int
a(int[] arg0, int arg1)
findLineFromPos(int[] arg0, int arg1)
method_27591(int[] arg0, int arg1)
getLineFromOffset(int[] lineStarts, int position)
private Rect2i
a(String arg0, fmq arg1, int arg2, int arg3, int arg4, int arg5)
createPartialLineSelection(String arg0, StringSplitter arg1, int arg2, int arg3, int arg4, int arg5)
method_27585(String arg0, class_5225 arg1, int arg2, int arg3, int arg4, int arg5)
getLineSelectionRectangle(String string, TextHandler handler, int selectionStart, int selectionEnd, int lineY, int lineStart)
private Rect2i
a(fuu$c arg0, fuu$c arg1)
createSelection(BookEditScreen$Pos2i arg0, BookEditScreen$Pos2i arg1)
method_27583(class_473$class_5234 arg0, class_473$class_5234 arg1)
getRectFromCorners(BookEditScreen$Position start, BookEditScreen$Position end)