net.minecraft.client.gui.screens.inventory

public class BookEditScreen

extends Screen

All mapped superinterfaces:

ContainerEventHandler, GuiEventListener, Widget

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

Constructor summary

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

Method summary

Modifier and TypeMethod
private void
b(String arg0)
setClipboard(String arg0)
method_27584(String arg0)
setClipboard(String clipboard)
m_98147_(String arg0)
private String
h()
getClipboard()
method_27595()
getClipboard()
m_98180_()
private int
v()
getNumPages()
method_17046()
countPages()
m_98181_()
public void
d()
tick()
method_25393()
tick()
m_96624_()
protected void
b()
init()
method_25426()
init()
m_7856_()
private void
w()
pageBack()
method_2437()
openPreviousPage()
m_98182_()
private void
x()
pageForward()
method_2444()
openNextPage()
m_98183_()
public void
e()
removed()
method_25432()
removed()
m_7861_()
private void
y()
updateButtonVisibility()
method_2413()
updateButtons()
m_98184_()
private void
z()
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
A()
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
B()
keyUp()
method_27597()
moveUpLine()
m_98187_()
private void
C()
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
D()
keyHome()
method_2421()
moveToLineStart()
m_98189_()
private void
E()
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
F()
getCurrentPageText()
method_2427()
getCurrentPageContent()
m_98191_()
private void
c(String arg0)
setCurrentPageText(String arg0)
method_2439(String arg0)
setPageContent(String newContent)
m_98158_(String arg0)
public void
a(dsj arg0, int arg1, int arg2, float arg3)
render(PoseStack arg0, int arg1, int arg2, float arg3)
method_25394(class_4587 arg0, int arg1, int arg2, float arg3)
render(MatrixStack arg0, int arg1, int arg2, float arg3)
m_6305_(C_3181_ p_98105_, int p_98106_, int p_98107_, float arg3)
private void
a(dsj arg0, edu$c arg1, boolean arg2)
renderCursor(PoseStack arg0, BookEditScreen$Pos2i arg1, boolean arg2)
method_27581(class_4587 arg0, class_473$class_5234 arg1, boolean arg2)
drawCursor(MatrixStack matrices, BookEditScreen$Position position, boolean atEnd)
m_98108_(C_3181_ p_98110_, C_3635_$C_3638_ p_98111_, boolean arg2)
private void
a(epq[] arg0)
renderHighlight(Rect2i[] arg0)
method_27588(class_768[] arg0)
drawSelection(Rect2i[] selectionRectangles)
m_98138_(C_4147_[] arg0)
private BookEditScreen$Pos2i
a(edu$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(edu$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
G()
getDisplayCache()
method_27576()
getPageContent()
m_98079_()
private void
H()
clearDisplayCache()
method_27577()
invalidatePageContent()
m_98080_()
private void
I()
clearDisplayCacheAfterPageChange()
method_27872()
changePage()
m_98081_()
private BookEditScreen$DisplayCache
J()
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, dya 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(edu$c arg0, edu$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)