Interface TranslationArgument

    • Method Detail

      • 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 java.lang.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 java.lang.Object value()
        The argument's value.
        Returns:
        the argument value
        Since:
        4.15.0