Annotation Interface LimitedCompatibility


@Target({TYPE,METHOD}) @Retention(CLASS) public @interface LimitedCompatibility
Indicates that a class, interface or method is not compatible with all versions of Java or Minecraft that the project as a whole supports.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The target that the version range applies to, either "Java" or "Minecraft".
    The range of versions that the annotated class, interface or method is compatible with, such as ">=17" or ">=1.20.1 <1.21"
  • Element Details

    • target

      String target
      The target that the version range applies to, either "Java" or "Minecraft".
      Returns:
      the target that the version range applies to
    • versions

      String versions
      The range of versions that the annotated class, interface or method is compatible with, such as ">=17" or ">=1.20.1 <1.21"
      Returns:
      the range of compatible versions