Moving some spell classes, moved BloodUtils API stuff for books into main code
This commit is contained in:
parent
beea2e875a
commit
8c1396421a
169 changed files with 227 additions and 250 deletions
|
@ -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;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue