upgrade to Cloth Config v4
This commit is contained in:
@@ -19,4 +19,7 @@ import net.minecraft.util.text.TextFormatting.GRAY
|
||||
//fun textComponent(msg: String, color: TextFormatting = GRAY): StringTextComponent {
|
||||
// val style = Style().apply { this.color = color }
|
||||
// return StringTextComponent(msg).apply { this.style = style }
|
||||
//}
|
||||
//}
|
||||
val styleGray = Style.EMPTY.applyFormats(GRAY)
|
||||
|
||||
fun String.asText() = StringTextComponent(this).setStyle(styleGray)
|
||||
Reference in New Issue
Block a user