blob: 32b2906a9489f35d54d995d43e2db7f7aa5f408a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
package gregtech.crossmod;
import cpw.mods.fml.common.event.FMLInterModComms;
import gregtech.api.metatileentity.BaseMetaPipeEntity;
import gregtech.api.metatileentity.BaseMetaTileEntity;
import gregtech.api.multitileentity.base.BaseMultiTileEntity;
import mcp.mobius.waila.api.IWailaDataProvider;
import mcp.mobius.waila.api.IWailaRegistrar;
public class Waila {
public static void callbackRegister(IWailaRegistrar register) {
final IWailaDataProvider multiBlockProvider = new GregtechWailaDataProvider();
register.registerBodyProvider(multiBlockProvider, BaseMetaTileEntity.class);
register.registerBodyProvider(multiBlockProvider, BaseMetaPipeEntity.class);
register.registerBodyProvider(multiBlockProvider, BaseMultiTileEntity.class);
register.registerNBTProvider(multiBlockProvider, BaseMetaTileEntity.class);
register.registerNBTProvider(multiBlockProvider, BaseMetaPipeEntity.class);
register.registerNBTProvider(multiBlockProvider, BaseMultiTileEntity.class);
register.registerTailProvider(multiBlockProvider, BaseMetaTileEntity.class);
register.registerTailProvider(multiBlockProvider, BaseMetaPipeEntity.class);
register.registerTailProvider(multiBlockProvider, BaseMultiTileEntity.class);
}
public static void init() {
FMLInterModComms.sendMessage("Waila", "register", Waila.class.getName() + ".callbackRegister");
}
}
|