Package wtf.choco.veinminer.metrics
Class StatTracker
java.lang.Object
wtf.choco.veinminer.metrics.StatTracker
A general purpose metric tracker.
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
accumulateVeinMinedMaterial
(@NotNull BlockType blockType) Add one to the amount of mined blocks for the provided block type.Get the installed anti cheat data as a Map<String, Map<String, Integer>> for bStats.Get the vein mined block data as a Map<String, Integer> for bStats.static void
recognizeInstalledAntiCheat
(@NotNull AntiCheat antiCheat) Recognize an installed anti cheat.
-
Method Details
-
accumulateVeinMinedMaterial
Add one to the amount of mined blocks for the provided block type.- Parameters:
blockType
- the block type to accumulate
-
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
Recognize an installed anti cheat.- Parameters:
antiCheat
- the anti cheat information
-
getInstalledAntiCheatsAsData
Get the installed anti cheat data as a Map<String, Map<String, Integer>> for bStats.- Returns:
- the readable bStats data
-