getStatistic

abstract fun getStatistic(statistic: Statistic<*>): Int

Gets the value for the given statistic.

Return

the value

Parameters

statistic

the statistic


abstract fun getStatistic(statistic: Key): Int

Gets the value for the given custom statistic.

If the given statistic is not in the custom statistics registry, this will return -1.

Return

the value for the given custom statistic

Parameters

statistic

the custom statistic