Annotation Interface JourneyMapPlugin
Used by JourneyMap to discover and classload plugin classes.
Classes with this annotation must have a no-arg constructor
and must also implement the IClientPlugin interface for client plugins
or IServerPlugin interface for server plugins.
-
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionMod Devs can supply the version of journeymap-api the mod was built against, so that it will not load the plugin if there is a breaking change. -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionString[]Optional list of mod ids this plugin depends on.booleanControls howdependencies()is evaluated.
-
Element Details
-
apiVersion
Mod Devs can supply the version of journeymap-api the mod was built against, so that it will not load the plugin if there is a breaking change.- Returns:
- - The Api Version
-
dependencies
String[] dependenciesOptional list of mod ids this plugin depends on. When non-empty, JourneyMap evaluates these against the loaded mods according torequire(): withrequire() == true(the default) every listed mod must be loaded; withrequire() == falseat least one must be loaded. An empty array (the default) imposes no dependency requirement - the plugin always loads, which is backwards compatible with plugins built against older API versions.- Returns:
- - the required mod ids.
- Default:
{}
-
require
boolean requireControls howdependencies()is evaluated. Whentrue(the default), every listed mod id must be loaded for the plugin to initialize. Whenfalse, the plugin initializes if at least one listed mod id is loaded. Has no effect whendependencies()is empty.- Returns:
- - true to require all dependencies, false to require any one.
- Default:
true
-