mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-21 04:22:26 +00:00
Move the directory structure around to a more conventional one and start out on the 1.7 update.
3797 errors. We have a long way to go.
This commit is contained in:
1 parent
3a0de87a09
commit
ab47724473
1245 files changed
+1764
-5953
No files matched your search
@@ -0,0 +1,38 @@
|
||||
package mekanism.common;
|
||||
|
||||
public enum Resource
|
||||
{
|
||||
IRON("Iron"),
|
||||
GOLD("Gold"),
|
||||
OSMIUM("Osmium"),
|
||||
COPPER("Copper"),
|
||||
TIN("Tin"),
|
||||
SILVER("Silver"),
|
||||
OBSIDIAN("Obsidian"),
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user