getStatistics function

  1. @Deprecated("The statistics endpoints were removed by Mojang in March 2022.")
Future<MinecraftStatistics> getStatistics(
  1. List<MinecraftStatisticsItem> items
)

Get's Minecraft: Java Edition, Minecraft Dungeons, Cobalt and Scrolls purchase statistics.

Returns total statistics for ALL games included. To get individual statistics, call this function for each MinecraftStatisticsItem or each game.

This service was closed down by Mojang on 8 March 2022 because it didn't represent the total sales of Minecraft. The counter stopped at 45.6M Minecraft Java and 305k Minecraft Dungeons sales. See https://twitter.com/Mojang_Ined/status/1501541417784852484

Implementation

@Deprecated("The statistics endpoints were removed by Mojang in March 2022.")
Future<MinecraftStatistics> getStatistics(
    List<MinecraftStatisticsItem> items) async {
  return MinecraftStatistics();
}