Class TextsKt

  • All Implemented Interfaces:

    
    public final class TextsKt
    
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static MutableComponent toText(String $self) 指定した文字列をテキストに変換します。
      final static MutableComponent translatableText(String value) 指定した文字列を翻訳されたテキストに変換します。
      final static MutableComponent translatableText(String value, Object args) 指定した文字列と引数を翻訳されたテキストに変換します。
      final static MutableComponent boolText(Boolean value) 指定したBooleanを翻訳されたテキストに変換します。
      final static MutableComponent directionText(Direction direction) 指定したDirectionを翻訳されたテキストに変換します。
      final static MutableComponent levelText(ResourceKey<Level> key)
      final static MutableComponent withStyle(MutableComponent $self, HTDefaultColor color) 指定した色を適応します。
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • toText

         final static MutableComponent toText(String $self)

        指定した文字列をテキストに変換します。

        Since:

        0.1.0

      • 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