Interface TranslationArgument

All Superinterfaces:
ComponentLike, net.kyori.examination.Examinable, TranslationArgumentLike

@NonExtendable public interface TranslationArgument extends TranslationArgumentLike, net.kyori.examination.Examinable
An argument that can be part of a TranslatableComponent.
Since:
4.15.0
  • Method Details

    • bool

      @NotNull static @NotNull TranslationArgument bool(boolean value)
      Create a boolean argument.
      Parameters:
      value - the value
      Returns:
      the argument
      Since:
      4.15.0
      Since Minecraft:
      1.20.3
    • numeric

      @NotNull static @NotNull TranslationArgument numeric(@NotNull @NotNull Number value)
      Create a numeric argument.
      Parameters:
      value - the value
      Returns:
      the argument
      Since:
      4.15.0
      Since Minecraft:
      1.20.3
    • component

      @NotNull static @NotNull TranslationArgument component(@NotNull @NotNull ComponentLike value)
      Create a component argument.
      Parameters:
      value - the value
      Returns:
      the argument
      Since:
      4.15.0
      Since Minecraft:
      1.20.3
    • value

      @NotNull @NotNull Object value()
      The argument's value.
      Returns:
      the argument value
      Since:
      4.15.0
    • asTranslationArgument

      @NotNull default @NotNull TranslationArgument asTranslationArgument()
      Description copied from interface: TranslationArgumentLike
      Get the argument representation of this object.
      Specified by:
      asTranslationArgument in interface TranslationArgumentLike
      Returns:
      the argument representation