Add missing generic statistics

This commit is contained in:
Jonas Herzig 2017-08-19 21:19:49 +02:00
parent 9d1dc4ed40
commit 9130960d64
2 changed files with 59 additions and 5 deletions

View file

@ -606,13 +606,39 @@ public class MagicValues {
register(Achievement.DIAMONDS_TO_YOU, "achievement.diamondsToYou");
register(Achievement.OVERPOWERED, "achievement.overpowered");
register(GenericStatistic.CAKE_SLICES_EATEN, "stat.cakeSlicesEaten");
register(GenericStatistic.TIMES_CAULDRON_FILLED, "stat.cauldronFilled");
register(GenericStatistic.TIMES_CAULDRON_USED, "stat.cauldronUsed");
register(GenericStatistic.TIMES_ARMOR_CLEANED, "stat.armorCleaned");
register(GenericStatistic.TIMES_BANNER_CLEANED, "stat.bannerCleaned");
register(GenericStatistic.TIMES_BREWING_STAND_GUI_OPENED, "stat.brewingstandInteraction");
register(GenericStatistic.TIMES_BEACON_GUI_OPENED, "stat.beaconInteraction");
register(GenericStatistic.TIMES_CRAFTING_TABLE_GUI_OPENED, "stat.craftingTableInteraction");
register(GenericStatistic.TIMES_FURNACE_GUI_OPENED, "stat.furnaceInteraction");
register(GenericStatistic.TIMES_DISPENSER_GUI_OPENED, "stat.dispenserInteraction");
register(GenericStatistic.TIMES_DROPPER_GUI_OPENED, "stat.dropperInteraction");
register(GenericStatistic.TIMES_HOPPER_GUI_OPENED, "stat.hopperInteraction");
register(GenericStatistic.TIMES_CHEST_GUI_OPENED, "stat.chestInteraction");
register(GenericStatistic.TIMES_SHULKER_BOX_GUI_OPENED, "stat.shulkerBoxOpened");
register(GenericStatistic.TIMES_TRAPPED_CHEST_GUI_OPENED, "stat.trappedChestInteraction");
register(GenericStatistic.TIMES_ENDER_CHEST_GUI_OPENED, "stat.enderchestInteraction");
register(GenericStatistic.TIMES_NOTEBLOCK_PLAYED, "stat.noteblockPlayed");
register(GenericStatistic.TIMES_NOTEBLOCK_TUNED, "stat.noteblockTuned");
register(GenericStatistic.TIMES_PLANT_POTTED, "stat.flowerPotted");
register(GenericStatistic.TIMES_RECORD_PLAYED, "stat.recordPlayed");
register(GenericStatistic.TIMES_BED_ENTERED, "stat.sleepInBed");
register(GenericStatistic.TIMES_LEFT_GAME, "stat.leaveGame");
register(GenericStatistic.TICKS_PLAYED, "stat.playOneMinute");
register(GenericStatistic.TICKS_SINCE_DEATH, "stat.timeSinceDeath");
register(GenericStatistic.TICKS_SNEAKED, "stat.sneakTime");
register(GenericStatistic.CENTIMETERS_WALKED, "stat.walkOneCm");
register(GenericStatistic.CENTIMETERS_CROUCHED, "stat.crouchOneCm");
register(GenericStatistic.CENTIMETERS_SPRINTED, "stat.sprintOneCm");
register(GenericStatistic.CENTIMETERS_SWAM, "stat.swimOneCm");
register(GenericStatistic.CENTIMETERS_FALLEN, "stat.fallOneCm");
register(GenericStatistic.CENTIMETERS_CLIMBED, "stat.climbOneCm");
register(GenericStatistic.CENTIMETERS_FLOWN, "stat.flyOneCm");
register(GenericStatistic.CENTIMETERS_FLOWN_WITH_ELYTRA, "stat.aviateOneCm");
register(GenericStatistic.CENTIMETERS_DOVE, "stat.diveOneCm");
register(GenericStatistic.CENTIMETERS_TRAVELLED_IN_MINECART, "stat.minecartOneCm");
register(GenericStatistic.CENTIMETERS_TRAVELLED_IN_BOAT, "stat.boatOneCm");
@ -620,6 +646,9 @@ public class MagicValues {
register(GenericStatistic.CENTIMETERS_RODE_ON_HORSE, "stat.horseOneCm");
register(GenericStatistic.TIMES_JUMPED, "stat.jump");
register(GenericStatistic.TIMES_DROPPED_ITEMS, "stat.drop");
register(GenericStatistic.TIMES_ENCHANTED_ITEMS, "stat.itemEnchanted");
register(GenericStatistic.TIMES_TALKED_TO_VILLAGERS, "stat.talkedToVillager");
register(GenericStatistic.TIMES_TRADED_WITH_VILLAGERS, "stat.tradedWithVillager");
register(GenericStatistic.DAMAGE_DEALT, "stat.damageDealt");
register(GenericStatistic.DAMAGE_TAKEN, "stat.damageTaken");
register(GenericStatistic.DEATHS, "stat.deaths");
@ -627,8 +656,6 @@ public class MagicValues {
register(GenericStatistic.ANIMALS_BRED, "stat.animalsBred");
register(GenericStatistic.PLAYERS_KILLED, "stat.playerKills");
register(GenericStatistic.FISH_CAUGHT, "stat.fishCaught");
register(GenericStatistic.JUNK_FISHED, "stat.junkFished");
register(GenericStatistic.TREASURE_FISHED, "stat.treasureFished");
register(Particle.EXPLOSION_NORMAL, 0);
register(Particle.EXPLOSION_LARGE, 1);

View file

@ -2,13 +2,39 @@ package com.github.steveice10.mc.protocol.data.game.statistic;
public enum GenericStatistic implements Statistic {
CAKE_SLICES_EATEN,
TIMES_CAULDRON_FILLED,
TIMES_CAULDRON_USED,
TIMES_ARMOR_CLEANED,
TIMES_BANNER_CLEANED,
TIMES_BREWING_STAND_GUI_OPENED,
TIMES_BEACON_GUI_OPENED,
TIMES_CRAFTING_TABLE_GUI_OPENED,
TIMES_FURNACE_GUI_OPENED,
TIMES_DISPENSER_GUI_OPENED,
TIMES_DROPPER_GUI_OPENED,
TIMES_HOPPER_GUI_OPENED,
TIMES_CHEST_GUI_OPENED,
TIMES_TRAPPED_CHEST_GUI_OPENED,
TIMES_ENDER_CHEST_GUI_OPENED,
TIMES_SHULKER_BOX_GUI_OPENED,
TIMES_NOTEBLOCK_PLAYED,
TIMES_NOTEBLOCK_TUNED,
TIMES_PLANT_POTTED,
TIMES_RECORD_PLAYED,
TIMES_BED_ENTERED,
TIMES_LEFT_GAME,
TICKS_PLAYED,
TICKS_SINCE_DEATH,
TICKS_SNEAKED,
CENTIMETERS_WALKED,
CENTIMETERS_CROUCHED,
CENTIMETERS_SPRINTED,
CENTIMETERS_SWAM,
CENTIMETERS_FALLEN,
CENTIMETERS_CLIMBED,
CENTIMETERS_FLOWN,
CENTIMETERS_FLOWN_WITH_ELYTRA,
CENTIMETERS_DOVE,
CENTIMETERS_TRAVELLED_IN_MINECART,
CENTIMETERS_TRAVELLED_IN_BOAT,
@ -16,14 +42,15 @@ public enum GenericStatistic implements Statistic {
CENTIMETERS_RODE_ON_HORSE,
TIMES_JUMPED,
TIMES_DROPPED_ITEMS,
TIMES_ENCHANTED_ITEMS,
TIMES_TALKED_TO_VILLAGERS,
TIMES_TRADED_WITH_VILLAGERS,
DAMAGE_DEALT,
DAMAGE_TAKEN,
DEATHS,
MOB_KILLS,
ANIMALS_BRED,
PLAYERS_KILLED,
FISH_CAUGHT,
JUNK_FISHED,
TREASURE_FISHED;
FISH_CAUGHT;
}