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 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
-
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:
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.
-