|
LazyLib | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectBaseModPlugin
LazyLib
public class LazyLib
Contains information on the current version of LazyLib.
Constructor Summary | |
---|---|
LazyLib()
|
Method Summary | |
---|---|
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 installed version of LazyLib. |
static boolean |
isDevBuild()
Checks if this is a development (potentially unstable) build of LazyLib. |
void |
onApplicationLoad()
|
static void |
onDeprecatedMethodUsage(Class source,
String methodSig)
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. |
Methods inherited from class BaseModPlugin |
---|
afterGameSave, beforeGameSave, onEnabled, onGameLoad, onNewGame, pickDroneAI, pickMissileAI, pickShipAI, pickWeaponAutofireAI |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LazyLib()
Method Detail |
---|
public static float getVersion()
Float
.
public static String getSupportedGameVersion()
String
.
public static boolean isDevBuild()
true
if this is a beta build of LazyLib, 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(Class source, String methodSig)
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.
source
- The class that contains the deprecated method.methodSig
- The signature of the method that is deprecated.
public void onApplicationLoad() throws Exception
onApplicationLoad
in interface ModPlugin
onApplicationLoad
in class BaseModPlugin
Exception
|
LazyLib | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |