Package ovh.mythmc.social.api.reaction
Interface Reaction
public interface Reaction
Represents an interactive reaction that can be triggered.
A Reaction may include a visual representation (texture), an optional
sound, particle effect, and a set of trigger words that activate it.
Instances of Reaction are created using the builder(String, String)
method.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceReaction.Builder<T extends Reaction.Builder<T>>Builder for creatingReactioninstances. -
Method Summary
Modifier and TypeMethodDescriptionstatic Reaction.Builder<?> Creates a newReaction.Builderfor constructing aReaction.name()Returns the unique name of this reaction.particle()Returns the optional particle effect associated with this reaction.sound()Returns the optional sound associated with this reaction.texture()Returns the texture associated with this reaction.Returns the list of words that trigger this reaction.
-
Method Details
-
builder
Creates a newReaction.Builderfor constructing aReaction.- Parameters:
name- the unique name of the reactiontexture- the texture or visual representation of the reaction- Returns:
- a new reaction builder
-
name
Returns the unique name of this reaction.- Returns:
- the reaction name
-
texture
Returns the texture associated with this reaction.- Returns:
- the texture string
-
sound
Returns the optional sound associated with this reaction.- Returns:
- the
Sound, ornullif none
-
particle
Returns the optional particle effect associated with this reaction.- Returns:
- the particle effect name, or
nullif none
-
triggerWords
Returns the list of words that trigger this reaction.- Returns:
- a list of trigger words
-