blob: 0c8e97144340c1e67c6efe17b57aba4442998717 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
package gtPlusPlus.core.util.minecraft;
import java.util.List;
import net.minecraft.item.ItemStack;
import net.minecraftforge.oredict.OreDictionary;
public class OreDictUtils {
public static boolean containsValidEntries(String aOreName) {
boolean a = OreDictionary.doesOreNameExist(aOreName);
List<ItemStack> b = OreDictionary.getOres(aOreName, false);
if (!a) {
return false;
} else {
return b != null && !b.isEmpty();
}
}
}
|