org.spongepowered.api.statistic.Statistics Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spongeapi Show documentation
Show all versions of spongeapi Show documentation
A plugin API for Minecraft: Java Edition
/*
* This file is part of SpongeAPI, licensed under the MIT License (MIT).
*
* Copyright (c) SpongePowered
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
package org.spongepowered.api.statistic;
import org.spongepowered.api.ResourceKey;
import org.spongepowered.api.Sponge;
import org.spongepowered.api.registry.DefaultedRegistryReference;
import org.spongepowered.api.registry.Registry;
import org.spongepowered.api.registry.RegistryKey;
import org.spongepowered.api.registry.RegistryScope;
import org.spongepowered.api.registry.RegistryScopes;
import org.spongepowered.api.registry.RegistryTypes;
/**
*
*/
@SuppressWarnings("unused")
@RegistryScopes(scopes = RegistryScope.GAME)
public final class Statistics {
// @formatter:off
public static final DefaultedRegistryReference ANIMALS_BRED = Statistics.key(ResourceKey.minecraft("animals_bred"));
public static final DefaultedRegistryReference AVIATE_ONE_CM = Statistics.key(ResourceKey.minecraft("aviate_one_cm"));
public static final DefaultedRegistryReference BELL_RING = Statistics.key(ResourceKey.minecraft("bell_ring"));
public static final DefaultedRegistryReference BOAT_ONE_CM = Statistics.key(ResourceKey.minecraft("boat_one_cm"));
public static final DefaultedRegistryReference CLEAN_ARMOR = Statistics.key(ResourceKey.minecraft("clean_armor"));
public static final DefaultedRegistryReference CLEAN_BANNER = Statistics.key(ResourceKey.minecraft("clean_banner"));
public static final DefaultedRegistryReference CLEAN_SHULKER_BOX = Statistics.key(ResourceKey.minecraft("clean_shulker_box"));
public static final DefaultedRegistryReference CLIMB_ONE_CM = Statistics.key(ResourceKey.minecraft("climb_one_cm"));
public static final DefaultedRegistryReference CROUCH_ONE_CM = Statistics.key(ResourceKey.minecraft("crouch_one_cm"));
public static final DefaultedRegistryReference DAMAGE_ABSORBED = Statistics.key(ResourceKey.minecraft("damage_absorbed"));
public static final DefaultedRegistryReference DAMAGE_BLOCKED_BY_SHIELD = Statistics.key(ResourceKey.minecraft("damage_blocked_by_shield"));
public static final DefaultedRegistryReference DAMAGE_DEALT = Statistics.key(ResourceKey.minecraft("damage_dealt"));
public static final DefaultedRegistryReference DAMAGE_DEALT_ABSORBED = Statistics.key(ResourceKey.minecraft("damage_dealt_absorbed"));
public static final DefaultedRegistryReference DAMAGE_DEALT_RESISTED = Statistics.key(ResourceKey.minecraft("damage_dealt_resisted"));
public static final DefaultedRegistryReference DAMAGE_RESISTED = Statistics.key(ResourceKey.minecraft("damage_resisted"));
public static final DefaultedRegistryReference DAMAGE_TAKEN = Statistics.key(ResourceKey.minecraft("damage_taken"));
public static final DefaultedRegistryReference DEATHS = Statistics.key(ResourceKey.minecraft("deaths"));
public static final DefaultedRegistryReference DROP = Statistics.key(ResourceKey.minecraft("drop"));
public static final DefaultedRegistryReference EAT_CAKE_SLICE = Statistics.key(ResourceKey.minecraft("eat_cake_slice"));
public static final DefaultedRegistryReference ENCHANT_ITEM = Statistics.key(ResourceKey.minecraft("enchant_item"));
public static final DefaultedRegistryReference FALL_ONE_CM = Statistics.key(ResourceKey.minecraft("fall_one_cm"));
public static final DefaultedRegistryReference FILL_CAULDRON = Statistics.key(ResourceKey.minecraft("fill_cauldron"));
public static final DefaultedRegistryReference FISH_CAUGHT = Statistics.key(ResourceKey.minecraft("fish_caught"));
public static final DefaultedRegistryReference FLY_ONE_CM = Statistics.key(ResourceKey.minecraft("fly_one_cm"));
public static final DefaultedRegistryReference HORSE_ONE_CM = Statistics.key(ResourceKey.minecraft("horse_one_cm"));
public static final DefaultedRegistryReference INSPECT_DISPENSER = Statistics.key(ResourceKey.minecraft("inspect_dispenser"));
public static final DefaultedRegistryReference INSPECT_DROPPER = Statistics.key(ResourceKey.minecraft("inspect_dropper"));
public static final DefaultedRegistryReference INSPECT_HOPPER = Statistics.key(ResourceKey.minecraft("inspect_hopper"));
public static final DefaultedRegistryReference INTERACT_WITH_ANVIL = Statistics.key(ResourceKey.minecraft("interact_with_anvil"));
public static final DefaultedRegistryReference INTERACT_WITH_BEACON = Statistics.key(ResourceKey.minecraft("interact_with_beacon"));
public static final DefaultedRegistryReference INTERACT_WITH_BLAST_FURNACE = Statistics.key(ResourceKey.minecraft("interact_with_blast_furnace"));
public static final DefaultedRegistryReference INTERACT_WITH_BREWINGSTAND = Statistics.key(ResourceKey.minecraft("interact_with_brewingstand"));
public static final DefaultedRegistryReference INTERACT_WITH_CAMPFIRE = Statistics.key(ResourceKey.minecraft("interact_with_campfire"));
public static final DefaultedRegistryReference INTERACT_WITH_CARTOGRAPHY_TABLE = Statistics.key(ResourceKey.minecraft("interact_with_cartography_table"));
public static final DefaultedRegistryReference INTERACT_WITH_CRAFTING_TABLE = Statistics.key(ResourceKey.minecraft("interact_with_crafting_table"));
public static final DefaultedRegistryReference INTERACT_WITH_FURNACE = Statistics.key(ResourceKey.minecraft("interact_with_furnace"));
public static final DefaultedRegistryReference INTERACT_WITH_GRINDSTONE = Statistics.key(ResourceKey.minecraft("interact_with_grindstone"));
public static final DefaultedRegistryReference INTERACT_WITH_LECTERN = Statistics.key(ResourceKey.minecraft("interact_with_lectern"));
public static final DefaultedRegistryReference INTERACT_WITH_LOOM = Statistics.key(ResourceKey.minecraft("interact_with_loom"));
public static final DefaultedRegistryReference INTERACT_WITH_SMITHING_TABLE = Statistics.key(ResourceKey.minecraft("interact_with_smithing_table"));
public static final DefaultedRegistryReference INTERACT_WITH_SMOKER = Statistics.key(ResourceKey.minecraft("interact_with_smoker"));
public static final DefaultedRegistryReference INTERACT_WITH_STONECUTTER = Statistics.key(ResourceKey.minecraft("interact_with_stonecutter"));
public static final DefaultedRegistryReference JUMP = Statistics.key(ResourceKey.minecraft("jump"));
public static final DefaultedRegistryReference LEAVE_GAME = Statistics.key(ResourceKey.minecraft("leave_game"));
public static final DefaultedRegistryReference MINECART_ONE_CM = Statistics.key(ResourceKey.minecraft("minecart_one_cm"));
public static final DefaultedRegistryReference MOB_KILLS = Statistics.key(ResourceKey.minecraft("mob_kills"));
public static final DefaultedRegistryReference OPEN_BARREL = Statistics.key(ResourceKey.minecraft("open_barrel"));
public static final DefaultedRegistryReference OPEN_CHEST = Statistics.key(ResourceKey.minecraft("open_chest"));
public static final DefaultedRegistryReference OPEN_ENDERCHEST = Statistics.key(ResourceKey.minecraft("open_enderchest"));
public static final DefaultedRegistryReference OPEN_SHULKER_BOX = Statistics.key(ResourceKey.minecraft("open_shulker_box"));
public static final DefaultedRegistryReference PIG_ONE_CM = Statistics.key(ResourceKey.minecraft("pig_one_cm"));
public static final DefaultedRegistryReference PLAY_NOTEBLOCK = Statistics.key(ResourceKey.minecraft("play_noteblock"));
public static final DefaultedRegistryReference PLAY_ONE_MINUTE = Statistics.key(ResourceKey.minecraft("play_one_minute"));
public static final DefaultedRegistryReference PLAY_RECORD = Statistics.key(ResourceKey.minecraft("play_record"));
public static final DefaultedRegistryReference PLAYER_KILLS = Statistics.key(ResourceKey.minecraft("player_kills"));
public static final DefaultedRegistryReference POT_FLOWER = Statistics.key(ResourceKey.minecraft("pot_flower"));
public static final DefaultedRegistryReference RAID_TRIGGER = Statistics.key(ResourceKey.minecraft("raid_trigger"));
public static final DefaultedRegistryReference RAID_WIN = Statistics.key(ResourceKey.minecraft("raid_win"));
public static final DefaultedRegistryReference SLEEP_IN_BED = Statistics.key(ResourceKey.minecraft("sleep_in_bed"));
public static final DefaultedRegistryReference SNEAK_TIME = Statistics.key(ResourceKey.minecraft("sneak_time"));
public static final DefaultedRegistryReference SPRINT_ONE_CM = Statistics.key(ResourceKey.minecraft("sprint_one_cm"));
public static final DefaultedRegistryReference STRIDER_ONE_CM = Statistics.key(ResourceKey.minecraft("strider_one_cm"));
public static final DefaultedRegistryReference SWIM_ONE_CM = Statistics.key(ResourceKey.minecraft("swim_one_cm"));
public static final DefaultedRegistryReference TALKED_TO_VILLAGER = Statistics.key(ResourceKey.minecraft("talked_to_villager"));
public static final DefaultedRegistryReference TARGET_HIT = Statistics.key(ResourceKey.minecraft("target_hit"));
public static final DefaultedRegistryReference TIME_SINCE_DEATH = Statistics.key(ResourceKey.minecraft("time_since_death"));
public static final DefaultedRegistryReference TIME_SINCE_REST = Statistics.key(ResourceKey.minecraft("time_since_rest"));
public static final DefaultedRegistryReference TRADED_WITH_VILLAGER = Statistics.key(ResourceKey.minecraft("traded_with_villager"));
public static final DefaultedRegistryReference TRIGGER_TRAPPED_CHEST = Statistics.key(ResourceKey.minecraft("trigger_trapped_chest"));
public static final DefaultedRegistryReference TUNE_NOTEBLOCK = Statistics.key(ResourceKey.minecraft("tune_noteblock"));
public static final DefaultedRegistryReference USE_CAULDRON = Statistics.key(ResourceKey.minecraft("use_cauldron"));
public static final DefaultedRegistryReference WALK_ON_WATER_ONE_CM = Statistics.key(ResourceKey.minecraft("walk_on_water_one_cm"));
public static final DefaultedRegistryReference WALK_ONE_CM = Statistics.key(ResourceKey.minecraft("walk_one_cm"));
public static final DefaultedRegistryReference WALK_UNDER_WATER_ONE_CM = Statistics.key(ResourceKey.minecraft("walk_under_water_one_cm"));
// @formatter:on
private Statistics() {
}
public static Registry registry() {
return Sponge.game().registry(RegistryTypes.STATISTIC);
}
private static DefaultedRegistryReference key(final ResourceKey location) {
return RegistryKey.of(RegistryTypes.STATISTIC, location).asDefaultedReference(Sponge::game);
}
}