Class StatTracker

java.lang.Object
wtf.choco.veinminer.metrics.StatTracker

public final class StatTracker extends Object
A general purpose metric tracker.
  • Method Details

    • accumulateVeinMinedMaterial

      public static void accumulateVeinMinedMaterial(@NotNull @NotNull BlockType blockType)
      Add one to the amount of mined blocks for the provided block type.
      Parameters:
      blockType - the block type to accumulate
    • getVeinMinedCountAsData

      @NotNull public static @NotNull Map<String,Integer> getVeinMinedCountAsData()
      Get the vein mined block data as a Map<String, Integer> for bStats. Note that the invocation of this method will result in previous data being cleared and reset back to 0. This should ONLY be invoked by bStats data collectors as to not mess up existing data.
      Returns:
      the readable bStats data
    • recognizeInstalledAntiCheat

      public static void recognizeInstalledAntiCheat(@NotNull @NotNull AntiCheat antiCheat)
      Recognize an installed anti cheat.
      Parameters:
      antiCheat - the anti cheat information
    • getInstalledAntiCheatsAsData

      @NotNull public static @NotNull Map<String,Map<String,Integer>> getInstalledAntiCheatsAsData()
      Get the installed anti cheat data as a Map<String, Map<String, Integer>> for bStats.
      Returns:
      the readable bStats data