blob: f54a5c83373c89fb917022fbaa4d9ee23719166b [file] [log] [blame] [raw]
package mekanism.common;
public enum Resource
{
IRON("Iron"),
GOLD("Gold"),
OSMIUM("Osmium"),
COPPER("Copper"),
TIN("Tin"),
SILVER("Silver"),
LEAD("Lead");
private String name;
private Resource(String s)
{
name = s;
}
public static Resource getFromName(String s)
{
for(Resource r : values())
{
if(r.name.toLowerCase().equals(s.toLowerCase()))
{
return r;
}
}
return null;
}
public String getName()
{
return name;
}
}