Package hiiragi283.core.api.text
Class HTTextResultKt
-
- All Implemented Interfaces:
public final class HTTextResultKt
-
-
Method Summary
Modifier and Type Method Description final static <T extends Any> HTTextResult<T>toTextResult(HTTranslation $self)このHTTranslationをHTTextResultに変換します。 final static <T extends Any> HTTextResult<T>toTextResult(HTTranslation $self, Object args)このHTTranslationをHTTextResultに変換します。 final static <T extends Any> HTTextResult<T>toTextResult(HTTranslation $self, HTDefaultColor color)このHTTranslationをHTTextResultに変換します。 final static <T extends Any> HTTextResult<T>toTextResult(HTTranslation $self, HTDefaultColor color, Object args)このHTTranslationをHTTextResultに変換します。 final static <T extends Any> HTTextResult<T>toTextResult(Optional<T> $self, Function0<HTTextResult<T>> error)このOptionalをHTTextResultに変換します。 final static <T extends Any> HTTextResult<T>toTextResult(Optional<T> $self, HTTranslation error)このOptionalをHTTextResultに変換します。 final static Componentunwrap(HTTextResult<out Component> $self)-
-
Method Detail
-
toTextResult
final static <T extends Any> HTTextResult<T> toTextResult(HTTranslation $self)
このHTTranslationをHTTextResultに変換します。
- Since:
0.4.0
-
toTextResult
final static <T extends Any> HTTextResult<T> toTextResult(HTTranslation $self, Object args)
このHTTranslationをHTTextResultに変換します。
- Parameters:
args- テキストの引数- Since:
0.4.0
-
toTextResult
final static <T extends Any> HTTextResult<T> toTextResult(HTTranslation $self, HTDefaultColor color)
このHTTranslationをHTTextResultに変換します。
- Parameters:
color- テキストの色- Since:
0.4.0
-
toTextResult
final static <T extends Any> HTTextResult<T> toTextResult(HTTranslation $self, HTDefaultColor color, Object args)
このHTTranslationをHTTextResultに変換します。
- Parameters:
color- テキストの色args- テキストの引数- Since:
0.4.0
-
toTextResult
final static <T extends Any> HTTextResult<T> toTextResult(Optional<T> $self, Function0<HTTextResult<T>> error)
このOptionalをHTTextResultに変換します。
- Parameters:
error- エラー時のHTTextResult- Since:
0.4.0
-
toTextResult
final static <T extends Any> HTTextResult<T> toTextResult(Optional<T> $self, HTTranslation error)
このOptionalをHTTextResultに変換します。
- Parameters:
error- エラーのテキスト- Since:
0.4.0
-
unwrap
final static Component unwrap(HTTextResult<out Component> $self)
- Since:
0.4.0
-
-
-
-