net.minecraft.client.gui.screens.inventory

public class BookEditScreen

extends Screen

All mapped superinterfaces:

ContainerEventHandler, GuiEventListener, TabOrderedElement, Renderable

evv
net.minecraft.client.gui.screens.inventory.BookEditScreen
net.minecraft.class_473
net.minecraft.client.gui.screen.ingame.BookEditScreen
net.minecraft.src.C_3635_

Field summary

Modifier and TypeField
private static final int
a
TEXT_WIDTH
field_32323
MAX_TEXT_WIDTH
f_169682_
private static final int
b
TEXT_HEIGHT
field_32324
MAX_TEXT_HEIGHT
f_169683_
private static final int
c
IMAGE_WIDTH
field_32326
WIDTH
f_169685_
private static final int
k
IMAGE_HEIGHT
field_32327
HEIGHT
f_169686_
private static final Component
l
EDIT_TITLE_LABEL
field_25893
EDIT_TITLE_TEXT
f_98060_
private static final Component
m
FINALIZE_WARNING_LABEL
field_25894
FINALIZE_WARNING_TEXT
f_98061_
private static final FormattedCharSequence
n
BLACK_CURSOR
field_25895
BLACK_CURSOR_TEXT
f_98062_
private static final FormattedCharSequence
o
GRAY_CURSOR
field_25896
GRAY_CURSOR_TEXT
f_98063_
private final Player
p
owner
field_2826
player
f_98064_
private final ItemStack
q
book
field_2835
itemStack
f_98065_
private boolean
r
isModified
field_2837
dirty
f_98066_
private boolean
s
isSigning
field_2828
signing
f_98067_
private int
t
frameTick
field_2844
tickCounter
f_98068_
private int
u
currentPage
field_2840
currentPage
f_98069_
private final List<String>
v
pages
field_17116
pages
f_98070_
private String
w
title
field_2847
title
f_98071_
private final TextFieldHelper
x
pageEdit
field_24269
currentPageSelectionManager
f_98072_
private final TextFieldHelper
y
titleEdit
field_24270
bookTitleSelectionManager
f_98073_
private long
z
lastClickTime
field_2830
lastClickTime
f_98048_
private int
A
lastIndex
field_2827
lastClickIndex
f_98049_
private PageButton
C
forwardButton
field_2843
nextPageButton
f_98050_
private PageButton
D
backButton
field_2839
previousPageButton
f_98051_
private Button
E
doneButton
field_2848
doneButton
f_98052_
private Button
F
signButton
field_2831
signButton
f_98053_
private Button
G
finalizeButton
field_2841
finalizeButton
f_98054_
private Button
H
cancelButton
field_2849
cancelButton
f_98055_
private final InteractionHand
I
hand
field_2832
hand
f_98056_
private BookEditScreen$DisplayCache
J
displayCache
field_24268
pageContent
f_98057_
private Component
K
pageMsg
field_25891
pageIndicatorText
f_98058_
private final Component
L
ownerText
field_25892
signedByText
f_98059_

Constructor summary

ModifierConstructor
public (Player player, ItemStack itemStack, InteractionHand hand)

Method summary

Modifier and TypeMethod
private void
a(String arg0)
setClipboard(String arg0)
method_27584(String arg0)
setClipboard(String clipboard)
m_98147_(String arg0)
private String
l()
getClipboard()
method_27595()
getClipboard()
m_98180_()
private int
B()
getNumPages()
method_17046()
countPages()
m_98181_()
public void
f()
tick()
method_25393()
tick()
m_86600_()
protected void
b()
init()
method_25426()
init()
m_7856_()
private void
C()
pageBack()
method_2437()
openPreviousPage()
m_98182_()
private void
D()
pageForward()
method_2444()
openNextPage()
m_98183_()
private void
E()
updateButtonVisibility()
method_2413()
updateButtons()
m_98184_()
private void
F()
eraseEmptyTrailingPages()
method_17047()
removeEmptyPages()
m_98185_()
private void
c(boolean arg0)
saveChanges(boolean arg0)
method_2407(boolean arg0)
finalizeBook(boolean signBook)
m_98160_(boolean arg0)
private void
e(boolean arg0)
updateLocalCopy(boolean arg0)
method_37433(boolean arg0)
writeNbtData(boolean signBook)
m_182574_(boolean arg0)
private void
G()
appendPageToBook()
method_2436()
appendNewPage()
m_98186_()
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)
m_7933_(int p_98101_, int p_98102_, 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)
m_5534_(char p_98086_, int arg1)
private boolean
c(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)
m_98152_(int p_98154_, int p_98155_, int arg2)
private void
H()
keyUp()
method_27597()
moveUpLine()
m_98187_()
private void
I()
keyDown()
method_27598()
moveDownLine()
m_98188_()
private void
a(int arg0)
changeLine(int arg0)
method_27580(int arg0)
moveVertically(int lines)
m_98097_(int arg0)
private void
J()
keyHome()
method_2421()
moveToLineStart()
m_98189_()
private void
K()
keyEnd()
method_2414()
moveToLineEnd()
m_98190_()
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)
m_98163_(int p_98165_, int p_98166_, int arg2)
private String
L()
getCurrentPageText()
method_2427()
getCurrentPageContent()
m_98191_()
private void
b(String arg0)
setCurrentPageText(String arg0)
method_2439(String arg0)
setPageContent(String newContent)
m_98158_(String arg0)
public void
a(eox 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)
m_88315_(C_279497_ p_282965_, int p_283294_, int p_281293_, float arg3)
private void
a(eox arg0, evv$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)
m_280220_(C_279497_ p_282190_, C_3635_$C_3638_ p_282412_, boolean arg2)
private void
a(eox arg0, fkc[] arg1)
renderHighlight(GuiGraphics arg0, Rect2i[] arg1)
method_27588(class_332 arg0, class_768[] arg1)
drawSelection(DrawContext context, Rect2i[] selectionRectangles)
m_264248_(C_279497_ p_265482_, C_4147_[] arg1)
private BookEditScreen$Pos2i
a(evv$c arg0)
convertScreenToLocal(BookEditScreen$Pos2i arg0)
method_27582(class_473$class_5234 arg0)
screenPositionToAbsolutePosition(BookEditScreen$Position position)
m_98114_(C_3635_$C_3638_ arg0)
private BookEditScreen$Pos2i
b(evv$c arg0)
convertLocalToScreen(BookEditScreen$Pos2i arg0)
method_27590(class_473$class_5234 arg0)
absolutePositionToScreenPosition(BookEditScreen$Position position)
m_98145_(C_3635_$C_3638_ arg0)
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)
m_6375_(double p_98089_, double arg1, int arg2)
private void
b(int arg0)
selectWord(int arg0)
method_27589(int arg0)
selectCurrentWord(int cursor)
m_98141_(int arg0)
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)
m_7979_(double p_98093_, double p_98095_, int arg2, double arg3, double arg4)
private BookEditScreen$DisplayCache
M()
getDisplayCache()
method_27576()
getPageContent()
m_98079_()
private void
N()
clearDisplayCache()
method_27577()
invalidatePageContent()
m_98080_()
private void
O()
clearDisplayCacheAfterPageChange()
method_27872()
changePage()
m_98081_()
private BookEditScreen$DisplayCache
P()
rebuildDisplayCache()
method_27578()
createPageContent()
m_98082_()
static int
a(int[] arg0, int arg1)
findLineFromPos(int[] arg0, int arg1)
method_27591(int[] arg0, int arg1)
getLineFromOffset(int[] lineStarts, int position)
m_98149_(int[] p_98150_, int p_98151_)
private Rect2i
a(String arg0, enz 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)
m_98119_(String p_98121_, C_3410_ p_98122_, int p_98123_, int p_98124_, int p_98125_, int arg5)
private Rect2i
a(evv$c arg0, evv$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)
m_98116_(C_3635_$C_3638_ p_98118_, C_3635_$C_3638_ arg1)