Interface CoinMessageContext
- All Superinterfaces:
MessageContext
The outcome of a coin flip.
Builds on
MessageContext.-
Nested Class Summary
Nested classes/interfaces inherited from interface MessageContext
MessageContext.CacheKey -
Method Summary
Modifier and TypeMethodDescriptionstatic net.flectone.pulse.module.command.coin.model.CoinMessageContextImpl.CoinMessageContextImplBuilderbuilder()Starts building this context.intpercent()The rolled percentage, which decides heads, tails or edge.withPercent(int percent) 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.module.command.coin.model.CoinMessageContextImpl.CoinMessageContextImplBuilder builder()Starts building this context.- Returns:
- a new builder
-
percent
int percent()The rolled percentage, which decides heads, tails or edge.- Returns:
- the rolled percentage, which decides heads, tails or edge
-
withPercent
Returns a copy carrying a different value.- Parameters:
percent- the rolled percentage, which decides heads, tails or edge- Returns:
- the copy
-