|
@@ -83,6 +83,13 @@ public enum ModTextFormatting
|
|
|
this.controlString = "\u00a7" + formattingCodeIn;
|
|
|
}
|
|
|
|
|
|
+ @Nullable
|
|
|
+ @OnlyIn(Dist.CLIENT)
|
|
|
+ public Integer func_211163_e()
|
|
|
+ {
|
|
|
+ return this.color;
|
|
|
+ }
|
|
|
+
|
|
|
@Nullable
|
|
|
@OnlyIn(Dist.CLIENT)
|
|
|
public Integer getColor()
|
|
@@ -90,6 +97,12 @@ public enum ModTextFormatting
|
|
|
return this.color;
|
|
|
}
|
|
|
|
|
|
+ @OnlyIn(Dist.CLIENT)
|
|
|
+ public boolean func_211166_f() // isNormalStyle
|
|
|
+ {
|
|
|
+ return !this.fancyStyling;
|
|
|
+ }
|
|
|
+
|
|
|
@OnlyIn(Dist.CLIENT)
|
|
|
public boolean isNormalStyle()
|
|
|
{
|
|
@@ -99,6 +112,13 @@ public enum ModTextFormatting
|
|
|
@Nullable
|
|
|
@OnlyIn(Dist.CLIENT)
|
|
|
public static ModTextFormatting fromFormattingCode(char formattingCodeIn)
|
|
|
+ {
|
|
|
+ return func_211165_a(formattingCodeIn);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Nullable
|
|
|
+ @OnlyIn(Dist.CLIENT)
|
|
|
+ public static ModTextFormatting func_211165_a(char formattingCodeIn)
|
|
|
{
|
|
|
char c0 = Character.toString(formattingCodeIn).toLowerCase(Locale.ROOT).charAt(0);
|
|
|
|