Annotation Interface TextureReference


@Target(FIELD) @Retention(RUNTIME) public @interface TextureReference
Used to mark fields storing names of textures used by mod element instance.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The type of texture that the marked field can contain a reference to.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Special values indicating the texture is not assigned.
    Template strings that the value of target type should be applied to in order to retrieve texture file names.
  • Element Details

    • value

      The type of texture that the marked field can contain a reference to.
    • files

      String[] files
      Template strings that the value of target type should be applied to in order to retrieve texture file names. An empty string means the value itself will be considered (effectively same as "%s").
      Default:
      {""}
    • defaultValues

      String[] defaultValues
      Special values indicating the texture is not assigned.
      Default:
      {""}