mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-28 15:56:02 +00:00
Allow config GUI cycling button elements generated from enums to display toString return values, rather than actual values. (#5125)
This commit is contained in:
1 parent
3dd8c8ae6f
commit
d3f27cf6fb
8 files changed
+222
-24
No files matched your search
@@ -132,7 +132,25 @@ public class ConfigAnnotationTest
|
||||
public static TEST enu = TEST.BIG;
|
||||
public static NestedType Inner = new NestedType();
|
||||
|
||||
public enum TEST { BIG, BAD, WOLF; }
|
||||
public enum TEST
|
||||
{
|
||||
BIG("Big"),
|
||||
BAD("Bad"),
|
||||
WOLF("Wolf");
|
||||
|
||||
private String name;
|
||||
|
||||
private TEST(String name)
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
}
|
||||
public static class NestedType
|
||||
{
|
||||
public String HeyLook = "I'm Inside!";
|
||||
|
||||
Reference in new issue
Block a user