テキストコンポーネント
テキストコンポーネントにはLepinoid独自の拡張関数が多数1存在します。
空コンポーネントの作成
// Vanilla
Text.literal("")
// Lepinoid
emptyText()
単純なテキストの作成
// Vanilla
Text.literal("Some text")
// Lepinoid
text("Some text")
装飾
このノリで他のもできると思います。
// Vanilla
Text.literal("Decorated Text").setStyle(Style.EMPTY.withColor(Formatting.RED).withItalic(true))
// Lepinoid
text("Decorated Text").color(Formatting.RED).italic(true)
1 当団体比