@Target(value=TYPE)
@Retention(value=RUNTIME)
public @interface JourneyMapPlugin
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.
| Modifier and Type | Required Element and Description |
|---|---|
java.lang.String |
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.
|
| Modifier and Type | Optional Element and Description |
|---|---|
java.lang.String[] |
dependencies
Optional list of mod ids this plugin depends on.
|
boolean |
require
Controls how
dependencies() is evaluated. |
@Nullable public abstract java.lang.String apiVersion
public abstract java.lang.String[] dependencies
require():
with require() == true (the default) every listed mod must be loaded;
with require() == false at 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.public abstract boolean require
dependencies() is evaluated. When true (the
default), every listed mod id must be loaded for the plugin to initialize.
When false, the plugin initializes if at least one listed mod id
is loaded. Has no effect when dependencies() is empty.