Package cn.nukkit.api

Annotation Interface API


@PowerNukkitDifference(since="1.4.0.0-PN", info="Applicable to fields only in PowerNukkit") @Retention(SOURCE) @Target({CONSTRUCTOR,METHOD,ANNOTATION_TYPE,TYPE,FIELD}) public @interface API
Describes an API element.
Author:
Lin Mulan, Nukkit Project
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
    Enum constant for API definition.
    static enum 
    Enum constant for API usage.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Indicates definition or the platforms this API element supports.
    Indicates the level of stability of an API element.
  • Element Details

    • usage

      API.Usage usage
      Indicates the level of stability of an API element. The stability also describes when to use this API element.
      Returns:
      The stability
      See Also:
    • definition

      API.Definition definition
      Indicates definition or the platforms this API element supports.
      Returns:
      The definition
      See Also: