类 BookViewScreen
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.inventory.BookViewScreen
- 所有已实现的接口:
ContainerEventHandler
,GuiEventListener
,Renderable
,TabOrderedElement
- 直接已知子类:
LecternScreen
-
嵌套类概要
嵌套类从类继承的嵌套类/接口 net.minecraft.client.gui.screens.Screen
Screen.NarratableSearchResult
-
字段概要
字段修饰符和类型字段说明private PageButton
private static final int
private static final int
static final ResourceLocation
private BookViewScreen.BookAccess
private int
private List
<FormattedCharSequence> private int
static final BookViewScreen.BookAccess
private PageButton
protected static final int
protected static final int
static final int
static final int
static final int
private Component
private final boolean
protected static final int
protected static final int
从类继承的字段 net.minecraft.client.gui.screens.Screen
CUBE_MAP, font, FOOTER_SEPARATOR, HEADER_SEPARATOR, height, INWORLD_FOOTER_SEPARATOR, INWORLD_HEADER_SEPARATOR, MENU_BACKGROUND, minecraft, narratorButton, PANORAMA, renderables, screenExecutor, title, width
从接口继承的字段 net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
构造器概要
构造器限定符构造器说明BookViewScreen
(BookViewScreen.BookAccess p_98264_) private
BookViewScreen
(BookViewScreen.BookAccess p_98266_, boolean p_98267_) -
方法概要
修饰符和类型方法说明protected void
protected void
protected void
protected boolean
forcePage
(int p_98295_) getClickedComponentStyleAt
(double p_98269_, double p_98270_) private int
boolean
handleComponentClicked
(Style p_98293_) protected void
init()
boolean
keyPressed
(int p_98278_, int p_98279_, int p_98280_) boolean
mouseClicked
(double p_98272_, double p_98273_, int p_98274_) protected void
pageBack()
protected void
void
render
(GuiGraphics p_281997_, int p_281262_, int p_283321_, float p_282251_) void
renderBackground
(GuiGraphics p_301081_, int p_297765_, int p_300192_, float p_297977_) void
setBookAccess
(BookViewScreen.BookAccess p_98289_) boolean
setPage
(int p_98276_) private void
从类继承的方法 net.minecraft.client.gui.screens.Screen
added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, changeFocus, children, clearFocus, clearTooltipForNextRenderPass, clearWidgets, fillCrashDetails, findNarratableWidget, getBackgroundMusic, getFont, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, onClose, onFilesDrop, rebuildWidgets, removed, removeWidget, renderBlurredBackground, renderMenuBackground, renderMenuBackground, renderMenuBackgroundTexture, renderPanorama, renderTransparentBackground, renderWithTooltip, repositionElements, resize, setInitialFocus, setInitialFocus, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldCloseOnEsc, shouldNarrateNavigation, showsActiveEffects, tick, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, updateNarratorStatus
从类继承的方法 net.minecraft.client.gui.components.events.AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocused
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraft.client.gui.components.events.ContainerEventHandler
charTyped, getChildAt, getCurrentFocusPath, isFocused, keyReleased, mouseDragged, mouseReleased, mouseScrolled, nextFocusPath, setFocused
从接口继承的方法 net.minecraft.client.gui.components.events.GuiEventListener
getBorderForArrowNavigation, mouseMoved
从接口继承的方法 net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
字段详细资料
-
PAGE_INDICATOR_TEXT_Y_OFFSET
public static final int PAGE_INDICATOR_TEXT_Y_OFFSET- 另请参阅:
-
PAGE_TEXT_X_OFFSET
public static final int PAGE_TEXT_X_OFFSET- 另请参阅:
-
PAGE_TEXT_Y_OFFSET
public static final int PAGE_TEXT_Y_OFFSET- 另请参阅:
-
BACKGROUND_TEXTURE_WIDTH
private static final int BACKGROUND_TEXTURE_WIDTH- 另请参阅:
-
BACKGROUND_TEXTURE_HEIGHT
private static final int BACKGROUND_TEXTURE_HEIGHT- 另请参阅:
-
EMPTY_ACCESS
-
BOOK_LOCATION
-
TEXT_WIDTH
protected static final int TEXT_WIDTH- 另请参阅:
-
TEXT_HEIGHT
protected static final int TEXT_HEIGHT- 另请参阅:
-
IMAGE_WIDTH
protected static final int IMAGE_WIDTH- 另请参阅:
-
IMAGE_HEIGHT
protected static final int IMAGE_HEIGHT- 另请参阅:
-
bookAccess
-
currentPage
private int currentPage -
cachedPageComponents
-
cachedPage
private int cachedPage -
pageMsg
-
forwardButton
-
backButton
-
playTurnSound
private final boolean playTurnSound
-
-
构造器详细资料
-
BookViewScreen
-
BookViewScreen
public BookViewScreen() -
BookViewScreen
-
-
方法详细资料
-
setBookAccess
-
setPage
public boolean setPage(int p_98276_) -
forcePage
protected boolean forcePage(int p_98295_) -
init
protected void init() -
createMenuControls
protected void createMenuControls() -
createPageControlButtons
protected void createPageControlButtons() -
getNumPages
private int getNumPages() -
pageBack
protected void pageBack() -
pageForward
protected void pageForward() -
updateButtonVisibility
private void updateButtonVisibility() -
keyPressed
public boolean keyPressed(int p_98278_, int p_98279_, int p_98280_) - 指定者:
keyPressed
在接口中ContainerEventHandler
- 指定者:
keyPressed
在接口中GuiEventListener
- 覆盖:
keyPressed
在类中Screen
-
render
- 指定者:
render
在接口中Renderable
- 覆盖:
render
在类中Screen
-
renderBackground
- 覆盖:
renderBackground
在类中Screen
-
mouseClicked
public boolean mouseClicked(double p_98272_, double p_98273_, int p_98274_) -
handleComponentClicked
- 覆盖:
handleComponentClicked
在类中Screen
-
closeScreen
protected void closeScreen() -
getClickedComponentStyleAt
-