Class ScoreMock
java.lang.Object
be.seeseemelk.mockbukkit.scoreboard.ScoreMock
- All Implemented Interfaces:
Score
Mock implementation of a
Score.-
Constructor Summary
ConstructorsConstructorDescriptionScoreMock(ObjectiveMock objective, String entry) Constructs a newScoreMockfor the provided objective with the specified entry. -
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
Constructs a newScoreMockfor the provided objective with the specified entry.- Parameters:
objective- The objective.entry- The entry.
-
-
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
-