TechReborn/ToAddBack/1.9/waila/CompatModuleWaila.java

39 lines
1.1 KiB
Java
Raw Normal View History

package techreborn.compat.waila;
2015-06-12 19:40:08 +02:00
import mcp.mobius.waila.api.IWailaRegistrar;
2016-02-26 14:03:30 +01:00
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
import net.minecraftforge.fml.common.event.FMLInterModComms;
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
import net.minecraftforge.fml.common.event.FMLServerStartingEvent;
import reborncore.common.tile.TileMachineBase;
2016-02-24 09:18:21 +01:00
import techreborn.compat.ICompatModule;
2015-06-12 19:40:08 +02:00
public class CompatModuleWaila implements ICompatModule {
@Override
public void preInit(FMLPreInitializationEvent event) {
2015-06-12 19:40:08 +02:00
}
public void init(FMLInitializationEvent event) {
FMLInterModComms.sendMessage("Waila", "register", getClass().getName()
+ ".callbackRegister");
}
@Override
public void postInit(FMLPostInitializationEvent event) {
2015-06-12 19:40:08 +02:00
}
2015-06-12 19:40:08 +02:00
@Override
public void serverStarting(FMLServerStartingEvent event) {
2015-06-12 19:40:08 +02:00
}
2015-06-12 19:40:08 +02:00
public static void callbackRegister(IWailaRegistrar registrar) {
registrar.registerBodyProvider(new WailaProviderMachines(),
TileMachineBase.class);
}
}