TechReborn/ToAddBack/compat/waila/CompatModuleWaila.java
2016-03-26 15:58:38 +00:00

42 lines
1.1 KiB
Java

package techreborn.compat.waila;
import mcp.mobius.waila.api.IWailaRegistrar;
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;
import techreborn.compat.ICompatModule;
public class CompatModuleWaila implements ICompatModule
{
public static void callbackRegister(IWailaRegistrar registrar)
{
registrar.registerBodyProvider(new WailaProviderMachines(), TileMachineBase.class);
}
@Override
public void preInit(FMLPreInitializationEvent event)
{
}
public void init(FMLInitializationEvent event)
{
FMLInterModComms.sendMessage("Waila", "register", getClass().getName() + ".callbackRegister");
}
@Override
public void postInit(FMLPostInitializationEvent event)
{
}
@Override
public void serverStarting(FMLServerStartingEvent event)
{
}
}