Interface TranslatableComponent.Builder

All Superinterfaces:
Buildable.Builder<TranslatableComponent>, ComponentBuilder<TranslatableComponent,​TranslatableComponent.Builder>, ComponentBuilderApplicable, ComponentLike
Enclosing interface:
TranslatableComponent

public static interface TranslatableComponent.Builder
extends ComponentBuilder<TranslatableComponent,​TranslatableComponent.Builder>
A text component builder.
Since:
4.0.0
  • Method Details

    • key

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

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

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

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

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

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