Annotation Interface LoadOnlyOnPlatform


@Retention(RUNTIME) @Target(ANNOTATION_TYPE) public @interface LoadOnlyOnPlatform
Annotation used for specifying dependencies with other plugins
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    @NotNull DependsType
    Gets if the plugin should fail to load if not present This is ignored if depending on is a platform
    @NotNull LoadType
    Gets if the plugin should load before or after this plugin This is ignored if the depending upon is a platform
    int[]
    Gets the maximum version of minecraft that this plugin/depending plugin is compatible with.
    int[]
    Gets the maximum version of the platform that this plugin is compatible with.
    int[]
    Gets the minimum version of minecraft that this plugin/depending plugin is compatible with.
    int[]
    Gets the minimum version of the platform that this plugin is compatible with.
    @NotNull String
    The platform/plugin id to load before
  • Element Details

    • platform

      @NotNull @NotNull String platform
      The platform/plugin id to load before
      Returns:
      The plugin id to load before
    • getDependsType

      @NotNull @NotNull DependsType getDependsType
      Gets if the plugin should fail to load if not present This is ignored if depending on is a platform
      Returns:
      The type of depending on
    • getLoadType

      @NotNull @NotNull LoadType getLoadType
      Gets if the plugin should load before or after this plugin This is ignored if the depending upon is a platform
      Returns:
      The loading type
    • minVersion

      int[] minVersion
      Gets the minimum version of the platform that this plugin is compatible with.

      If the plugin uses a version standard other then major.minor.patch then the numbers within the version will be used

      Returns:
      The minimum version, use empty array if not specified
    • maxVersion

      int[] maxVersion
      Gets the maximum version of the platform that this plugin is compatible with.

      If the plugin uses a version standard other then major.minor.patch then the numbers within the version will be used

      Returns:
      The maximum version, use empty array if not specified
    • minMCVersion

      int[] minMCVersion
      Gets the minimum version of minecraft that this plugin/depending plugin is compatible with.
      Returns:
      The minimum version of MC
    • maxMCVersion

      int[] maxMCVersion
      Gets the maximum version of minecraft that this plugin/depending plugin is compatible with.

      if not specified, then use empty array

      Returns:
      The minimum version of MC