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 SceneAnnotationcreateAnnotation(PageCompiler compiler, LytErrorSink errorSink, guideme.libs.mdast.mdx.model.MdxJsxElementFields el) protected @Nullable SceneAnnotationcreateAnnotation(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, compileTemplateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
createAnnotationin 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:
createAnnotationin 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.ZEROis passed.
-