Annotation Interface FlagsProvider


@Retention(RUNTIME) @Target(METHOD) public @interface FlagsProvider
Method annotation to provide named Boolean flags through a Flags.

Usage: @FlagsProvider Flags method(UUID playerUUID) or @FlagsProvider Flags method() for server flags.

  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Text displayed in the flags table header.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Family of Font Awesome icon.
    Name of Font Awesome icon.
    Determine the color of the table header.
  • Element Details

    • text

      String text
      Text displayed in the flags table header.
      Returns:
      Header text.
    • tableColor

      Color tableColor
      Determine the color of the table header.
      Returns:
      Preferred color. If none are specified defaults are used.
      Default:
      NONE
    • iconName

      String iconName
      Name of Font Awesome icon.
      Returns:
      Name of the icon, if name is not valid no icon is shown.
      Default:
      "flag"
    • iconFamily

      Family iconFamily
      Family of Font Awesome icon.
      Returns:
      Family that matches an icon, if there is no icon for this family no icon is shown.
      Default:
      SOLID