blob: 58a7a8850938bf4f14b7c127034aab3d408dd690 [file] [log] [blame] [raw]
package li.cil.oc
import cpw.mods.fml.common.Mod
import cpw.mods.fml.common.Mod.EventHandler
import cpw.mods.fml.common.SidedProxy
import cpw.mods.fml.common.event.FMLInitializationEvent
import cpw.mods.fml.common.event.FMLPostInitializationEvent
import cpw.mods.fml.common.event.FMLPreInitializationEvent
import cpw.mods.fml.common.network.FMLEventChannel
import java.util.logging.Logger
import li.cil.oc.common.Proxy
@Mod(modid = "OpenComputers", modLanguage = "scala", useMetadata = true)
object OpenComputers {
val log = Logger.getLogger("OpenComputers")
@SidedProxy(clientSide = "li.cil.oc.client.Proxy", serverSide = "li.cil.oc.server.Proxy")
var proxy: Proxy = null
var channel: FMLEventChannel = _
@EventHandler
def preInit(e: FMLPreInitializationEvent) = proxy.preInit(e)
@EventHandler
def init(e: FMLInitializationEvent) = proxy.init(e)
@EventHandler
def postInit(e: FMLPostInitializationEvent) = proxy.postInit(e)
}