Interface CoinMessageContext

All Superinterfaces:
MessageContext

public interface CoinMessageContext extends MessageContext
The outcome of a coin flip. Builds on MessageContext.
  • 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

      CoinMessageContext withPercent(int percent)
      Returns a copy carrying a different value.
      Parameters:
      percent - the rolled percentage, which decides heads, tails or edge
      Returns:
      the copy