LazyLib

org.lazywizard.lazylib
Class LazyLib

Object
  extended by BaseModPlugin
      extended by LazyLib
All Implemented Interfaces:
ModPlugin

public class LazyLib
extends BaseModPlugin

Contains information on the current version of LazyLib.

Since:
1.1
Author:
LazyWizard

Constructor Summary
LazyLib()
           
 
Method Summary
static String getInfo()
          Get the library information (for startup messages, etc).
static String getSupportedGameVersion()
          Gets the Starsector release this version was coded for.
static float getVersion()
          Get the version number of this LazyLib instance.
static boolean isDevBuild()
          Check if this is a dev (beta) build of LazyLib.
 void onApplicationLoad()
           
static void setLogLevel(Level level)
          Sets the log level for all 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

LazyLib

public LazyLib()
Method Detail

getVersion

public static float getVersion()
Get the version number of this LazyLib instance.

Returns:
The current version of LazyLib, as a Float.
Since:
1.1

getSupportedGameVersion

public static String getSupportedGameVersion()
Gets the Starsector release this version was coded for.

Returns:
The version of Starsector this library supports, as a String.
Since:
1.2

isDevBuild

public static boolean isDevBuild()
Check if this is a dev (beta) build of LazyLib.

Returns:
true if this is a beta build of LazyLib, false otherwise.
Since:
1.4

getInfo

public static String getInfo()
Get the library information (for startup messages, etc).

Returns:
A String containing information on the library.
Since:
1.2

setLogLevel

public static void setLogLevel(Level level)
Sets the log level for all LazyLib classes.

Parameters:
level - The minimum level of entries that will be logged.
Since:
1.6

onApplicationLoad

public void onApplicationLoad()
                       throws Exception
Specified by:
onApplicationLoad in interface ModPlugin
Overrides:
onApplicationLoad in class BaseModPlugin
Throws:
Exception

LazyLib