package com.pahimar.ee3.util; import java.util.Collection; import java.util.Set; import java.util.TreeSet; import net.minecraft.item.ItemStack; import net.minecraftforge.oredict.OreDictionary; public class OreDictionaryHelper { public static Collection getOreNames(ItemStack itemStack) { Set oreNames = new TreeSet<>(); for (int oreId : OreDictionary.getOreIDs(itemStack)) { oreNames.add(OreDictionary.getOreName(oreId)); } return oreNames; } }