Interface Score


public interface Score
A score entry for one or more Objectives.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Checks for whether the score is locked.
    Gets the name of this score.
    Returns a Set of parent Objectives this Score is registered to.
    int
    Gets the current score value.
    void
    setLocked(boolean locked)
    Sets this score as locked.
    void
    setScore(int score)
    Sets the current score value.
  • Method Details

    • name

      Component name()
      Gets the name of this score.
      Returns:
      The name of this score
    • score

      int score()
      Gets the current score value.
      Returns:
      The current score value
    • setScore

      void setScore(int score)
      Sets the current score value.
      Parameters:
      score - The new score value
    • isLocked

      boolean isLocked()
      Checks for whether the score is locked.
      Returns:
      True if the score is locked, false otherwise
    • setLocked

      void setLocked(boolean locked)
      Sets this score as locked.
      Parameters:
      locked - True to lock this score
    • objectives

      Set<Objective> objectives()
      Returns a Set of parent Objectives this Score is registered to.
      Returns:
      A Set of parent Objective this Score is registered to