Class StatDefinition

java.lang.Object
net.blueva.arcade.api.stats.StatDefinition

public final class StatDefinition extends Object
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 Details

    • StatDefinition

      public StatDefinition(String key, String displayName, String description, StatScope scope)
      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 key
      description - a detailed description of what this stat tracks, defaulting to empty
      scope - the scope of this stat (GLOBAL or MODULE-specific), defaulting to GLOBAL
  • Method Details