批注接口 RegisterStructureTemplate


@Target(FIELD) @Retention(RUNTIME) public @interface RegisterStructureTemplate
Put this annotation on a static field containing either a StructureTemplate, a Supplier of StructureTemplate or a StructureTemplateBuilder in order to automatically register that code-defined template.
  • 必需元素概要

    所需元素
    修饰符和类型
    必需的元素
    说明
    返回 the ID of the template。
  • 元素详细资料

    • value

      String value
      返回 the ID of the template。
      返回:
      the ID of the template