mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-18 11:29:23 +00:00
Update Soil and add Soil Models
This commit is contained in:
1 parent
0caaa095a2
commit
2ed7e79478
126 files changed
+900
-224
No files matched your search
@@ -1,14 +1,30 @@
|
||||
package binnie.botany.api;
|
||||
|
||||
import net.minecraft.util.IStringSerializable;
|
||||
import net.minecraft.util.text.TextFormatting;
|
||||
import net.minecraft.util.text.translation.I18n;
|
||||
|
||||
public enum EnumAcidity implements IStringSerializable {
|
||||
Acid,
|
||||
Acid(TextFormatting.RED),
|
||||
Neutral,
|
||||
Alkaline;
|
||||
Alkaline(TextFormatting.AQUA);
|
||||
|
||||
final TextFormatting color;
|
||||
|
||||
EnumAcidity() {
|
||||
this(null);
|
||||
}
|
||||
|
||||
EnumAcidity(TextFormatting color) {
|
||||
this.color = color;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return this.name().toLowerCase();
|
||||
}
|
||||
|
||||
public String getTranslated(boolean withColor){
|
||||
return (withColor && color != null ? color : "") + I18n.translateToLocal("botany.ph." + getName());
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user