Package guideme.document.flow
Class LytFlowLink
java.lang.Object
guideme.document.flow.LytFlowContent
guideme.document.flow.LytFlowSpan
guideme.document.flow.LytTooltipSpan
guideme.document.flow.LytFlowLink
- All Implemented Interfaces:
LytFlowParent
,InteractiveElement
,LytErrorSink
,guideme.internal.siteexport.ExportableResourceProvider
,Styleable
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@Nullable net.minecraft.sounds.SoundEvent
boolean
mouseClicked
(GuideScreen screen, int x, int y, int button) void
setClickCallback
(@Nullable Consumer<GuideScreen> clickCallback) void
setClickSound
(@Nullable net.minecraft.sounds.SoundEvent clickSound) void
setExternalUrl
(URI uri) Configures this link to open the given external URL on click.void
setPageLink
(PageAnchor anchor) Configures this link to open the given page on click.Methods inherited from class guideme.document.flow.LytTooltipSpan
exportResources, getTooltip, setTooltip
Methods inherited from class guideme.document.flow.LytFlowSpan
append, getChildren, visitChildren
Methods inherited from class guideme.document.flow.LytFlowContent
getFlowParent, getHoverStyle, getParent, getStyle, getStylingParent, isInclusiveAncestor, setHoverStyle, setParent, setStyle, visit
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface guideme.document.interaction.InteractiveElement
mouseCaptureLost, mouseMoved, mouseReleased
Methods inherited from interface guideme.document.flow.LytFlowParent
appendBreak, appendComponent, appendError, appendText
Methods inherited from interface guideme.style.Styleable
getHoverStyle, getStyle, getStylingParent, modifyHoverStyle, modifyStyle, resolveHoverStyle, resolveStyle, setHoverStyle, setStyle
-
Constructor Details
-
LytFlowLink
public LytFlowLink()
-
-
Method Details
-
setClickCallback
-
mouseClicked
-
getClickSound
@Nullable public @Nullable net.minecraft.sounds.SoundEvent getClickSound() -
setClickSound
public void setClickSound(@Nullable @Nullable net.minecraft.sounds.SoundEvent clickSound) -
setExternalUrl
Configures this link to open the given external URL on click. -
setPageLink
Configures this link to open the given page on click.
-