Class GuideScreen
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
net.ixdarklord.folios.internal.compat.CompatScreen
net.ixdarklord.folios.internal.client.screen.GuideScreen
- All Implemented Interfaces:
net.minecraft.client.gui.components.events.ContainerEventHandler,net.minecraft.client.gui.components.events.GuiEventListener,net.minecraft.client.gui.components.Renderable,net.minecraft.client.gui.components.TabOrderedElement
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.Screen.NarratableSearchResult -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe open book across, its border included: as wide as its bar, and the handheld book's.static final intHow far the cover shows around the pages, and how wide the fold between them is.Fields inherited from class net.minecraft.client.gui.screens.Screen
BACKGROUND_LOCATION, font, height, minecraft, screenExecutor, title, widthFields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS -
Constructor Summary
ConstructorsConstructorDescriptionGuideScreen(GuideBook book, GuideSession session, @Nullable GuideBook.Location at) GuideScreen(GuideBook book, GuideSession session, @Nullable GuideBook.Location at, @Nullable net.minecraft.world.InteractionHand hand) A book opened from a copy inhand(null for none), whose own progress it keeps if the book says so. -
Method Summary
Modifier and TypeMethodDescriptionvoidextractBackground(GuiGraphicsExtractor graphics, int mouseX, int mouseY, float a) voidextractRenderState(GuiGraphicsExtractor graphics, int mouseX, int mouseY, float a) Draws the widgets (not the background).protected voidinit()booleanbooleankeyPressed(KeyEvent event) booleanmouseClicked(MouseButtonEvent event, boolean doubleClick) booleanmouseDragged(MouseButtonEvent event, double dx, double dy) booleanmouseReleased(MouseButtonEvent event) booleanmouseScrolled(double x, double y, double scrollX, double scrollY) Minecraft 26.1's scroll, with a horizontal amount (1.20.1 has none).static GuidePalettepagePalette(GuideBook book) The paper and ink of a screen book's pages, for the player's mode.reader()The book as it is read on this screen: where it is open.voidremoved()Methods inherited from class net.ixdarklord.folios.internal.compat.CompatScreen
extractPanorama, init, keyPressed, keyReleased, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, rebuildWidgets, render, renderBackground, resize, resize, setInitialFocusMethods inherited from class net.minecraft.client.gui.screens.Screen
added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, changeFocus, children, clearWidgets, findNarratableWidget, getBackgroundMusic, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, hideWidgets, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, narrationEnabled, onClose, onFilesDrop, removeWidget, renderDirtBackground, renderWithTooltip, repositionElements, setInitialFocus, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldCloseOnEsc, shouldNarrateNavigation, tick, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, wrapScreenErrorMethods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocusedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.components.events.ContainerEventHandler
charTyped, getChildAt, getCurrentFocusPath, isFocused, magicalSpecialHackyFocus, nextFocusPath, setFocusedMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
mouseMovedMethods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Field Details
-
BORDER
public static final int BORDERHow far the cover shows around the pages, and how wide the fold between them is.- See Also:
-
BOOK_WIDTH
public static final int BOOK_WIDTHThe open book across, its border included: as wide as its bar, and the handheld book's.- See Also:
-
-
Constructor Details
-
GuideScreen
-
GuideScreen
public GuideScreen(GuideBook book, GuideSession session, @Nullable GuideBook.Location at, @Nullable net.minecraft.world.InteractionHand hand) A book opened from a copy inhand(null for none), whose own progress it keeps if the book says so.
-
-
Method Details
-
reader
The book as it is read on this screen: where it is open. -
init
protected void init()- Overrides:
initin classnet.minecraft.client.gui.screens.Screen
-
pagePalette
The paper and ink of a screen book's pages, for the player's mode. -
mouseClicked
- Overrides:
mouseClickedin classCompatScreen
-
mouseDragged
- Overrides:
mouseDraggedin classCompatScreen
-
mouseReleased
- Overrides:
mouseReleasedin classCompatScreen
-
mouseScrolled
public boolean mouseScrolled(double x, double y, double scrollX, double scrollY) Description copied from class:CompatScreenMinecraft 26.1's scroll, with a horizontal amount (1.20.1 has none).- Overrides:
mouseScrolledin classCompatScreen
-
keyPressed
- Overrides:
keyPressedin classCompatScreen
-
removed
public void removed()- Overrides:
removedin classnet.minecraft.client.gui.screens.Screen
-
isPauseScreen
public boolean isPauseScreen()- Overrides:
isPauseScreenin classnet.minecraft.client.gui.screens.Screen
-
extractBackground
- Overrides:
extractBackgroundin classCompatScreen
-
extractRenderState
Description copied from class:CompatScreenDraws the widgets (not the background).- Overrides:
extractRenderStatein classCompatScreen
-