public interface Plugin
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROPERTY_MINIMUM_WORLDPAINTER_VERSION
Deprecated.
|
static java.lang.String |
PROPERTY_NAME
The name of the plugin.
|
static java.lang.String |
PROPERTY_UUIDS
A comma-separated list of uuids that this plugin is locked to.
|
static java.lang.String |
PROPERTY_VERSION
The version number of the plugin.
|
Modifier and Type | Method and Description |
---|---|
default java.lang.String |
getMinimumWorldPainterVersion()
Deprecated.
|
java.lang.String |
getName()
Get the name of the plugin.
|
java.util.Properties |
getProperties()
Get the properties of the plugin.
|
java.util.Set<java.util.UUID> |
getUUIDs()
Get the set of UUIDs this plugin is locked to, or
null if
the plugin can be used by anyone. |
java.lang.String |
getVersion()
Get the version number of the plugin.
|
default void |
init(WPContext context)
Initialise the plugin.
|
static final java.lang.String PROPERTY_NAME
static final java.lang.String PROPERTY_VERSION
static final java.lang.String PROPERTY_UUIDS
@Deprecated static final java.lang.String PROPERTY_MINIMUM_WORLDPAINTER_VERSION
minimumHostVersion
property in the JSON descriptor instead.java.lang.String getName()
getPoperties().getProperty(Plugin.PROPERTY_NAME)
java.lang.String getVersion()
getPoperties().getProperty(Plugin.PROPERTY_VERSION)
java.util.Set<java.util.UUID> getUUIDs()
null
if
the plugin can be used by anyone. Convenience method for parsing the
result of:
getPoperties().getProperty(Plugin.PROPERTY_UUIDS)
default void init(WPContext context)
The default implementation does nothing.
context
- The WorldPainter application context.@Deprecated default java.lang.String getMinimumWorldPainterVersion()
minimumHostVersion
property in the JSON descriptor instead. This will never be
invoked.java.util.Properties getProperties()