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.
|
static boolean |
isDevBuild()
Checks if this is a development (potentially unstable) build of LazyLib.
|
void |
onApplicationLoad() |
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.
|
afterGameSave, beforeGameSave, configureXStream, onEnabled, onGameLoad, onGameSaveFailed, onNewGame, onNewGameAfterEconomyLoad, onNewGameAfterProcGen, onNewGameAfterTimePass, pickDroneAI, pickMissileAI, pickShipAI, pickWeaponAutofireAI
public static float getVersion()
Float
.
public static String getSupportedGameVersion()
String
.
public static boolean isDevBuild()
true
if this is a WIP build of LazyLib, false
otherwise.
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.
public void onApplicationLoad() throws Exception
onApplicationLoad
in interface ModPlugin
onApplicationLoad
in class BaseModPlugin
Exception