Added log object, fixed missing annotation, fixed copyright headers

This commit is contained in:
bdew committed 2014-02-17 12:25:56 +02:00
1 parent 78a69acc44
commit 1296b32110
3 files changed
+16 -6

No files matched your search

+11 -1
View File
@@ -11,10 +11,20 @@ package net.bdew.lib
import cpw.mods.fml.common.Mod
import cpw.mods.fml.common.event.FMLPreInitializationEvent
import java.util.logging.Logger
import cpw.mods.fml.common.Mod.EventHandler
@Mod(modid = "bdlib", name = "BD lib", version = "BDLIB_VER", modLanguage = "scala")
object BdLib {
var log: Logger = null
def logInfo(msg: String, args: Any*) = log.info(msg.format(args: _*))
def logWarn(msg: String, args: Any*) = log.warning(msg.format(args: _*))
def logError(msg: String, args: Any*) = log.severe(msg.format(args: _*))
@EventHandler
def preInit(ev: FMLPreInitializationEvent) {
ev.getModLog.info("bdlib BDLIB_VER loaded")
log = ev.getModLog
log.info("bdlib BDLIB_VER loaded")
}
}
@@ -1,10 +1,10 @@
/*
* Copyright (c) bdew, 2014
* https://github.com/bdew/teleporter
* Copyright (c) bdew, 2013 - 2014
* https://github.com/bdew/bdlib
*
* This mod is distributed under the terms of the Minecraft Mod Public
* License 1.0, or MMPL. Please check the contents of the license located in
* https://raw.github.com/bdew/teleporter/master/MMPL-1.0.txt
* https://raw.github.com/bdew/bdlib/master/MMPL-1.0.txt
*/
package net.bdew.lib.gui.widgets
@@ -1,10 +1,10 @@
/*
* Copyright (c) bdew, 2013 - 2014
* https://github.com/bdew/deepcore
* https://github.com/bdew/bdlib
*
* This mod is distributed under the terms of the Minecraft Mod Public
* License 1.0, or MMPL. Please check the contents of the license located in
* https://raw.github.com/bdew/deepcore/master/MMPL-1.0.txt
* https://raw.github.com/bdew/bdlib/master/MMPL-1.0.txt
*/
package net.bdew.lib.gui.widgets