Commits
md_5 authored 4b9a4e2c98f
44 44 | |
45 45 | /** |
46 46 | * Sets the current score. |
47 47 | * |
48 48 | * @param score New score |
49 49 | * @throws IllegalStateException if the associated objective has been |
50 50 | * unregistered |
51 51 | */ |
52 52 | void setScore(int score) throws IllegalStateException; |
53 53 | |
54 + | /** |
55 + | * Shows if this score has been set at any point in time. |
56 + | * |
57 + | * @return if this score has been set before |
58 + | * @throws IllegalStateException if the associated objective has been |
59 + | * unregistered |
60 + | */ |
61 + | boolean isScoreSet() throws IllegalStateException; |
62 + | |
54 63 | /** |
55 64 | * Gets the scoreboard for the associated objective. |
56 65 | * |
57 66 | * @return the owning objective's scoreboard, or null if it has been |
58 67 | * {@link Objective#unregister() unregistered} |
59 68 | */ |
60 69 | Scoreboard getScoreboard(); |
61 70 | } |