Rewrite how Carving stores variants and groups

This commit is contained in:
tterrag1098 committed 2015-01-15 03:16:02 -05:00
1 parent 155bc00f0e
commit 447e472c04
10 files changed
+327 -119

No files matched your search

@@ -13,6 +13,7 @@ import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.ItemStack;
import net.minecraft.util.IIcon;
import net.minecraft.world.IBlockAccess;
import net.minecraftforge.oredict.OreDictionary;
import com.cricketcraft.chisel.Chisel;
import com.cricketcraft.chisel.block.BlockCarvableSlab;
@@ -28,8 +29,6 @@ import cpw.mods.fml.common.registry.GameRegistry;
public class CarvableHelper {
public static final ArrayList<Block> chiselBlocks = new ArrayList<Block>();
public static final int NORMAL = 0;
public static final int TOPSIDE = 1;
public static final int TOPBOTSIDE = 2;
@@ -270,7 +269,6 @@ public class CarvableHelper {
void registerBlock(Block block, String name, Class<? extends ItemCarvable> cl) {
block.setBlockName(name);
GameRegistry.registerBlock(block, cl, name);
chiselBlocks.add(block);
}
public void register(Block block, String name, Class<? extends ItemCarvable> cl) {
@@ -388,7 +386,10 @@ public class CarvableHelper {
public static Set<Block> getChiselBlockSet() {
HashSet<Block> tools = new HashSet<Block>();
tools.addAll(CarvableHelper.chiselBlocks);
return tools;
}
public void registerOre(String ore) {
OreDictionary.registerOre(ore, variations.get(0).block);
}
}