Package org.core.platform.plugin.details
Annotation Interface LoadOnlyOnPlatform
Annotation used for specifying dependencies with other plugins
-
Required Element Summary
Modifier and TypeRequired ElementDescription@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 platformint[]
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
The platform/plugin id to load before- Returns:
- The plugin id to load before
-
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
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[] minVersionGets 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[] maxVersionGets 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[] minMCVersionGets the minimum version of minecraft that this plugin/depending plugin is compatible with.- Returns:
- The minimum version of MC
-
maxMCVersion
int[] maxMCVersionGets 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
-