Package guideme.scene.annotation
Class BoxAnnotationElementCompiler
java.lang.Object
guideme.scene.annotation.AnnotationTagCompiler
guideme.scene.annotation.BoxAnnotationElementCompiler
- All Implemented Interfaces:
Extension,SceneElementTagCompiler
Annotates a region of blocks given by its min and max block position.
-
Field Summary
FieldsFields 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
-
Field Details
-
TAG_NAME
- See Also:
-
-
Constructor Details
-
BoxAnnotationElementCompiler
public BoxAnnotationElementCompiler()
-
-
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.
-