Class SceneAnnotation
java.lang.Object
guideme.scene.annotation.SceneAnnotation
- All Implemented Interfaces:
ExportableResourceProvider
- Direct Known Subclasses:
InWorldAnnotation, OverlayAnnotation
An annotation to show additional information to the user about content in a
GuidebookScene.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexportResources(ResourceExporter exporter) @Nullable guideme.libs.mdast.model.MdAstNodeReturns the element of the page this annotation was compiled from, if known.@Nullable GuideTooltipbooleanbooleanvoidsetHovered(boolean hovered) voidsetSourceNode(@Nullable guideme.libs.mdast.model.MdAstNode sourceNode) voidsetTooltip(@Nullable GuideTooltip tooltip) voidsetTooltipContent(LytBlock block) voidsetTooltipContent(net.minecraft.network.chat.Component component)
-
Constructor Details
-
SceneAnnotation
public SceneAnnotation()
-
-
Method Details
-
getTooltip
-
setTooltip
-
setTooltipContent
-
setTooltipContent
public void setTooltipContent(net.minecraft.network.chat.Component component) -
hasTooltip
public boolean hasTooltip() -
getSourceNode
@Nullable public @Nullable guideme.libs.mdast.model.MdAstNode getSourceNode()Returns the element of the page this annotation was compiled from, if known. For annotations created by a template (i.e.<BlockAnnotationTemplate>), this is the element inside the template.- Returns:
- the element of the page this annotation was compiled from, if known
-
setSourceNode
public void setSourceNode(@Nullable @Nullable guideme.libs.mdast.model.MdAstNode sourceNode) -
isHovered
public boolean isHovered() -
setHovered
public void setHovered(boolean hovered) -
exportResources
- Specified by:
exportResourcesin interfaceExportableResourceProvider
-