Example Thaumcraft Aspect support, for cobblestone & cobblestone wall

There is probably a clean way to implement support for all chisel blocks, I'm just not sure how yet.
This commit is contained in:
warlordjones committed 2015-02-28 14:43:26 +00:00
1 parent becbb6bcad
commit f265703a3d
1 file changed
+10
@@ -1,8 +1,14 @@
package com.cricketcraft.chisel.compat;
import net.minecraft.block.Block;
import net.minecraft.item.ItemStack;
import net.minecraftforge.oredict.OreDictionary;
import thaumcraft.api.ThaumcraftApi;
import thaumcraft.api.aspects.Aspect;
import thaumcraft.api.aspects.AspectList;
import com.cricketcraft.chisel.carving.Carving;
import com.cricketcraft.chisel.init.ChiselBlocks;
import cpw.mods.fml.common.Loader;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
@@ -45,6 +51,10 @@ public class Compatibility {
addSupport("PFAAGeologica", "mediumStoneBrickStairs.limestone", "limestoneStairs", 0, 99);
addSupport("PFAAGeologica", "strongStoneBrick", "stoneBrick", 3, 99);
addSupport("PFAAGeologica", "strongCobble", "cobblestone", 3, 99);
/* Thaumcraft TODO There is probably a cleaner way of doing this */
ThaumcraftApi.registerObjectTag(new ItemStack(ChiselBlocks.cobblestone, 1, OreDictionary.WILDCARD_VALUE), (new AspectList()).add(Aspect.ENTROPY, 1).add(Aspect.EARTH, 1));
ThaumcraftApi.registerObjectTag(new ItemStack(ChiselBlocks.cobblestoneWall, 1, OreDictionary.WILDCARD_VALUE), (new AspectList()).add(Aspect.ENTROPY, 1).add(Aspect.EARTH, 1));
}
public static void addSupport(String modname, String blockname, String name, int metadata, int order) {