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

public final class GuideScreen extends CompatScreen
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraft.client.gui.screens.Screen

    net.minecraft.client.gui.screens.Screen.NarratableSearchResult
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    The open book across, its border included: as wide as its bar, and the handheld book's.
    static final int
    How 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

    CUBE_MAP, font, FOOTER_SEPARATOR, HEADER_SEPARATOR, height, INWORLD_FOOTER_SEPARATOR, INWORLD_HEADER_SEPARATOR, MENU_BACKGROUND, minecraft, narratorButton, PANORAMA, screenExecutor, title, width

    Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener

    DOUBLE_CLICK_THRESHOLD_MS
  • Constructor Summary

    Constructors
    Constructor
    Description
    GuideScreen(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 in hand (null for none), whose own progress it keeps if the book says so.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    extractBackground(GuiGraphicsExtractor graphics, int mouseX, int mouseY, float a)
     
    void
    extractRenderState(GuiGraphicsExtractor graphics, int mouseX, int mouseY, float a)
    Draws the widgets (not the background).
    protected void
     
    boolean
     
    boolean
     
    boolean
    mouseClicked(MouseButtonEvent event, boolean doubleClick)
     
    boolean
    mouseDragged(MouseButtonEvent event, double dx, double dy)
     
    boolean
     
    boolean
    mouseScrolled(double x, double y, double scrollX, double scrollY)
     
    The paper and ink of a screen book's pages, for the player's mode.
    The book as it is read on this screen: where it is open.
    void
     

    Methods inherited from class net.ixdarklord.folios.internal.compat.CompatScreen

    extractPanorama, init, keyPressed, keyReleased, keyReleased, mouseClicked, mouseDragged, mouseReleased, render, renderBackground, resize, resize

    Methods inherited from class net.minecraft.client.gui.screens.Screen

    added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, changeFocus, children, clearFocus, clearTooltipForNextRenderPass, clearWidgets, findNarratableWidget, getBackgroundMusic, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, onClose, onFilesDrop, rebuildWidgets, removeWidget, renderBlurredBackground, renderMenuBackground, renderMenuBackground, renderMenuBackgroundTexture, renderPanorama, renderTransparentBackground, renderWithTooltip, repositionElements, setInitialFocus, setInitialFocus, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldCloseOnEsc, shouldNarrateNavigation, tick, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, updateNarratorStatus, wrapScreenError

    Methods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler

    getFocused, isDragging, setDragging, setFocused

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.minecraft.client.gui.components.events.ContainerEventHandler

    charTyped, getChildAt, getCurrentFocusPath, isFocused, nextFocusPath, setFocused

    Methods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener

    mouseMoved

    Methods inherited from interface net.minecraft.client.gui.components.TabOrderedElement

    getTabOrderGroup
  • Field Details

    • BORDER

      public static final int BORDER
      How far the cover shows around the pages, and how wide the fold between them is.
      See Also:
    • BOOK_WIDTH

      public static final int BOOK_WIDTH
      The open book across, its border included: as wide as its bar, and the handheld book's.
      See Also:
  • Constructor Details

  • Method Details

    • reader

      public GuideReader reader()
      The book as it is read on this screen: where it is open.
    • init

      protected void init()
      Overrides:
      init in class net.minecraft.client.gui.screens.Screen
    • pagePalette

      public static GuidePalette pagePalette(GuideBook book)
      The paper and ink of a screen book's pages, for the player's mode.
    • mouseClicked

      public boolean mouseClicked(MouseButtonEvent event, boolean doubleClick)
      Overrides:
      mouseClicked in class CompatScreen
    • mouseDragged

      public boolean mouseDragged(MouseButtonEvent event, double dx, double dy)
      Overrides:
      mouseDragged in class CompatScreen
    • mouseReleased

      public boolean mouseReleased(MouseButtonEvent event)
      Overrides:
      mouseReleased in class CompatScreen
    • mouseScrolled

      public boolean mouseScrolled(double x, double y, double scrollX, double scrollY)
    • keyPressed

      public boolean keyPressed(KeyEvent event)
      Overrides:
      keyPressed in class CompatScreen
    • removed

      public void removed()
      Overrides:
      removed in class net.minecraft.client.gui.screens.Screen
    • isPauseScreen

      public boolean isPauseScreen()
      Overrides:
      isPauseScreen in class net.minecraft.client.gui.screens.Screen
    • extractBackground

      public void extractBackground(GuiGraphicsExtractor graphics, int mouseX, int mouseY, float a)
      Overrides:
      extractBackground in class CompatScreen
    • extractRenderState

      public void extractRenderState(GuiGraphicsExtractor graphics, int mouseX, int mouseY, float a)
      Description copied from class: CompatScreen
      Draws the widgets (not the background).
      Overrides:
      extractRenderState in class CompatScreen