TechReborn/ToAddBack/compat/waila/CompatModuleWaila.java

43 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;
2016-03-25 10:47:34 +01:00
public class CompatModuleWaila implements ICompatModule
{
2015-06-12 19:40:08 +02:00
2016-03-25 10:47:34 +01:00
public static void callbackRegister(IWailaRegistrar registrar)
{
registrar.registerBodyProvider(new WailaProviderMachines(), TileMachineBase.class);
}
2015-06-12 19:40:08 +02:00
2016-03-25 10:47:34 +01:00
@Override
public void preInit(FMLPreInitializationEvent event)
{
2016-03-25 10:47:34 +01:00
}
2016-03-25 10:47:34 +01:00
public void init(FMLInitializationEvent event)
{
FMLInterModComms.sendMessage("Waila", "register", getClass().getName() + ".callbackRegister");
}
2015-06-12 19:40:08 +02:00
2016-03-25 10:47:34 +01:00
@Override
public void postInit(FMLPostInitializationEvent event)
{
2015-06-12 19:40:08 +02:00
2016-03-25 10:47:34 +01:00
}
2015-06-12 19:40:08 +02:00
2016-03-25 10:47:34 +01:00
@Override
public void serverStarting(FMLServerStartingEvent event)
{
2015-06-12 19:40:08 +02:00
2016-03-25 10:47:34 +01:00
}
}