Package guideme.scene.annotation
Class AnnotationTagCompiler
java.lang.Object
guideme.scene.annotation.AnnotationTagCompiler
- All Implemented Interfaces:
Extension
,SceneElementTagCompiler
- Direct Known Subclasses:
BlockAnnotationElementCompiler
,BoxAnnotationElementCompiler
,DiamondAnnotationElementCompiler
,LineAnnotationElementCompiler
-
Field Summary
Fields inherited from interface guideme.scene.element.SceneElementTagCompiler
EXTENSION_POINT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal void
compile
(GuidebookScene scene, PageCompiler compiler, LytErrorSink errorSink, guideme.libs.mdast.mdx.model.MdxJsxElementFields el) final void
compileTemplate
(GuidebookScene scene, PageCompiler compiler, LytErrorSink errorSink, guideme.libs.mdast.mdx.model.MdxJsxElementFields el, net.minecraft.core.BlockPos instancePosition) protected abstract @Nullable SceneAnnotation
createAnnotation
(PageCompiler compiler, LytErrorSink errorSink, guideme.libs.mdast.mdx.model.MdxJsxElementFields el) Deprecated.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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface guideme.extensions.Extension
onExtensionsBuilt
Methods inherited from interface guideme.scene.element.SceneElementTagCompiler
getTagNames
-
Constructor Details
-
AnnotationTagCompiler
public AnnotationTagCompiler()
-
-
Method Details
-
compile
public final void compile(GuidebookScene scene, PageCompiler compiler, LytErrorSink errorSink, guideme.libs.mdast.mdx.model.MdxJsxElementFields el) - Specified by:
compile
in interfaceSceneElementTagCompiler
-
compileTemplate
public final void compileTemplate(GuidebookScene scene, PageCompiler compiler, LytErrorSink errorSink, guideme.libs.mdast.mdx.model.MdxJsxElementFields el, net.minecraft.core.BlockPos instancePosition) -
createAnnotation
@Nullable protected abstract @Nullable SceneAnnotation createAnnotation(PageCompiler compiler, LytErrorSink errorSink, guideme.libs.mdast.mdx.model.MdxJsxElementFields el) Deprecated. -
createAnnotation
@Nullable protected @Nullable SceneAnnotation createAnnotation(GuidebookScene scene, PageCompiler compiler, LytErrorSink errorSink, guideme.libs.mdast.mdx.model.MdxJsxElementFields el, net.minecraft.core.BlockPos instancePosition) - 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.
-
createAnnotation(GuidebookScene, PageCompiler, LytErrorSink, MdxJsxElementFields, BlockPos)
instead.