Class GuideScreen

java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
guideme.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 class GuideScreen extends net.minecraft.client.gui.screens.Screen
  • 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
     

    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, renderables, screenExecutor, title, width

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

    DOUBLE_CLICK_THRESHOLD_MS
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
     
    net.minecraft.resources.ResourceLocation
     
    @Nullable guideme.internal.util.Point
    getDocumentPoint(double screenX, double screenY)
     
     
     
    getScreenPoint(LytPoint documentPoint)
    Translate a point from within the document into the screen coordinate system.
    protected void
     
    boolean
    mouseClicked(double mouseX, double mouseY, int button)
     
    void
    mouseMoved(double mouseX, double mouseY)
     
    boolean
    mouseReleased(double mouseX, double mouseY, int button)
     
    boolean
    mouseScrolled(double mouseX, double mouseY, double deltaX, double deltaY)
     
    void
     
    void
    navigateTo(net.minecraft.resources.ResourceLocation pageId)
     
    void
     
    openAtPreviousPage(Guide guide, PageAnchor fallbackPage, GuideScreenHistory history)
    Opens at current history position and only falls back to the index if the history is empty.
    openNew(Guide guide, PageAnchor anchor, GuideScreenHistory history)
    Opens and resets history.
    void
     
    void
     
    void
     
    void
     
    void
    render(net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick)
     
    void
    renderBackground(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY, float partialTick)
     
    void
    setReturnToOnClose(@Nullable net.minecraft.client.gui.screens.Screen screen)
    Sets a screen to return to when closing this guide.
    void
     

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

    added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, changeFocus, children, clearFocus, clearTooltipForNextRenderPass, clearWidgets, findNarratableWidget, getBackgroundMusic, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, keyPressed, onFilesDrop, rebuildWidgets, removeWidget, renderBlurredBackground, renderMenuBackground, renderMenuBackground, renderMenuBackgroundTexture, renderPanorama, renderTransparentBackground, renderWithTooltip, repositionElements, resize, setInitialFocus, setInitialFocus, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldCloseOnEsc, shouldNarrateNavigation, 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, keyReleased, mouseDragged, nextFocusPath, setFocused

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

    getTabOrderGroup
  • Field Details

  • Method Details

    • openNew

      public static GuideScreen openNew(Guide guide, PageAnchor anchor, GuideScreenHistory history)
      Opens and resets history.
    • openAtPreviousPage

      public static GuideScreen openAtPreviousPage(Guide guide, PageAnchor fallbackPage, GuideScreenHistory history)
      Opens at current history position and only falls back to the index if the history is empty.
    • init

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

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

      public void render(net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick)
      Specified by:
      render in interface net.minecraft.client.gui.components.Renderable
      Overrides:
      render in class net.minecraft.client.gui.screens.Screen
    • renderBackground

      public void renderBackground(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY, float partialTick)
      Overrides:
      renderBackground in class net.minecraft.client.gui.screens.Screen
    • mouseMoved

      public void mouseMoved(double mouseX, double mouseY)
    • mouseClicked

      public boolean mouseClicked(double mouseX, double mouseY, int button)
    • mouseReleased

      public boolean mouseReleased(double mouseX, double mouseY, int button)
    • reloadPage

      public void reloadPage()
    • removed

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

      public void setReturnToOnClose(@Nullable @Nullable net.minecraft.client.gui.screens.Screen screen)
      Sets a screen to return to when closing this guide.
    • openUrl

      public void openUrl(String href)
    • afterMouseMove

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

      @Nullable public @Nullable guideme.internal.util.Point getDocumentPoint(double screenX, double screenY)
    • getScreenPoint

      public LytPoint getScreenPoint(LytPoint documentPoint)
      Translate a point from within the document into the screen coordinate system.
    • mouseScrolled

      public boolean mouseScrolled(double mouseX, double mouseY, double deltaX, double deltaY)
    • getCurrentPageId

      public net.minecraft.resources.ResourceLocation getCurrentPageId()
    • getGuide

      public PageCollection getGuide()
    • getMouseCaptureTarget

      @Nullable public @Nullable InteractiveElement getMouseCaptureTarget()
    • captureMouse

      public void captureMouse(InteractiveElement element)
    • releaseMouseCapture

      public void releaseMouseCapture(InteractiveElement element)
    • onClose

      public void onClose()
      Overrides:
      onClose in class net.minecraft.client.gui.screens.Screen