类 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
-
嵌套类概要
嵌套类修饰符和类型类说明static interface
static class
static class
从类继承的嵌套类/接口 net.minecraft.client.gui.screens.Screen
Screen.NarratableSearchResult
-
字段概要
字段修饰符和类型字段说明private PageButton
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
BACKGROUND_LOCATION, font, height, minecraft, renderables, screenExecutor, title, width
从接口继承的字段 net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
构造器概要
构造器限定符构造器说明BookViewScreen
(BookViewScreen.BookAccess pBookAccess) private
BookViewScreen
(BookViewScreen.BookAccess pBookAccess, boolean pPlayTurnSound) -
方法概要
修饰符和类型方法说明protected void
protected void
protected void
protected boolean
forcePage
(int pPageNum) getClickedComponentStyleAt
(double pMouseX, double pMouseY) private int
boolean
handleComponentClicked
(Style pStyle) protected void
init()
boolean
keyPressed
(int pKeyCode, int pScanCode, int pModifiers) loadPages
(CompoundTag pTag) static void
loadPages
(CompoundTag pTag, Consumer<String> pConsumer) boolean
mouseClicked
(double pMouseX, double pMouseY, int pButton) protected void
pageBack()
protected void
void
render
(GuiGraphics pGuiGraphics, int pMouseX, int pMouseY, float pPartialTick) void
setBookAccess
(BookViewScreen.BookAccess pBookAccess) boolean
setPage
(int pPageNum) private void
从类继承的方法 net.minecraft.client.gui.screens.Screen
added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, changeFocus, children, clearWidgets, findNarratableWidget, getBackgroundMusic, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, hideWidgets, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, narrationEnabled, onClose, onFilesDrop, rebuildWidgets, removed, removeWidget, renderBackground, renderDirtBackground, renderWithTooltip, repositionElements, resize, setInitialFocus, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldCloseOnEsc, shouldNarrateNavigation, tick, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, wrapScreenError
从类继承的方法 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, magicalSpecialHackyFocus, mouseDragged, mouseReleased, mouseScrolled, nextFocusPath, setFocused
从接口继承的方法 net.minecraft.client.gui.components.events.GuiEventListener
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- 另请参阅:
-
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 pPageNum) -
forcePage
protected boolean forcePage(int pPageNum) -
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 pKeyCode, int pScanCode, int pModifiers) - 指定者:
keyPressed
在接口中ContainerEventHandler
- 指定者:
keyPressed
在接口中GuiEventListener
- 覆盖:
keyPressed
在类中Screen
-
render
- 指定者:
render
在接口中Renderable
- 覆盖:
render
在类中Screen
-
mouseClicked
public boolean mouseClicked(double pMouseX, double pMouseY, int pButton) -
handleComponentClicked
- 覆盖:
handleComponentClicked
在类中Screen
-
closeScreen
protected void closeScreen() -
getClickedComponentStyleAt
-
loadPages
-
loadPages
-