Package guideme.scene.annotation
Class LineAnnotationElementCompiler
java.lang.Object
guideme.scene.annotation.AnnotationTagCompiler
guideme.scene.annotation.LineAnnotationElementCompiler
- All Implemented Interfaces:
Extension
,SceneElementTagCompiler
Compiles a
<AnnotationBox
tag into InWorldBoxAnnotation
.-
Field Summary
Fields inherited from interface guideme.scene.element.SceneElementTagCompiler
EXTENSION_POINT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected @Nullable SceneAnnotation
createAnnotation
(PageCompiler compiler, LytErrorSink errorSink, guideme.libs.mdast.mdx.model.MdxJsxElementFields el) protected @Nullable SceneAnnotation
createAnnotation
(GuidebookScene scene, PageCompiler compiler, LytErrorSink errorSink, guideme.libs.mdast.mdx.model.MdxJsxElementFields el, net.minecraft.core.BlockPos instancePosition) Methods inherited from class guideme.scene.annotation.AnnotationTagCompiler
compile, compileTemplate
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface guideme.extensions.Extension
onExtensionsBuilt
-
Constructor Details
-
LineAnnotationElementCompiler
public LineAnnotationElementCompiler()
-
-
Method Details
-
getTagNames
-
createAnnotation
@Nullable protected @Nullable SceneAnnotation createAnnotation(PageCompiler compiler, LytErrorSink errorSink, guideme.libs.mdast.mdx.model.MdxJsxElementFields el) - Specified by:
createAnnotation
in classAnnotationTagCompiler
-
createAnnotation
@Nullable protected @Nullable SceneAnnotation createAnnotation(GuidebookScene scene, PageCompiler compiler, LytErrorSink errorSink, guideme.libs.mdast.mdx.model.MdxJsxElementFields el, net.minecraft.core.BlockPos instancePosition) - Overrides:
createAnnotation
in classAnnotationTagCompiler
- Parameters:
instancePosition
- Used when the annotation is compiled as part of a template, just add this to the position of the annotation. When an annotation is not in a template,BlockPos.ZERO
is passed.
-