2017-02-16 00:21:37 +00:00
|
|
|
package net.shadowfacts.forgelin
|
|
|
|
|
2018-05-21 13:36:15 +00:00
|
|
|
import net.minecraftforge.fml.common.FMLCommonHandler
|
|
|
|
import net.minecraftforge.fml.common.Loader
|
2017-02-16 00:21:37 +00:00
|
|
|
import net.minecraftforge.fml.common.Mod
|
2018-05-21 13:36:15 +00:00
|
|
|
import net.minecraftforge.fml.common.Mod.EventHandler
|
2018-06-10 23:27:26 +00:00
|
|
|
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent
|
2017-02-16 00:21:37 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @author shadowfacts
|
|
|
|
*/
|
|
|
|
@Mod(modid = Forgelin.MOD_ID, name = Forgelin.NAME, version = Forgelin.VERSION, acceptableRemoteVersions = "*", acceptedMinecraftVersions = "*", modLanguageAdapter = "net.shadowfacts.forgelin.KotlinAdapter")
|
|
|
|
object Forgelin {
|
|
|
|
|
|
|
|
const val MOD_ID = "forgelin"
|
|
|
|
const val NAME = "Forgelin"
|
2017-07-20 01:11:55 +00:00
|
|
|
const val VERSION = "@VERSION@"
|
2017-02-16 00:21:37 +00:00
|
|
|
|
2018-05-21 13:36:15 +00:00
|
|
|
@EventHandler
|
2018-06-10 23:27:26 +00:00
|
|
|
fun onPreInit(event: FMLPreInitializationEvent) {
|
2018-05-21 13:36:15 +00:00
|
|
|
Loader.instance().modList.forEach {
|
2018-06-10 23:27:26 +00:00
|
|
|
ForgelinAutomaticEventSubscriber.subscribeAutomatic(it, event.asmData, FMLCommonHandler.instance().side)
|
2018-05-21 13:36:15 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|