public abstract class FlintCore extends Object
Constructor and Description |
---|
FlintCore() |
Modifier and Type | Method and Description |
---|---|
static int |
getApiRevision()
Gets the current API revision.
|
protected static String |
getCodename()
Gets the codename of the current API revision.
|
static String |
getImplementationName()
Gets the name of the software currently implementing Flint.
|
protected abstract String |
getImplementationName0() |
static int |
getMajorVersion()
Gets the current API major version.
|
static Minigame |
registerPlugin(String pluginId)
Registers a plugin as a Flint-backed
Minigame . |
protected abstract Minigame |
registerPlugin0(String pluginId) |
protected static FlintCore INSTANCE
public static int getApiRevision()
The API revision is incremented for each version (discounting snapshot builds) which modifies Flint's API.
public static int getMajorVersion()
protected static String getCodename()
public static String getImplementationName()
protected abstract String getImplementationName0()
public static Minigame registerPlugin(String pluginId) throws IllegalStateException
Minigame
.pluginId
- The name or ID of the plugin to registerMinigame
associated with the pluginIllegalStateException
- If a plugin with the given ID has already
been registered as a Minigame
protected abstract Minigame registerPlugin0(String pluginId) throws IllegalStateException
IllegalStateException