Package net.blueva.arcade.api.stats
Class StatDefinition
java.lang.Object
net.blueva.arcade.api.stats.StatDefinition
Immutable definition of a statistic.
StatDefinitions declare trackable metrics for games, including their scope, display information, and unique identifiers. They are used to register statistics that can be tracked per player across games or specific modules.
-
Constructor Summary
ConstructorsConstructorDescriptionStatDefinition(String key, String displayName, String description, StatScope scope) -
Method Summary
-
Constructor Details
-
StatDefinition
- Parameters:
key- the unique identifier for this stat (used in storage and queries)displayName- the user-friendly name shown in UIs and leaderboards, defaulting to the keydescription- a detailed description of what this stat tracks, defaulting to emptyscope- the scope of this stat (GLOBAL or MODULE-specific), defaulting to GLOBAL
-
-
Method Details