mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-20 04:10:07 +00:00
Removed LanguageManager
Added I18N static class Some code reformatting
This commit is contained in:
1 parent
1ffe80b8c9
commit
186cbda444
62 files changed
+360
-375
No files matched your search
@@ -1,11 +1,18 @@
|
||||
package binnie.botany.api;
|
||||
|
||||
import binnie.botany.Botany;
|
||||
import binnie.core.util.I18N;
|
||||
|
||||
public enum EnumAcidity {
|
||||
Acid,
|
||||
Neutral,
|
||||
Alkaline;
|
||||
ACID,
|
||||
NEUTRAL,
|
||||
ALKALINE;
|
||||
|
||||
public String getID() {
|
||||
return name().toLowerCase();
|
||||
}
|
||||
|
||||
public String getLocalisedName() {
|
||||
return I18N.localise(Botany.instance, "ph." + getID());
|
||||
}
|
||||
}
|
||||
@@ -1,11 +1,18 @@
|
||||
package binnie.botany.api;
|
||||
|
||||
import binnie.botany.Botany;
|
||||
import binnie.core.util.I18N;
|
||||
|
||||
public enum EnumMoisture {
|
||||
Dry,
|
||||
Normal,
|
||||
Damp;
|
||||
DRY,
|
||||
NORMAL,
|
||||
DAMP;
|
||||
|
||||
public String getID() {
|
||||
return name().toLowerCase();
|
||||
}
|
||||
|
||||
public String getLocalisedName() {
|
||||
return I18N.localise(Botany.instance, "moisture." + getID());
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,8 @@
|
||||
package binnie.botany.api;
|
||||
|
||||
import binnie.botany.Botany;
|
||||
import binnie.core.util.I18N;
|
||||
|
||||
public enum EnumSoilType {
|
||||
SOIL,
|
||||
LOAM,
|
||||
@@ -8,4 +11,8 @@ public enum EnumSoilType {
|
||||
public String getID() {
|
||||
return name().toLowerCase();
|
||||
}
|
||||
|
||||
public String getLocalisedName() {
|
||||
return I18N.localise(Botany.instance, "soil." + getID());
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user