Package net.blueva.arcade.api.stats
Interface StatsAPI<P>
public interface StatsAPI<P>
Generic stats API exposed to modules.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddGlobalStat(P player, String key, int delta) voidaddModuleStat(P player, String moduleId, String key, int delta) consumeSessionDeltas(P player, String moduleId) Get and clear the session deltas accumulated for the player during the last game.intgetGlobalStat(P player, String key) intgetModuleStat(P player, String moduleId, String key) voidregisterGlobalStat(StatDefinition definition) voidregisterModuleStat(String moduleId, StatDefinition definition)
-
Method Details
-
registerGlobalStat
-
registerModuleStat
-
getGlobalStat
-
getModuleStat
-
addGlobalStat
-
addModuleStat
-
consumeSessionDeltas
Get and clear the session deltas accumulated for the player during the last game.
-