Skip to content

Commit

Permalink
Add more example enum config properties
Browse files Browse the repository at this point in the history
  • Loading branch information
Choonster committed Jul 14, 2017
1 parent 564ae4a commit 807a876
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/main/java/choonster/testmod3/config/ModConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,22 @@ public static class Client {
@Config.Comment("This is an example int property.")
public int baz = -100;

@Config.Comment("This is an example enum property in a subcategory of the main category.")
public EnumExample exampleSubcategoryEnumProperty = EnumExample.VALUE_3;

@Config.Comment("This is an example enum property that uses an enum defined in a nested class.")
public EnumExampleNested exampleNestedEnumProperty = EnumExampleNested.NESTED_2;

public final HUDPos chunkEnergyHUDPos = new HUDPos(0, 0);

public enum EnumExampleNested {
NESTED_1,
NESTED_2,
NESTED_3,
NESTED_4,
NESTED_5
}

public static class HUDPos {
public HUDPos(final int x, final int y) {
this.x = x;
Expand Down
4 changes: 4 additions & 0 deletions src/main/resources/assets/testmod3/lang/en_us.lang
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,10 @@ testmod3.general.client.baz.tooltip=This is an example int property.

testmod3.general.exampleenumproperty=Example Enum Property
testmod3.general.exampleenumproperty.tooltip=This is an example enum property.\nIt will use a GuiConfigEntries.CycleValueEntry in the config GUI.
testmod3.general.client.examplesubcategoryenumproperty=Example Subcategory Enum Property
testmod3.general.client.examplesubcategoryenumproperty.tooltip=This is an example enum property in a subcategory of the main category.
testmod3.general.client.examplenestedenumproperty=Example Nested Enum Property
testmod3.general.client.examplenestedenumproperty.tooltip=This is an example enum property that uses an enum defined in a nested class.

# Entities
entity.testmod3:mod_arrow.name=Mod Arrow
Expand Down

0 comments on commit 807a876

Please sign in to comment.