Interface BallMessageContext

All Superinterfaces:
MessageContext, StringMessageContext

public interface BallMessageContext extends StringMessageContext
The reply of the magic-ball command. Builds on StringMessageContext.
  • 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

      BallMessageContext withAnswer(int answer)
      Returns a copy carrying a different value.
      Parameters:
      answer - index of the chosen answer in the localization list
      Returns:
      the copy