Moving some spell classes, moved BloodUtils API stuff for books into main code

This commit is contained in:
WayofTime 2014-11-13 08:42:49 -05:00
parent beea2e875a
commit 8c1396421a
169 changed files with 227 additions and 250 deletions

View file

@ -0,0 +1,16 @@
package WayofTime.alchemicalWizardry.book.helpers;
import net.minecraft.item.ItemStack;
import net.minecraftforge.oredict.OreDictionary;
public class OreDictionaryHelper {
public static boolean entryExists(String material){
return OreDictionary.getOres(material).size() > 0;
}
public static ItemStack getItemStack(String material, int entry){
if(entryExists(material))
return OreDictionary.getOres(material).get(entry);
return null;
}
}