Interface Reaction.Builder<T extends Reaction.Builder<T>>

Type Parameters:
T - the concrete builder type
Enclosing interface:
Reaction

public static interface Reaction.Builder<T extends Reaction.Builder<T>>
Builder for creating Reaction instances.
  • Method Details

    • sound

      Sets the sound for this reaction.
      Parameters:
      sound - the sound to play, or null for none
      Returns:
      this builder
    • particle

      @NotNull T particle(@Nullable @Nullable String particle)
      Sets the particle effect for this reaction.
      Parameters:
      particle - the particle effect name, or null for none
      Returns:
      this builder
    • triggerWords

      @NotNull T triggerWords(@NotNull @NotNull List<String> triggerWords)
      Sets the trigger words for this reaction.
      Parameters:
      triggerWords - the list of trigger words
      Returns:
      this builder
    • triggerWords

      @NotNull default T triggerWords(String... triggerWords)
      Sets the trigger words for this reaction.
      Parameters:
      triggerWords - the trigger words as varargs
      Returns:
      this builder
    • build

      Builds the Reaction instance.
      Returns:
      the constructed reaction