Class ScoreMock
java.lang.Object
be.seeseemelk.mockbukkit.scoreboard.ScoreMock
- All Implemented Interfaces:
Score
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull StringgetEntry()@NotNull ObjectiveMock@NotNull OfflinePlayerDeprecated.intgetScore()booleanvoidvoidsetPlayer(OfflinePlayer player) Sets the player that this score is tracking.voidsetScore(int score)
-
Constructor Details
-
ScoreMock
-
-
Method Details
-
setPlayer
Sets the player that this score is tracking.- Parameters:
player- The player to track.
-
getPlayer
Deprecated. -
getEntry
-
getObjective
- Specified by:
getObjectivein interfaceScore
-
getScore
- Specified by:
getScorein interfaceScore- Throws:
IllegalStateException
-
setScore
- Specified by:
setScorein interfaceScore- Throws:
IllegalStateException
-
isScoreSet
- Specified by:
isScoreSetin interfaceScore- Throws:
IllegalStateException
-
getScoreboard
- Specified by:
getScoreboardin interfaceScore
-
resetScore
- Specified by:
resetScorein interfaceScore- Throws:
IllegalStateException
-