Package ovh.mythmc.social.api.reaction
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 Summary
Modifier and TypeMethodDescriptionbuild()Builds theReactioninstance.Sets the particle effect for this reaction.Sets the sound for this reaction.default TtriggerWords(String... triggerWords) Sets the trigger words for this reaction.triggerWords(@NotNull List<String> triggerWords) Sets the trigger words for this reaction.
-
Method Details
-
sound
Sets the sound for this reaction.- Parameters:
sound- the sound to play, ornullfor none- Returns:
- this builder
-
particle
Sets the particle effect for this reaction.- Parameters:
particle- the particle effect name, ornullfor none- Returns:
- this builder
-
triggerWords
Sets the trigger words for this reaction.- Parameters:
triggerWords- the list of trigger words- Returns:
- this builder
-
triggerWords
Sets the trigger words for this reaction.- Parameters:
triggerWords- the trigger words as varargs- Returns:
- this builder
-
build
Builds theReactioninstance.- Returns:
- the constructed reaction
-