diff options
| author | Daniel She <shekwancheung0528@gmail.com> | 2019-02-25 21:18:26 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-02-25 21:18:26 +0800 |
| commit | 9e55b44b710f38c63a4bfd17d0b07318d5c68535 (patch) | |
| tree | a2cc0c519b4327028d7b8f544ba5171fff2d8dc1 /src/main/java/me/shedaniel/rei/client/Weather.java | |
| parent | b7e018527db2e9cae2db4226f6af9fc34054c964 (diff) | |
| download | RoughlyEnoughItems-9e55b44b710f38c63a4bfd17d0b07318d5c68535.tar.gz RoughlyEnoughItems-9e55b44b710f38c63a4bfd17d0b07318d5c68535.tar.bz2 RoughlyEnoughItems-9e55b44b710f38c63a4bfd17d0b07318d5c68535.zip | |
REI v2.3.1 (#40)
- API Changes
- Updated Config Screen
- Added Tipped Arrows Recipes
- Updated Mappings
- Added IRecipeHelper
- Turning things to Optional
- Removed Cheats button, now included with the new config button
- Buttons for switching gamemodes / time / weather (default: off) [Maybe not in this update]
- Clickable Labels
- 3+ recipes at the same time
- Fixed RecipeBaseWidget bad rendering when too big
- Fixed #42 Patched up item deleting & cheating
- Choose Page Dialog
Diffstat (limited to 'src/main/java/me/shedaniel/rei/client/Weather.java')
| -rw-r--r-- | src/main/java/me/shedaniel/rei/client/Weather.java | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/main/java/me/shedaniel/rei/client/Weather.java b/src/main/java/me/shedaniel/rei/client/Weather.java new file mode 100644 index 000000000..b4cc2dc04 --- /dev/null +++ b/src/main/java/me/shedaniel/rei/client/Weather.java @@ -0,0 +1,38 @@ +package me.shedaniel.rei.client; + +public enum Weather { + CLEAR(0, "Clear"), RAIN(1, "Rain"), THUNDER(2, "Thunder"); + + private final int id; + private final String name; + + Weather(int id, String name) { + this.id = id; + this.name = name; + } + + public static Weather byId(int int_1) { + return byId(int_1, CLEAR); + } + + public static Weather byId(int int_1, Weather gameMode_1) { + Weather[] var2 = values(); + int var3 = var2.length; + + for(int var4 = 0; var4 < var3; ++var4) { + Weather gameMode_2 = var2[var4]; + if (gameMode_2.id == int_1) + return gameMode_2; + } + return gameMode_1; + } + + public int getId() { + return id; + } + + public String getName() { + return name; + } + +} |
