public class LazyLib extends BaseModPlugin
Constructor and Description |
---|
LazyLib() |
Modifier and Type | Method and Description |
---|---|
static String |
getInfo()
Gets the library information (for startup messages, etc).
|
static Level |
getLogLevel()
Returns the log level used for all other LazyLib classes.
|
static String |
getSupportedGameVersion()
Returns the Starsector release this version was coded for.
|
static float |
getVersion()
Returns the running version of LazyLib.
|
static boolean |
isCachingEnabled()
Checks if caching of the results of expensive methods is enabled.
|
void |
onApplicationLoad()
Called after all the core loading has finished and all the scripts have finished being compiled.
|
static void |
onDeprecatedMethodUsage()
Called internally by LazyLib when a deprecated method is used.
|
static void |
setLogLevel(Level level)
Sets the log level used for all other LazyLib classes.
|
public static final String MOD_ID
public static float getVersion()
Float
.public static String getSupportedGameVersion()
String
.public static boolean isCachingEnabled()
true
if results caching is enabled, false
otherwise.public static String getInfo()
String
containing information on the library.public static Level getLogLevel()
LazyLib
itself will always use log level Level.ALL
.public static void setLogLevel(Level level)
level
- The minimum level of entries that will be logged.public static void onDeprecatedMethodUsage()
RuntimeException
so modders can track down the problematic code
using the stacktrace. You can ignore this method; there's no reason to
ever call it manually, and calls from outside of LazyLib's namespace
will be ignored.public void onApplicationLoad() throws Exception
com.fs.starfarer.api.ModPlugin
onApplicationLoad
in interface ModPlugin
onApplicationLoad
in class BaseModPlugin
Exception