Annotation Interface NamedEnum


@Target(TYPE) public @interface NamedEnum
Specifies that the annotated enum has a string name parameter which must be prefixed with the mod ID of the mod adding a given enum constant
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    int
    Returns the parameter index of the name parameter.
  • Element Details

    • value

      int value
      Returns the parameter index of the name parameter.
      Returns:
      the parameter index of the name parameter
      Default:
      0