2014-11-13 08:42:49 -05:00
|
|
|
package WayofTime.alchemicalWizardry.book.helpers;
|
2014-11-03 18:05:28 -05:00
|
|
|
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|