mirror of
https://github.com/GTNewHorizons/BloodMagic.git
synced 2026-11-27 15:23:06 +00:00
Add waila support (#42)
* Remove pneumaticCraft API * Add WAILA support. * Mix of backport from 1.12 + I'm Looking At Blood mod (MIT)
This commit is contained in:
1 parent
33f1f1bfef
commit
b0c07ebfc6
57 files changed
+738
-2364
No files matched your search
@@ -0,0 +1,42 @@
|
||||
package WayofTime.alchemicalWizardry.compat;
|
||||
|
||||
import mcp.mobius.waila.api.IWailaDataProvider;
|
||||
import mcp.mobius.waila.api.IWailaRegistrar;
|
||||
import WayofTime.alchemicalWizardry.common.tileEntity.TEAltar;
|
||||
import WayofTime.alchemicalWizardry.common.tileEntity.TEMasterStone;
|
||||
import WayofTime.alchemicalWizardry.common.tileEntity.TETeleposer;
|
||||
import WayofTime.alchemicalWizardry.common.tileEntity.TEWritingTable;
|
||||
import cpw.mods.fml.common.event.FMLInterModComms;
|
||||
|
||||
public class BloodMagicWailaPlugin {
|
||||
|
||||
public static final String WAILA_CONFIG_ALTAR = "bm.bloodAltar";
|
||||
public static final String WAILA_CONFIG_TELEPOSER = "bm.teleposer";
|
||||
public static final String WAILA_CONFIG_RITUAL = "bm.ritualController";
|
||||
public static final String WAILA_CHEMISTRY_SET = "bm.chemistrySet";
|
||||
|
||||
public static void callbackRegister(IWailaRegistrar register) {
|
||||
final IWailaDataProvider wailaProvider = new BloodMagicWailaProvider();
|
||||
|
||||
register.registerBodyProvider(wailaProvider, TEAltar.class);
|
||||
register.registerNBTProvider(wailaProvider, TEAltar.class);
|
||||
register.addConfig("Blood Magic", WAILA_CONFIG_ALTAR, true);
|
||||
|
||||
register.registerBodyProvider(wailaProvider, TETeleposer.class);
|
||||
register.addConfig("Blood Magic", WAILA_CONFIG_TELEPOSER, true);
|
||||
|
||||
register.registerBodyProvider(wailaProvider, TEMasterStone.class);
|
||||
register.registerNBTProvider(wailaProvider, TEMasterStone.class);
|
||||
register.addConfig("Blood Magic", WAILA_CONFIG_RITUAL, true);
|
||||
|
||||
register.registerBodyProvider(wailaProvider, TEWritingTable.class);
|
||||
register.registerNBTProvider(wailaProvider, TEWritingTable.class);
|
||||
register.registerTailProvider(wailaProvider, TEWritingTable.class);
|
||||
register.addConfig("Blood Magic", WAILA_CHEMISTRY_SET, true);
|
||||
|
||||
}
|
||||
|
||||
public static void init() {
|
||||
FMLInterModComms.sendMessage("Waila", "register", BloodMagicWailaPlugin.class.getName() + ".callbackRegister");
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user