Annotation Interface Block


@Target(TYPE) @Retention(SOURCE) public @interface Block
Marks a class as a block definition for JSON generation.

When annotated, the annotation processor will generate a corresponding JSON file in the resources directory.


 @Block(id = "mymod:magic_stone")
 public class MagicStone implements TaleBlock {
   // ...
 }
 
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The unique identifier for this block.
  • Element Details

    • id

      String id
      The unique identifier for this block.

      Format: namespace:block_name

      Returns:
      the block identifier