Re-implemented all plugins

Updated to new Pulsar system, and to reflect various API changes (by TCon and others). Also reformatted build.gradle and bumped Gradle wrapper, Mantle, CCL, CCC, and Waila.
This commit is contained in:
Parker committed 2014-08-05 22:09:57 -04:00
1 parent a4ea930882
commit bff893221e
42 files changed
+939 -619

No files matched your search

@@ -0,0 +1,37 @@
package tconstruct.plugins.imc;
import net.minecraft.block.Block;
import net.minecraft.item.ItemStack;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLInterModComms;
import cpw.mods.fml.common.registry.GameRegistry.ObjectHolder;
import mantle.pulsar.pulse.Handler;
import mantle.pulsar.pulse.Pulse;
import tconstruct.TConstruct;
import tconstruct.smeltery.TinkerSmeltery;
@ObjectHolder(TConstruct.modID)
@Pulse(id = "Tinkers BuildCraft Compatibility", description = "Tinkers Construct compatibility for BC Transport", modsRequired = "BuildCraft|Transport")
public class TinkerBuildCraft
{
@Handler
public void init(FMLInitializationEvent event)
{
TConstruct.logger.info("BuildCraft detected. Registering facades.");
// Smeltery Blocks
addFacade(TinkerSmeltery.smeltery, 2);
for (int sc = 4; sc < 11; sc++)
{
addFacade(TinkerSmeltery.smeltery, sc);
}
addFacade(TinkerSmeltery.searedBlock, 0);
addFacade(TinkerSmeltery.searedBlockNether, 0);
}
private void addFacade (Block b, int meta)
{
FMLInterModComms.sendMessage("BuildCraft|Transport", "add-facade", new ItemStack(b, 1, meta));
}
}