Annotation Interface Item


@Target(TYPE) @Retention(SOURCE) public @interface Item
Marks a class as an item definition for JSON generation.

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


 @Item(id = "mymod:ruby_sword")
 public class RubySword implements TaleItem {
   // ...
 }
 
  • Required Element Summary

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

    • id

      String id
      The unique identifier for this item.

      Format: namespace:item_name

      Returns:
      the item identifier