net.minecraft.client.gui.screens.inventory

public class BookViewScreen

extends Screen

All mapped superinterfaces:

ContainerEventHandler, GuiEventListener, TabOrderedElement, Renderable

gnz
net.minecraft.client.gui.screens.inventory.BookViewScreen
net.minecraft.class_3872
net.minecraft.client.gui.screen.ingame.BookScreen
net.minecraft.src.C_3639_

Field summary

Modifier and TypeField
public static final int
a
PAGE_INDICATOR_TEXT_Y_OFFSET
field_32328
field_32328
f_169687_
public static final int
b
PAGE_TEXT_X_OFFSET
field_32329
field_32329
f_169688_
public static final int
c
PAGE_TEXT_Y_OFFSET
field_32330
field_32330
f_169689_
private static final int
w
BACKGROUND_TEXTURE_WIDTH
field_52807
field_52807
f_348874_
private static final int
x
BACKGROUND_TEXTURE_HEIGHT
field_52808
field_52808
f_347708_
private static final Component
y
TITLE
field_60476
TITLE_TEXT
f_399307_
public static final BookViewScreen$BookAccess
d
EMPTY_ACCESS
field_17417
EMPTY_PROVIDER
f_98251_
public static final ResourceLocation
e
BOOK_LOCATION
field_17117
BOOK_TEXTURE
f_98252_
protected static final int
f
TEXT_WIDTH
field_32331
MAX_TEXT_WIDTH
f_169690_
protected static final int
t
TEXT_HEIGHT
field_32332
MAX_TEXT_HEIGHT
f_169691_
protected static final int
u
IMAGE_WIDTH
field_32333
WIDTH
f_169692_
protected static final int
v
IMAGE_HEIGHT
field_32334
HEIGHT
f_169693_
private BookViewScreen$BookAccess
z
bookAccess
field_17418
contents
f_98253_
private int
A
currentPage
field_17119
pageIndex
f_98254_
private List<FormattedCharSequence>
B
cachedPageComponents
field_17120
cachedPage
f_98255_
private int
C
cachedPage
field_17121
cachedPageIndex
f_98256_
private Component
D
pageMsg
field_25897
pageIndexText
f_98257_
private PageButton
E
forwardButton
field_17122
nextPageButton
f_98258_
private PageButton
F
backButton
field_17123
previousPageButton
f_98259_
private final boolean
G
playTurnSound
field_18976
pageTurnSound
f_98260_

Constructor summary

ModifierConstructor
public (BookViewScreen$BookAccess pageProvider)
public ()
private (BookViewScreen$BookAccess contents, boolean playPageTurnSound)

Method summary

Modifier and TypeMethod
public void
a(gnz$a arg0)
setBookAccess(BookViewScreen$BookAccess arg0)
method_17554(class_3872$class_3931 arg0)
setPageProvider(BookScreen$Contents pageProvider)
m_98288_(C_3639_$C_3641_ arg0)
public boolean
a(int arg0)
setPage(int arg0)
method_17556(int arg0)
setPage(int index)
m_98275_(int arg0)
protected boolean
b(int arg0)
forcePage(int arg0)
method_17789(int arg0)
jumpToPage(int page)
m_7735_(int arg0)
protected void
bg_()
init()
method_25426()
init()
m_7856_()
public Component
i()
getNarrationMessage()
method_25435()
getNarratedTitle()
m_142562_()
private Component
H()
getPageNumberMessage()
method_71545()
getPageIndicatorText()
m_402468_()
protected void
o()
createMenuControls()
method_17557()
addCloseButton()
m_7829_()
protected void
p()
createPageControlButtons()
method_17558()
addPageButtons()
m_98301_()
private int
L()
getNumPages()
method_17055()
getPageCount()
m_98300_()
protected void
I()
pageBack()
method_17057()
goToPreviousPage()
m_7811_()
protected void
J()
pageForward()
method_17058()
goToNextPage()
m_7815_()
private void
M()
updateButtonVisibility()
method_17059()
updatePageButtons()
m_98302_()
public boolean
a(gth arg0)
keyPressed(KeyEvent arg0)
method_25404(class_11908 arg0)
keyPressed(KeyInput arg0)
m_7933_(C_411099_ arg0)
public void
a(gdd 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_281262_, int p_283321_, int p_282251_, float arg3)
public void
b(gdd 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)
m_280273_(C_279497_ p_297765_, int p_300192_, int p_297977_, float arg3)
public boolean
a(gti arg0, boolean arg1)
mouseClicked(MouseButtonEvent arg0, boolean arg1)
method_25402(class_11909 arg0, boolean arg1)
mouseClicked(Click arg0, boolean arg1)
m_6375_(C_410856_ p_425186_, boolean arg1)
protected void
a(fzz arg0, xv arg1)
handleClickEvent(Minecraft arg0, ClickEvent arg1)
method_71846(class_310 arg0, class_2558 arg1)
handleClickEvent(MinecraftClient arg0, ClickEvent arg1)
m_401276_(C_3391_ p_407221_, C_4993_ arg1)
protected void
K()
closeContainerOnServer()
method_72151()
closeScreen()
m_169770_()
public boolean
v()
isInGameUi()
method_73150()
deferSubtitles()
m_415625_()
public Style
b(double arg0, double arg1)
getClickedComponentStyleAt(double arg0, double arg1)
method_17048(double arg0, double arg1)
getTextStyleAt(double x, double y)
m_98268_(double p_98270_, double arg1)