Move of stuffs
This commit is contained in:
parent
7946a7c226
commit
16efbcf7c5
26 changed files with 0 additions and 0 deletions
src/main/java/bloodutils/api/helpers
|
@ -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;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue