Package guideme.screen
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 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 TypeMethodDescriptionvoid
void
captureMouse
(InteractiveElement element) net.minecraft.resources.ResourceLocation
@Nullable guideme.internal.util.Point
getDocumentPoint
(double screenX, double screenY) getGuide()
@Nullable InteractiveElement
getScreenPoint
(LytPoint documentPoint) Translate a point from within the document into the screen coordinate system.protected void
init()
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
navigateTo
(PageAnchor anchor) void
navigateTo
(net.minecraft.resources.ResourceLocation pageId) void
onClose()
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.static GuideScreen
openNew
(Guide guide, PageAnchor anchor, GuideScreenHistory history) Opens and resets history.void
void
releaseMouseCapture
(InteractiveElement element) void
void
removed()
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
tick()
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
-
DOCUMENT_RECT_MARGIN
public static final int DOCUMENT_RECT_MARGIN- See Also:
-
-
Method Details
-
openNew
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 classnet.minecraft.client.gui.screens.Screen
-
tick
public void tick()- Overrides:
tick
in classnet.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 interfacenet.minecraft.client.gui.components.Renderable
- Overrides:
render
in classnet.minecraft.client.gui.screens.Screen
-
renderBackground
public void renderBackground(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY, float partialTick) - Overrides:
renderBackground
in classnet.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 classnet.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
-
afterMouseMove
public void afterMouseMove()- Overrides:
afterMouseMove
in classnet.minecraft.client.gui.screens.Screen
-
getDocumentPoint
@Nullable public @Nullable guideme.internal.util.Point getDocumentPoint(double screenX, double screenY) -
getScreenPoint
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
-
getMouseCaptureTarget
-
captureMouse
-
releaseMouseCapture
-
onClose
public void onClose()- Overrides:
onClose
in classnet.minecraft.client.gui.screens.Screen
-