mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-24 22:14:44 +00:00
Auto-format spaces to tabs (#2)
This commit is contained in:
1 parent
25be7fd254
commit
5bb4b5d9a5
756 files changed
+49198
-48489
No files matched your search
@@ -5,26 +5,26 @@ import net.minecraft.util.text.TextFormatting;
|
||||
import net.minecraft.util.text.translation.I18n;
|
||||
|
||||
public enum EnumAcidity implements IStringSerializable {
|
||||
Acid(TextFormatting.RED),
|
||||
Neutral,
|
||||
Alkaline(TextFormatting.AQUA);
|
||||
|
||||
Acid(TextFormatting.RED),
|
||||
Neutral,
|
||||
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());
|
||||
}
|
||||
@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