Package hiiragi283.core.api.text
Class TextsKt
-
- All Implemented Interfaces:
public final class TextsKt
-
-
Method Summary
Modifier and Type Method Description final static MutableComponenttoText(String $self)指定した文字列をテキストに変換します。 final static MutableComponenttranslatableText(String value)指定した文字列を翻訳されたテキストに変換します。 final static MutableComponenttranslatableText(String value, Object args)指定した文字列と引数を翻訳されたテキストに変換します。 final static MutableComponentboolText(Boolean value)指定したBooleanを翻訳されたテキストに変換します。 final static MutableComponentdirectionText(Direction direction)指定したDirectionを翻訳されたテキストに変換します。 final static MutableComponentlevelText(ResourceKey<Level> key)final static MutableComponentwithStyle(MutableComponent $self, HTDefaultColor color)指定した色を適応します。 -
-
Method Detail
-
translatableText
final static MutableComponent translatableText(String value)
指定した文字列を翻訳されたテキストに変換します。
- Since:
0.1.0
-
translatableText
final static MutableComponent translatableText(String value, Object args)
指定した文字列と引数を翻訳されたテキストに変換します。
- Since:
0.1.0
-
boolText
final static MutableComponent boolText(Boolean value)
指定したBooleanを翻訳されたテキストに変換します。
- Since:
0.1.0
-
directionText
final static MutableComponent directionText(Direction direction)
指定したDirectionを翻訳されたテキストに変換します。
- Since:
0.7.0
-
levelText
final static MutableComponent levelText(ResourceKey<Level> key)
- Since:
0.1.0
-
withStyle
final static MutableComponent withStyle(MutableComponent $self, HTDefaultColor color)
指定した色を適応します。
- Since:
0.6.0
-
-
-
-