Interface BallMessageContext
- All Superinterfaces:
MessageContext, StringMessageContext
The reply of the magic-ball command.
Builds on
StringMessageContext.-
Nested Class Summary
Nested classes/interfaces inherited from interface MessageContext
MessageContext.CacheKey -
Method Summary
Modifier and TypeMethodDescriptionintanswer()Index of the chosen answer in the localization list.static net.flectone.pulse.module.command.ball.model.BallMessageContextImpl.BallMessageContextImplBuilderbuilder()Starts building this context.withAnswer(int answer) 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, withUuidMethods inherited from interface StringMessageContext
string, withString
-
Method Details
-
builder
static net.flectone.pulse.module.command.ball.model.BallMessageContextImpl.BallMessageContextImplBuilder builder()Starts building this context.- Returns:
- a new builder
-
answer
int answer()Index of the chosen answer in the localization list.- Returns:
- index of the chosen answer in the localization list
-
withAnswer
Returns a copy carrying a different value.- Parameters:
answer- index of the chosen answer in the localization list- Returns:
- the copy
-