Annotation Interface ModElementReference


@Target(FIELD) @Retention(RUNTIME) public @interface ModElementReference
Used to mark fields that can store names of custom elements (mappable or MEs) used by mod element instance and NOT already included as names of objects like MappableElement or Procedure.
Format of strings: with CUSTOM: prefix for entries created from other mod elements or unmapped name for data list entries.
API note:
This annotation can also be added to fields of type Collection, custom object, etc. with their values known to have fields/methods with matching values.
  • Element Details

    • defaultValues

      String[] defaultValues
      Special values indicating the element is not assigned.
      Default:
      {}
    • acceptedTypes

      Class<? extends GeneratableElement>[] acceptedTypes
      Default:
      {}