Interface TranslatableComponent.Builder

    • Method Detail

      • key

        @Contract(pure=true)
        @NotNull
        default @NotNull TranslatableComponent.Builder key​(@NotNull
                                                           @NotNull Translatable translatable)
        Sets the translation key.
        Parameters:
        translatable - the translatable object to get the key from
        Returns:
        this builder
        Since:
        4.8.0
      • key

        @Contract("_ -> this")
        @NotNull
        @NotNull TranslatableComponent.Builder key​(@NotNull
                                                   @NotNull String key)
        Sets the translation key.
        Parameters:
        key - the translation key
        Returns:
        this builder
        Since:
        4.0.0
      • args

        @Contract("_ -> this")
        @NotNull
        @NotNull TranslatableComponent.Builder args​(@NotNull
                                                    @NotNull ComponentBuilder<?,​?> arg)
        Sets the translation args.
        Parameters:
        arg - the translation arg
        Returns:
        this builder
        Since:
        4.0.0
      • args

        @Contract("_ -> this")
        @NotNull
        @NotNull TranslatableComponent.Builder args​(@NotNull
                                                    @NotNull ComponentBuilder<?,​?> @NotNull ... args)
        Sets the translation args.
        Parameters:
        args - the translation args
        Returns:
        this builder
        Since:
        4.0.0
      • args

        @Contract("_ -> this")
        @NotNull
        @NotNull TranslatableComponent.Builder args​(@NotNull
                                                    @NotNull Component arg)
        Sets the translation args.
        Parameters:
        arg - the translation arg
        Returns:
        this builder
        Since:
        4.0.0
      • args

        @Contract("_ -> this")
        @NotNull
        @NotNull TranslatableComponent.Builder args​(@NotNull
                                                    @NotNull ComponentLike @NotNull ... args)
        Sets the translation args.
        Parameters:
        args - the translation args
        Returns:
        this builder
        Since:
        4.0.0
      • args

        @Contract("_ -> this")
        @NotNull
        @NotNull TranslatableComponent.Builder args​(@NotNull
                                                    @NotNull List<? extends ComponentLike> args)
        Sets the translation args.
        Parameters:
        args - the translation args
        Returns:
        this builder
        Since:
        4.0.0