Class PlayerProfileServiceImpl
java.lang.Object
fr.luc.crcore.player.PlayerProfileServiceImpl
- All Implemented Interfaces:
PlayerProfileService
- Direct Known Subclasses:
BukkitEventFiringPlayerProfileServiceImpl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleandeleteProfile(UUID playerId) getOrCreateProfile(UUID playerId) getProfile(UUID playerId) getRankingByScore(String scoreName) protected PlayerProfileRepositoryintprotected PlayerProfilenewProfile(UUID playerId) protected PlayerRankingnewRanking(int rank, PlayerProfile profile, int score) protected voidonProfileCreated(PlayerProfile profile) protected voidonProfileDeleted(PlayerProfile profile) protected voidonScoreChanged(PlayerProfile profile, String scoreName, int oldValue, int newValue) protected List<PlayerRanking> rank(ToIntFunction<PlayerProfile> scoreFn) voidresetAllScores(UUID playerId) booleanresetScore(UUID playerId, String scoreName) intMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface PlayerProfileService
getTopGlobalRanking, getTopRankingByScore
-
Constructor Details
-
PlayerProfileServiceImpl
-
-
Method Details
-
getRepository
-
getOrCreateProfile
- Specified by:
getOrCreateProfilein interfacePlayerProfileService
-
getProfile
- Specified by:
getProfilein interfacePlayerProfileService
-
deleteProfile
- Specified by:
deleteProfilein interfacePlayerProfileService
-
getAllProfiles
- Specified by:
getAllProfilesin interfacePlayerProfileService
-
addScore
- Specified by:
addScorein interfacePlayerProfileService
-
setScore
- Specified by:
setScorein interfacePlayerProfileService
-
getScore
- Specified by:
getScorein interfacePlayerProfileService
-
resetScore
- Specified by:
resetScorein interfacePlayerProfileService
-
resetAllScores
- Specified by:
resetAllScoresin interfacePlayerProfileService
-
getRankingByScore
- Specified by:
getRankingByScorein interfacePlayerProfileService
-
getGlobalRanking
- Specified by:
getGlobalRankingin interfacePlayerProfileService
-
rank
-
newProfile
-
newRanking
-
onProfileCreated
-
onProfileDeleted
-
onScoreChanged
-