Interface StringMessageContext
- All Superinterfaces:
MessageContext
- All Known Subinterfaces:
BallMessageContext, ChatMessageContext, ClearMessageContext, DiscordMessageContext, MailMessageContext, PollMessageContext, QuestionAnswerMessageContext, SpyMessageContext, TelegramMessageContext, TellMessageContext, TranslatetoMessageContext, TryMessageContext, TwitchMessageContext
A message context that also carries an extra string, such as the original player input.
-
Nested Class Summary
Nested classes/interfaces inherited from interface MessageContext
MessageContext.CacheKey -
Method Summary
Modifier and TypeMethodDescriptionstatic net.flectone.pulse.model.event.message.context.StringMessageContextImpl.StringMessageContextImplBuilderbuilder()Starts building this context.@NonNull Stringstring()The extra value carried alongside the message.withString(@NonNull String string) Returns a copy carrying a different value.Methods inherited from interface MessageContext
addFlag, addFlags, addTagResolver, addTagResolvers, base, createCacheKey, flags, isFlag, message, receiver, sender, tagResolver, toBuilder, uuid, withBase, withFlags, withMessage, withReceiver, withSender, withTagResolver, withUuid
-
Method Details
-
builder
static net.flectone.pulse.model.event.message.context.StringMessageContextImpl.StringMessageContextImplBuilder builder()Starts building this context.- Returns:
- a new builder
-
string
-
withString
Returns a copy carrying a different value.- Parameters:
string- the new value- Returns:
- the copy
-