Move of stuffs

This commit is contained in:
WayofTime 2014-11-03 21:10:17 -05:00
parent 7946a7c226
commit 16efbcf7c5
26 changed files with 0 additions and 0 deletions
src/main/java/bloodutils/api/helpers

View file

@ -0,0 +1,16 @@
package bloodutils.api.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;
}
}