Added waila support back
This commit is contained in:
parent
67d2d9c863
commit
abcaccdc82
4 changed files with 7 additions and 5 deletions
|
@ -1,34 +0,0 @@
|
|||
package techreborn.compat.waila;
|
||||
|
||||
import net.minecraftforge.fml.common.event.*;
|
||||
import mcp.mobius.waila.api.IWailaRegistrar;
|
||||
import techreborn.compat.ICompatModule;
|
||||
import techreborn.tiles.TileMachineBase;
|
||||
|
||||
public class CompatModuleWaila implements ICompatModule {
|
||||
|
||||
@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) {
|
||||
|
||||
}
|
||||
|
||||
public static void callbackRegister(IWailaRegistrar registrar) {
|
||||
registrar.registerBodyProvider(new WailaProviderMachines(),
|
||||
TileMachineBase.class);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue