From 7c3d3f6f07701552f36b25b11dbe3005a59b2cd3 Mon Sep 17 00:00:00 2001 From: jglrxavpok Date: Mon, 29 Jun 2020 20:29:50 +0200 Subject: [PATCH] Completely removed RegistryMain --- .../minestom/server/entity/EntityType.java | 131 +++ .../net/minestom/server/item/Enchantment.java | 65 ++ .../net/minestom/server/item/Material.java | 8 +- .../minestom/server/particle/Particle.java | 90 ++ .../minestom/server/potion/PotionType.java | 71 ++ .../java/net/minestom/server/sound/Sound.java | 838 ++++++++++++++++++ .../minestom/server/stat/StatisticType.java | 99 +++ .../net/minestom/codegen/AllGenerators.java | 26 + .../minestom/codegen/BasicEnumGenerator.java | 98 ++ .../enchantment/EnchantmentEnumGenerator.java | 56 ++ .../entitytypes/EntityTypeEnumGenerator.java | 56 ++ .../codegen/items/ItemEnumGenerator.java | 29 +- .../particles/ParticleEnumGenerator.java | 56 ++ .../codegen/potions/PotionEnumGenerator.java | 56 ++ .../codegen/sounds/SoundEnumGenerator.java | 56 ++ .../codegen/stats/StatsEnumGenerator.java | 56 ++ .../net/minestom/server/MinecraftServer.java | 7 - .../minestom/server/entity/EntityType.java | 128 --- .../net/minestom/server/item/Enchantment.java | 63 -- .../minestom/server/particle/Particle.java | 87 -- .../minestom/server/potion/PotionType.java | 68 -- .../server/registry/RegistryBlock.java | 25 - .../server/registry/RegistryEnchantment.java | 8 - .../server/registry/RegistryEntityType.java | 8 - .../server/registry/RegistryItem.java | 8 - .../server/registry/RegistryMain.java | 376 -------- .../server/registry/RegistryParticle.java | 8 - .../server/registry/RegistryPotion.java | 8 - .../server/registry/RegistrySound.java | 8 - .../server/registry/RegistryStat.java | 8 - .../java/net/minestom/server/sound/Sound.java | 835 ----------------- .../minestom/server/stat/StatisticType.java | 96 -- 32 files changed, 1767 insertions(+), 1765 deletions(-) create mode 100644 src/autogenerated/java/net/minestom/server/entity/EntityType.java create mode 100644 src/autogenerated/java/net/minestom/server/item/Enchantment.java create mode 100644 src/autogenerated/java/net/minestom/server/particle/Particle.java create mode 100644 src/autogenerated/java/net/minestom/server/potion/PotionType.java create mode 100644 src/autogenerated/java/net/minestom/server/sound/Sound.java create mode 100644 src/autogenerated/java/net/minestom/server/stat/StatisticType.java create mode 100644 src/generators/java/net/minestom/codegen/AllGenerators.java create mode 100644 src/generators/java/net/minestom/codegen/BasicEnumGenerator.java create mode 100644 src/generators/java/net/minestom/codegen/enchantment/EnchantmentEnumGenerator.java create mode 100644 src/generators/java/net/minestom/codegen/entitytypes/EntityTypeEnumGenerator.java create mode 100644 src/generators/java/net/minestom/codegen/particles/ParticleEnumGenerator.java create mode 100644 src/generators/java/net/minestom/codegen/potions/PotionEnumGenerator.java create mode 100644 src/generators/java/net/minestom/codegen/sounds/SoundEnumGenerator.java create mode 100644 src/generators/java/net/minestom/codegen/stats/StatsEnumGenerator.java delete mode 100644 src/main/java/net/minestom/server/entity/EntityType.java delete mode 100644 src/main/java/net/minestom/server/item/Enchantment.java delete mode 100644 src/main/java/net/minestom/server/particle/Particle.java delete mode 100644 src/main/java/net/minestom/server/potion/PotionType.java delete mode 100644 src/main/java/net/minestom/server/registry/RegistryBlock.java delete mode 100644 src/main/java/net/minestom/server/registry/RegistryEnchantment.java delete mode 100644 src/main/java/net/minestom/server/registry/RegistryEntityType.java delete mode 100644 src/main/java/net/minestom/server/registry/RegistryItem.java delete mode 100644 src/main/java/net/minestom/server/registry/RegistryMain.java delete mode 100644 src/main/java/net/minestom/server/registry/RegistryParticle.java delete mode 100644 src/main/java/net/minestom/server/registry/RegistryPotion.java delete mode 100644 src/main/java/net/minestom/server/registry/RegistrySound.java delete mode 100644 src/main/java/net/minestom/server/registry/RegistryStat.java delete mode 100644 src/main/java/net/minestom/server/sound/Sound.java delete mode 100644 src/main/java/net/minestom/server/stat/StatisticType.java diff --git a/src/autogenerated/java/net/minestom/server/entity/EntityType.java b/src/autogenerated/java/net/minestom/server/entity/EntityType.java new file mode 100644 index 000000000..88447e82d --- /dev/null +++ b/src/autogenerated/java/net/minestom/server/entity/EntityType.java @@ -0,0 +1,131 @@ +//============================== +// AUTOGENERATED BY EnumGenerator +//============================== +package net.minestom.server.entity; + +public enum EntityType { + AREA_EFFECT_CLOUD("minecraft:area_effect_cloud"), + ARMOR_STAND("minecraft:armor_stand"), + ARROW("minecraft:arrow"), + BAT("minecraft:bat"), + BEE("minecraft:bee"), + BLAZE("minecraft:blaze"), + BOAT("minecraft:boat"), + CAT("minecraft:cat"), + CAVE_SPIDER("minecraft:cave_spider"), + CHICKEN("minecraft:chicken"), + COD("minecraft:cod"), + COW("minecraft:cow"), + CREEPER("minecraft:creeper"), + DONKEY("minecraft:donkey"), + DOLPHIN("minecraft:dolphin"), + DRAGON_FIREBALL("minecraft:dragon_fireball"), + DROWNED("minecraft:drowned"), + ELDER_GUARDIAN("minecraft:elder_guardian"), + END_CRYSTAL("minecraft:end_crystal"), + ENDER_DRAGON("minecraft:ender_dragon"), + ENDERMAN("minecraft:enderman"), + ENDERMITE("minecraft:endermite"), + EVOKER_FANGS("minecraft:evoker_fangs"), + EVOKER("minecraft:evoker"), + EXPERIENCE_ORB("minecraft:experience_orb"), + EYE_OF_ENDER("minecraft:eye_of_ender"), + FALLING_BLOCK("minecraft:falling_block"), + FIREWORK_ROCKET("minecraft:firework_rocket"), + FOX("minecraft:fox"), + GHAST("minecraft:ghast"), + GIANT("minecraft:giant"), + GUARDIAN("minecraft:guardian"), + HORSE("minecraft:horse"), + HUSK("minecraft:husk"), + ILLUSIONER("minecraft:illusioner"), + ITEM("minecraft:item"), + ITEM_FRAME("minecraft:item_frame"), + FIREBALL("minecraft:fireball"), + LEASH_KNOT("minecraft:leash_knot"), + LLAMA("minecraft:llama"), + LLAMA_SPIT("minecraft:llama_spit"), + MAGMA_CUBE("minecraft:magma_cube"), + MINECART("minecraft:minecart"), + CHEST_MINECART("minecraft:chest_minecart"), + COMMAND_BLOCK_MINECART("minecraft:command_block_minecart"), + FURNACE_MINECART("minecraft:furnace_minecart"), + HOPPER_MINECART("minecraft:hopper_minecart"), + SPAWNER_MINECART("minecraft:spawner_minecart"), + TNT_MINECART("minecraft:tnt_minecart"), + MULE("minecraft:mule"), + MOOSHROOM("minecraft:mooshroom"), + OCELOT("minecraft:ocelot"), + PAINTING("minecraft:painting"), + PANDA("minecraft:panda"), + PARROT("minecraft:parrot"), + PIG("minecraft:pig"), + PUFFERFISH("minecraft:pufferfish"), + ZOMBIE_PIGMAN("minecraft:zombie_pigman"), + POLAR_BEAR("minecraft:polar_bear"), + TNT("minecraft:tnt"), + RABBIT("minecraft:rabbit"), + SALMON("minecraft:salmon"), + SHEEP("minecraft:sheep"), + SHULKER("minecraft:shulker"), + SHULKER_BULLET("minecraft:shulker_bullet"), + SILVERFISH("minecraft:silverfish"), + SKELETON("minecraft:skeleton"), + SKELETON_HORSE("minecraft:skeleton_horse"), + SLIME("minecraft:slime"), + SMALL_FIREBALL("minecraft:small_fireball"), + SNOW_GOLEM("minecraft:snow_golem"), + SNOWBALL("minecraft:snowball"), + SPECTRAL_ARROW("minecraft:spectral_arrow"), + SPIDER("minecraft:spider"), + SQUID("minecraft:squid"), + STRAY("minecraft:stray"), + TRADER_LLAMA("minecraft:trader_llama"), + TROPICAL_FISH("minecraft:tropical_fish"), + TURTLE("minecraft:turtle"), + EGG("minecraft:egg"), + ENDER_PEARL("minecraft:ender_pearl"), + EXPERIENCE_BOTTLE("minecraft:experience_bottle"), + POTION("minecraft:potion"), + TRIDENT("minecraft:trident"), + VEX("minecraft:vex"), + VILLAGER("minecraft:villager"), + IRON_GOLEM("minecraft:iron_golem"), + VINDICATOR("minecraft:vindicator"), + PILLAGER("minecraft:pillager"), + WANDERING_TRADER("minecraft:wandering_trader"), + WITCH("minecraft:witch"), + WITHER("minecraft:wither"), + WITHER_SKELETON("minecraft:wither_skeleton"), + WITHER_SKULL("minecraft:wither_skull"), + WOLF("minecraft:wolf"), + ZOMBIE("minecraft:zombie"), + ZOMBIE_HORSE("minecraft:zombie_horse"), + ZOMBIE_VILLAGER("minecraft:zombie_villager"), + PHANTOM("minecraft:phantom"), + RAVAGER("minecraft:ravager"), + LIGHTNING_BOLT("minecraft:lightning_bolt"), + PLAYER("minecraft:player"), + FISHING_BOBBER("minecraft:fishing_bobber"), +; + private String namespaceID; + + EntityType(String namespaceID) { + this.namespaceID = namespaceID; + } + + public int getId() { + return ordinal(); + } + + public String getNamespaceID() { + return namespaceID; + } + + public static EntityType fromId(int id) { + if(id >= 0 && id < values().length) { + return values()[id]; + } + return PIG; + } +} diff --git a/src/autogenerated/java/net/minestom/server/item/Enchantment.java b/src/autogenerated/java/net/minestom/server/item/Enchantment.java new file mode 100644 index 000000000..9356f8297 --- /dev/null +++ b/src/autogenerated/java/net/minestom/server/item/Enchantment.java @@ -0,0 +1,65 @@ +//============================== +// AUTOGENERATED BY EnumGenerator +//============================== +package net.minestom.server.item; + +public enum Enchantment { + PROTECTION("minecraft:protection"), + FIRE_PROTECTION("minecraft:fire_protection"), + FEATHER_FALLING("minecraft:feather_falling"), + BLAST_PROTECTION("minecraft:blast_protection"), + PROJECTILE_PROTECTION("minecraft:projectile_protection"), + RESPIRATION("minecraft:respiration"), + AQUA_AFFINITY("minecraft:aqua_affinity"), + THORNS("minecraft:thorns"), + DEPTH_STRIDER("minecraft:depth_strider"), + FROST_WALKER("minecraft:frost_walker"), + BINDING_CURSE("minecraft:binding_curse"), + SHARPNESS("minecraft:sharpness"), + SMITE("minecraft:smite"), + BANE_OF_ARTHROPODS("minecraft:bane_of_arthropods"), + KNOCKBACK("minecraft:knockback"), + FIRE_ASPECT("minecraft:fire_aspect"), + LOOTING("minecraft:looting"), + SWEEPING("minecraft:sweeping"), + EFFICIENCY("minecraft:efficiency"), + SILK_TOUCH("minecraft:silk_touch"), + UNBREAKING("minecraft:unbreaking"), + FORTUNE("minecraft:fortune"), + POWER("minecraft:power"), + PUNCH("minecraft:punch"), + FLAME("minecraft:flame"), + INFINITY("minecraft:infinity"), + LUCK_OF_THE_SEA("minecraft:luck_of_the_sea"), + LURE("minecraft:lure"), + LOYALTY("minecraft:loyalty"), + IMPALING("minecraft:impaling"), + RIPTIDE("minecraft:riptide"), + CHANNELING("minecraft:channeling"), + MULTISHOT("minecraft:multishot"), + QUICK_CHARGE("minecraft:quick_charge"), + PIERCING("minecraft:piercing"), + MENDING("minecraft:mending"), + VANISHING_CURSE("minecraft:vanishing_curse"), +; + private String namespaceID; + + Enchantment(String namespaceID) { + this.namespaceID = namespaceID; + } + + public int getId() { + return ordinal(); + } + + public String getNamespaceID() { + return namespaceID; + } + + public static Enchantment fromId(int id) { + if(id >= 0 && id < values().length) { + return values()[id]; + } + return null; + } +} diff --git a/src/autogenerated/java/net/minestom/server/item/Material.java b/src/autogenerated/java/net/minestom/server/item/Material.java index d467be820..1691d6573 100644 --- a/src/autogenerated/java/net/minestom/server/item/Material.java +++ b/src/autogenerated/java/net/minestom/server/item/Material.java @@ -899,7 +899,6 @@ public enum Material { this.namespaceID = namespaceID; this.maxDefaultStackSize = maxDefaultStackSize; this.correspondingBlock = correspondingBlock; - MaterialMap.map.put((short)ordinal(), this); } public short getId() { @@ -922,8 +921,11 @@ public enum Material { return correspondingBlock; } - public static Material fromId(short blockId) { - return MaterialMap.map.getOrDefault(blockId, AIR); + public static Material fromId(short id) { + if(id >= 0 && id < values().length) { + return values()[id]; + } + return AIR; } public boolean isHelmet() { diff --git a/src/autogenerated/java/net/minestom/server/particle/Particle.java b/src/autogenerated/java/net/minestom/server/particle/Particle.java new file mode 100644 index 000000000..abf214457 --- /dev/null +++ b/src/autogenerated/java/net/minestom/server/particle/Particle.java @@ -0,0 +1,90 @@ +//============================== +// AUTOGENERATED BY EnumGenerator +//============================== +package net.minestom.server.particle; + +public enum Particle { + AMBIENT_ENTITY_EFFECT("minecraft:ambient_entity_effect"), + ANGRY_VILLAGER("minecraft:angry_villager"), + BARRIER("minecraft:barrier"), + BLOCK("minecraft:block"), + BUBBLE("minecraft:bubble"), + CLOUD("minecraft:cloud"), + CRIT("minecraft:crit"), + DAMAGE_INDICATOR("minecraft:damage_indicator"), + DRAGON_BREATH("minecraft:dragon_breath"), + DRIPPING_LAVA("minecraft:dripping_lava"), + FALLING_LAVA("minecraft:falling_lava"), + LANDING_LAVA("minecraft:landing_lava"), + DRIPPING_WATER("minecraft:dripping_water"), + FALLING_WATER("minecraft:falling_water"), + DUST("minecraft:dust"), + EFFECT("minecraft:effect"), + ELDER_GUARDIAN("minecraft:elder_guardian"), + ENCHANTED_HIT("minecraft:enchanted_hit"), + ENCHANT("minecraft:enchant"), + END_ROD("minecraft:end_rod"), + ENTITY_EFFECT("minecraft:entity_effect"), + EXPLOSION_EMITTER("minecraft:explosion_emitter"), + EXPLOSION("minecraft:explosion"), + FALLING_DUST("minecraft:falling_dust"), + FIREWORK("minecraft:firework"), + FISHING("minecraft:fishing"), + FLAME("minecraft:flame"), + FLASH("minecraft:flash"), + HAPPY_VILLAGER("minecraft:happy_villager"), + COMPOSTER("minecraft:composter"), + HEART("minecraft:heart"), + INSTANT_EFFECT("minecraft:instant_effect"), + ITEM("minecraft:item"), + ITEM_SLIME("minecraft:item_slime"), + ITEM_SNOWBALL("minecraft:item_snowball"), + LARGE_SMOKE("minecraft:large_smoke"), + LAVA("minecraft:lava"), + MYCELIUM("minecraft:mycelium"), + NOTE("minecraft:note"), + POOF("minecraft:poof"), + PORTAL("minecraft:portal"), + RAIN("minecraft:rain"), + SMOKE("minecraft:smoke"), + SNEEZE("minecraft:sneeze"), + SPIT("minecraft:spit"), + SQUID_INK("minecraft:squid_ink"), + SWEEP_ATTACK("minecraft:sweep_attack"), + TOTEM_OF_UNDYING("minecraft:totem_of_undying"), + UNDERWATER("minecraft:underwater"), + SPLASH("minecraft:splash"), + WITCH("minecraft:witch"), + BUBBLE_POP("minecraft:bubble_pop"), + CURRENT_DOWN("minecraft:current_down"), + BUBBLE_COLUMN_UP("minecraft:bubble_column_up"), + NAUTILUS("minecraft:nautilus"), + DOLPHIN("minecraft:dolphin"), + CAMPFIRE_COSY_SMOKE("minecraft:campfire_cosy_smoke"), + CAMPFIRE_SIGNAL_SMOKE("minecraft:campfire_signal_smoke"), + DRIPPING_HONEY("minecraft:dripping_honey"), + FALLING_HONEY("minecraft:falling_honey"), + LANDING_HONEY("minecraft:landing_honey"), + FALLING_NECTAR("minecraft:falling_nectar"), +; + private String namespaceID; + + Particle(String namespaceID) { + this.namespaceID = namespaceID; + } + + public int getId() { + return ordinal(); + } + + public String getNamespaceID() { + return namespaceID; + } + + public static Particle fromId(int id) { + if(id >= 0 && id < values().length) { + return values()[id]; + } + return null; + } +} diff --git a/src/autogenerated/java/net/minestom/server/potion/PotionType.java b/src/autogenerated/java/net/minestom/server/potion/PotionType.java new file mode 100644 index 000000000..cf9408f86 --- /dev/null +++ b/src/autogenerated/java/net/minestom/server/potion/PotionType.java @@ -0,0 +1,71 @@ +//============================== +// AUTOGENERATED BY EnumGenerator +//============================== +package net.minestom.server.potion; + +public enum PotionType { + EMPTY("minecraft:empty"), + WATER("minecraft:water"), + MUNDANE("minecraft:mundane"), + THICK("minecraft:thick"), + AWKWARD("minecraft:awkward"), + NIGHT_VISION("minecraft:night_vision"), + LONG_NIGHT_VISION("minecraft:long_night_vision"), + INVISIBILITY("minecraft:invisibility"), + LONG_INVISIBILITY("minecraft:long_invisibility"), + LEAPING("minecraft:leaping"), + LONG_LEAPING("minecraft:long_leaping"), + STRONG_LEAPING("minecraft:strong_leaping"), + FIRE_RESISTANCE("minecraft:fire_resistance"), + LONG_FIRE_RESISTANCE("minecraft:long_fire_resistance"), + SWIFTNESS("minecraft:swiftness"), + LONG_SWIFTNESS("minecraft:long_swiftness"), + STRONG_SWIFTNESS("minecraft:strong_swiftness"), + SLOWNESS("minecraft:slowness"), + LONG_SLOWNESS("minecraft:long_slowness"), + STRONG_SLOWNESS("minecraft:strong_slowness"), + TURTLE_MASTER("minecraft:turtle_master"), + LONG_TURTLE_MASTER("minecraft:long_turtle_master"), + STRONG_TURTLE_MASTER("minecraft:strong_turtle_master"), + WATER_BREATHING("minecraft:water_breathing"), + LONG_WATER_BREATHING("minecraft:long_water_breathing"), + HEALING("minecraft:healing"), + STRONG_HEALING("minecraft:strong_healing"), + HARMING("minecraft:harming"), + STRONG_HARMING("minecraft:strong_harming"), + POISON("minecraft:poison"), + LONG_POISON("minecraft:long_poison"), + STRONG_POISON("minecraft:strong_poison"), + REGENERATION("minecraft:regeneration"), + LONG_REGENERATION("minecraft:long_regeneration"), + STRONG_REGENERATION("minecraft:strong_regeneration"), + STRENGTH("minecraft:strength"), + LONG_STRENGTH("minecraft:long_strength"), + STRONG_STRENGTH("minecraft:strong_strength"), + WEAKNESS("minecraft:weakness"), + LONG_WEAKNESS("minecraft:long_weakness"), + LUCK("minecraft:luck"), + SLOW_FALLING("minecraft:slow_falling"), + LONG_SLOW_FALLING("minecraft:long_slow_falling"), +; + private String namespaceID; + + PotionType(String namespaceID) { + this.namespaceID = namespaceID; + } + + public int getId() { + return ordinal(); + } + + public String getNamespaceID() { + return namespaceID; + } + + public static PotionType fromId(int id) { + if(id >= 0 && id < values().length) { + return values()[id]; + } + return EMPTY; + } +} diff --git a/src/autogenerated/java/net/minestom/server/sound/Sound.java b/src/autogenerated/java/net/minestom/server/sound/Sound.java new file mode 100644 index 000000000..13816abe9 --- /dev/null +++ b/src/autogenerated/java/net/minestom/server/sound/Sound.java @@ -0,0 +1,838 @@ +//============================== +// AUTOGENERATED BY EnumGenerator +//============================== +package net.minestom.server.sound; + +public enum Sound { + AMBIENT_CAVE("minecraft:ambient.cave"), + AMBIENT_UNDERWATER_ENTER("minecraft:ambient.underwater.enter"), + AMBIENT_UNDERWATER_EXIT("minecraft:ambient.underwater.exit"), + AMBIENT_UNDERWATER_LOOP("minecraft:ambient.underwater.loop"), + AMBIENT_UNDERWATER_LOOP_ADDITIONS("minecraft:ambient.underwater.loop.additions"), + AMBIENT_UNDERWATER_LOOP_ADDITIONS_RARE("minecraft:ambient.underwater.loop.additions.rare"), + AMBIENT_UNDERWATER_LOOP_ADDITIONS_ULTRA_RARE("minecraft:ambient.underwater.loop.additions.ultra_rare"), + BLOCK_ANVIL_BREAK("minecraft:block.anvil.break"), + BLOCK_ANVIL_DESTROY("minecraft:block.anvil.destroy"), + BLOCK_ANVIL_FALL("minecraft:block.anvil.fall"), + BLOCK_ANVIL_HIT("minecraft:block.anvil.hit"), + BLOCK_ANVIL_LAND("minecraft:block.anvil.land"), + BLOCK_ANVIL_PLACE("minecraft:block.anvil.place"), + BLOCK_ANVIL_STEP("minecraft:block.anvil.step"), + BLOCK_ANVIL_USE("minecraft:block.anvil.use"), + ITEM_ARMOR_EQUIP_CHAIN("minecraft:item.armor.equip_chain"), + ITEM_ARMOR_EQUIP_DIAMOND("minecraft:item.armor.equip_diamond"), + ITEM_ARMOR_EQUIP_ELYTRA("minecraft:item.armor.equip_elytra"), + ITEM_ARMOR_EQUIP_GENERIC("minecraft:item.armor.equip_generic"), + ITEM_ARMOR_EQUIP_GOLD("minecraft:item.armor.equip_gold"), + ITEM_ARMOR_EQUIP_IRON("minecraft:item.armor.equip_iron"), + ITEM_ARMOR_EQUIP_LEATHER("minecraft:item.armor.equip_leather"), + ITEM_ARMOR_EQUIP_TURTLE("minecraft:item.armor.equip_turtle"), + ENTITY_ARMOR_STAND_BREAK("minecraft:entity.armor_stand.break"), + ENTITY_ARMOR_STAND_FALL("minecraft:entity.armor_stand.fall"), + ENTITY_ARMOR_STAND_HIT("minecraft:entity.armor_stand.hit"), + ENTITY_ARMOR_STAND_PLACE("minecraft:entity.armor_stand.place"), + ENTITY_ARROW_HIT("minecraft:entity.arrow.hit"), + ENTITY_ARROW_HIT_PLAYER("minecraft:entity.arrow.hit_player"), + ENTITY_ARROW_SHOOT("minecraft:entity.arrow.shoot"), + ITEM_AXE_STRIP("minecraft:item.axe.strip"), + BLOCK_BAMBOO_BREAK("minecraft:block.bamboo.break"), + BLOCK_BAMBOO_FALL("minecraft:block.bamboo.fall"), + BLOCK_BAMBOO_HIT("minecraft:block.bamboo.hit"), + BLOCK_BAMBOO_PLACE("minecraft:block.bamboo.place"), + BLOCK_BAMBOO_STEP("minecraft:block.bamboo.step"), + BLOCK_BAMBOO_SAPLING_BREAK("minecraft:block.bamboo_sapling.break"), + BLOCK_BAMBOO_SAPLING_HIT("minecraft:block.bamboo_sapling.hit"), + BLOCK_BAMBOO_SAPLING_PLACE("minecraft:block.bamboo_sapling.place"), + BLOCK_BARREL_CLOSE("minecraft:block.barrel.close"), + BLOCK_BARREL_OPEN("minecraft:block.barrel.open"), + ENTITY_BAT_AMBIENT("minecraft:entity.bat.ambient"), + ENTITY_BAT_DEATH("minecraft:entity.bat.death"), + ENTITY_BAT_HURT("minecraft:entity.bat.hurt"), + ENTITY_BAT_LOOP("minecraft:entity.bat.loop"), + ENTITY_BAT_TAKEOFF("minecraft:entity.bat.takeoff"), + BLOCK_BEACON_ACTIVATE("minecraft:block.beacon.activate"), + BLOCK_BEACON_AMBIENT("minecraft:block.beacon.ambient"), + BLOCK_BEACON_DEACTIVATE("minecraft:block.beacon.deactivate"), + BLOCK_BEACON_POWER_SELECT("minecraft:block.beacon.power_select"), + ENTITY_BEE_DEATH("minecraft:entity.bee.death"), + ENTITY_BEE_HURT("minecraft:entity.bee.hurt"), + ENTITY_BEE_LOOP_AGGRESSIVE("minecraft:entity.bee.loop_aggressive"), + ENTITY_BEE_LOOP("minecraft:entity.bee.loop"), + ENTITY_BEE_STING("minecraft:entity.bee.sting"), + ENTITY_BEE_POLLINATE("minecraft:entity.bee.pollinate"), + BLOCK_BEEHIVE_DRIP("minecraft:block.beehive.drip"), + BLOCK_BEEHIVE_ENTER("minecraft:block.beehive.enter"), + BLOCK_BEEHIVE_EXIT("minecraft:block.beehive.exit"), + BLOCK_BEEHIVE_SHEAR("minecraft:block.beehive.shear"), + BLOCK_BEEHIVE_WORK("minecraft:block.beehive.work"), + BLOCK_BELL_USE("minecraft:block.bell.use"), + BLOCK_BELL_RESONATE("minecraft:block.bell.resonate"), + ENTITY_BLAZE_AMBIENT("minecraft:entity.blaze.ambient"), + ENTITY_BLAZE_BURN("minecraft:entity.blaze.burn"), + ENTITY_BLAZE_DEATH("minecraft:entity.blaze.death"), + ENTITY_BLAZE_HURT("minecraft:entity.blaze.hurt"), + ENTITY_BLAZE_SHOOT("minecraft:entity.blaze.shoot"), + ENTITY_BOAT_PADDLE_LAND("minecraft:entity.boat.paddle_land"), + ENTITY_BOAT_PADDLE_WATER("minecraft:entity.boat.paddle_water"), + ITEM_BOOK_PAGE_TURN("minecraft:item.book.page_turn"), + ITEM_BOOK_PUT("minecraft:item.book.put"), + ENTITY_FISHING_BOBBER_RETRIEVE("minecraft:entity.fishing_bobber.retrieve"), + ENTITY_FISHING_BOBBER_SPLASH("minecraft:entity.fishing_bobber.splash"), + ENTITY_FISHING_BOBBER_THROW("minecraft:entity.fishing_bobber.throw"), + BLOCK_BLASTFURNACE_FIRE_CRACKLE("minecraft:block.blastfurnace.fire_crackle"), + ITEM_BOTTLE_EMPTY("minecraft:item.bottle.empty"), + ITEM_BOTTLE_FILL("minecraft:item.bottle.fill"), + ITEM_BOTTLE_FILL_DRAGONBREATH("minecraft:item.bottle.fill_dragonbreath"), + BLOCK_BREWING_STAND_BREW("minecraft:block.brewing_stand.brew"), + BLOCK_BUBBLE_COLUMN_BUBBLE_POP("minecraft:block.bubble_column.bubble_pop"), + BLOCK_BUBBLE_COLUMN_UPWARDS_AMBIENT("minecraft:block.bubble_column.upwards_ambient"), + BLOCK_BUBBLE_COLUMN_UPWARDS_INSIDE("minecraft:block.bubble_column.upwards_inside"), + BLOCK_BUBBLE_COLUMN_WHIRLPOOL_AMBIENT("minecraft:block.bubble_column.whirlpool_ambient"), + BLOCK_BUBBLE_COLUMN_WHIRLPOOL_INSIDE("minecraft:block.bubble_column.whirlpool_inside"), + ITEM_BUCKET_EMPTY("minecraft:item.bucket.empty"), + ITEM_BUCKET_EMPTY_FISH("minecraft:item.bucket.empty_fish"), + ITEM_BUCKET_EMPTY_LAVA("minecraft:item.bucket.empty_lava"), + ITEM_BUCKET_FILL("minecraft:item.bucket.fill"), + ITEM_BUCKET_FILL_FISH("minecraft:item.bucket.fill_fish"), + ITEM_BUCKET_FILL_LAVA("minecraft:item.bucket.fill_lava"), + BLOCK_CAMPFIRE_CRACKLE("minecraft:block.campfire.crackle"), + ENTITY_CAT_AMBIENT("minecraft:entity.cat.ambient"), + ENTITY_CAT_STRAY_AMBIENT("minecraft:entity.cat.stray_ambient"), + ENTITY_CAT_DEATH("minecraft:entity.cat.death"), + ENTITY_CAT_EAT("minecraft:entity.cat.eat"), + ENTITY_CAT_HISS("minecraft:entity.cat.hiss"), + ENTITY_CAT_BEG_FOR_FOOD("minecraft:entity.cat.beg_for_food"), + ENTITY_CAT_HURT("minecraft:entity.cat.hurt"), + ENTITY_CAT_PURR("minecraft:entity.cat.purr"), + ENTITY_CAT_PURREOW("minecraft:entity.cat.purreow"), + BLOCK_CHEST_CLOSE("minecraft:block.chest.close"), + BLOCK_CHEST_LOCKED("minecraft:block.chest.locked"), + BLOCK_CHEST_OPEN("minecraft:block.chest.open"), + ENTITY_CHICKEN_AMBIENT("minecraft:entity.chicken.ambient"), + ENTITY_CHICKEN_DEATH("minecraft:entity.chicken.death"), + ENTITY_CHICKEN_EGG("minecraft:entity.chicken.egg"), + ENTITY_CHICKEN_HURT("minecraft:entity.chicken.hurt"), + ENTITY_CHICKEN_STEP("minecraft:entity.chicken.step"), + BLOCK_CHORUS_FLOWER_DEATH("minecraft:block.chorus_flower.death"), + BLOCK_CHORUS_FLOWER_GROW("minecraft:block.chorus_flower.grow"), + ITEM_CHORUS_FRUIT_TELEPORT("minecraft:item.chorus_fruit.teleport"), + BLOCK_WOOL_BREAK("minecraft:block.wool.break"), + BLOCK_WOOL_FALL("minecraft:block.wool.fall"), + BLOCK_WOOL_HIT("minecraft:block.wool.hit"), + BLOCK_WOOL_PLACE("minecraft:block.wool.place"), + BLOCK_WOOL_STEP("minecraft:block.wool.step"), + ENTITY_COD_AMBIENT("minecraft:entity.cod.ambient"), + ENTITY_COD_DEATH("minecraft:entity.cod.death"), + ENTITY_COD_FLOP("minecraft:entity.cod.flop"), + ENTITY_COD_HURT("minecraft:entity.cod.hurt"), + BLOCK_COMPARATOR_CLICK("minecraft:block.comparator.click"), + BLOCK_COMPOSTER_EMPTY("minecraft:block.composter.empty"), + BLOCK_COMPOSTER_FILL("minecraft:block.composter.fill"), + BLOCK_COMPOSTER_FILL_SUCCESS("minecraft:block.composter.fill_success"), + BLOCK_COMPOSTER_READY("minecraft:block.composter.ready"), + BLOCK_CONDUIT_ACTIVATE("minecraft:block.conduit.activate"), + BLOCK_CONDUIT_AMBIENT("minecraft:block.conduit.ambient"), + BLOCK_CONDUIT_AMBIENT_SHORT("minecraft:block.conduit.ambient.short"), + BLOCK_CONDUIT_ATTACK_TARGET("minecraft:block.conduit.attack.target"), + BLOCK_CONDUIT_DEACTIVATE("minecraft:block.conduit.deactivate"), + ENTITY_COW_AMBIENT("minecraft:entity.cow.ambient"), + ENTITY_COW_DEATH("minecraft:entity.cow.death"), + ENTITY_COW_HURT("minecraft:entity.cow.hurt"), + ENTITY_COW_MILK("minecraft:entity.cow.milk"), + ENTITY_COW_STEP("minecraft:entity.cow.step"), + ENTITY_CREEPER_DEATH("minecraft:entity.creeper.death"), + ENTITY_CREEPER_HURT("minecraft:entity.creeper.hurt"), + ENTITY_CREEPER_PRIMED("minecraft:entity.creeper.primed"), + BLOCK_CROP_BREAK("minecraft:block.crop.break"), + ITEM_CROP_PLANT("minecraft:item.crop.plant"), + ITEM_CROSSBOW_HIT("minecraft:item.crossbow.hit"), + ITEM_CROSSBOW_LOADING_END("minecraft:item.crossbow.loading_end"), + ITEM_CROSSBOW_LOADING_MIDDLE("minecraft:item.crossbow.loading_middle"), + ITEM_CROSSBOW_LOADING_START("minecraft:item.crossbow.loading_start"), + ITEM_CROSSBOW_QUICK_CHARGE_1("minecraft:item.crossbow.quick_charge_1"), + ITEM_CROSSBOW_QUICK_CHARGE_2("minecraft:item.crossbow.quick_charge_2"), + ITEM_CROSSBOW_QUICK_CHARGE_3("minecraft:item.crossbow.quick_charge_3"), + ITEM_CROSSBOW_SHOOT("minecraft:item.crossbow.shoot"), + BLOCK_DISPENSER_DISPENSE("minecraft:block.dispenser.dispense"), + BLOCK_DISPENSER_FAIL("minecraft:block.dispenser.fail"), + BLOCK_DISPENSER_LAUNCH("minecraft:block.dispenser.launch"), + ENTITY_DOLPHIN_AMBIENT("minecraft:entity.dolphin.ambient"), + ENTITY_DOLPHIN_AMBIENT_WATER("minecraft:entity.dolphin.ambient_water"), + ENTITY_DOLPHIN_ATTACK("minecraft:entity.dolphin.attack"), + ENTITY_DOLPHIN_DEATH("minecraft:entity.dolphin.death"), + ENTITY_DOLPHIN_EAT("minecraft:entity.dolphin.eat"), + ENTITY_DOLPHIN_HURT("minecraft:entity.dolphin.hurt"), + ENTITY_DOLPHIN_JUMP("minecraft:entity.dolphin.jump"), + ENTITY_DOLPHIN_PLAY("minecraft:entity.dolphin.play"), + ENTITY_DOLPHIN_SPLASH("minecraft:entity.dolphin.splash"), + ENTITY_DOLPHIN_SWIM("minecraft:entity.dolphin.swim"), + ENTITY_DONKEY_AMBIENT("minecraft:entity.donkey.ambient"), + ENTITY_DONKEY_ANGRY("minecraft:entity.donkey.angry"), + ENTITY_DONKEY_CHEST("minecraft:entity.donkey.chest"), + ENTITY_DONKEY_DEATH("minecraft:entity.donkey.death"), + ENTITY_DONKEY_HURT("minecraft:entity.donkey.hurt"), + ENTITY_DROWNED_AMBIENT("minecraft:entity.drowned.ambient"), + ENTITY_DROWNED_AMBIENT_WATER("minecraft:entity.drowned.ambient_water"), + ENTITY_DROWNED_DEATH("minecraft:entity.drowned.death"), + ENTITY_DROWNED_DEATH_WATER("minecraft:entity.drowned.death_water"), + ENTITY_DROWNED_HURT("minecraft:entity.drowned.hurt"), + ENTITY_DROWNED_HURT_WATER("minecraft:entity.drowned.hurt_water"), + ENTITY_DROWNED_SHOOT("minecraft:entity.drowned.shoot"), + ENTITY_DROWNED_STEP("minecraft:entity.drowned.step"), + ENTITY_DROWNED_SWIM("minecraft:entity.drowned.swim"), + ENTITY_EGG_THROW("minecraft:entity.egg.throw"), + ENTITY_ELDER_GUARDIAN_AMBIENT("minecraft:entity.elder_guardian.ambient"), + ENTITY_ELDER_GUARDIAN_AMBIENT_LAND("minecraft:entity.elder_guardian.ambient_land"), + ENTITY_ELDER_GUARDIAN_CURSE("minecraft:entity.elder_guardian.curse"), + ENTITY_ELDER_GUARDIAN_DEATH("minecraft:entity.elder_guardian.death"), + ENTITY_ELDER_GUARDIAN_DEATH_LAND("minecraft:entity.elder_guardian.death_land"), + ENTITY_ELDER_GUARDIAN_FLOP("minecraft:entity.elder_guardian.flop"), + ENTITY_ELDER_GUARDIAN_HURT("minecraft:entity.elder_guardian.hurt"), + ENTITY_ELDER_GUARDIAN_HURT_LAND("minecraft:entity.elder_guardian.hurt_land"), + ITEM_ELYTRA_FLYING("minecraft:item.elytra.flying"), + BLOCK_ENCHANTMENT_TABLE_USE("minecraft:block.enchantment_table.use"), + BLOCK_ENDER_CHEST_CLOSE("minecraft:block.ender_chest.close"), + BLOCK_ENDER_CHEST_OPEN("minecraft:block.ender_chest.open"), + ENTITY_ENDER_DRAGON_AMBIENT("minecraft:entity.ender_dragon.ambient"), + ENTITY_ENDER_DRAGON_DEATH("minecraft:entity.ender_dragon.death"), + ENTITY_DRAGON_FIREBALL_EXPLODE("minecraft:entity.dragon_fireball.explode"), + ENTITY_ENDER_DRAGON_FLAP("minecraft:entity.ender_dragon.flap"), + ENTITY_ENDER_DRAGON_GROWL("minecraft:entity.ender_dragon.growl"), + ENTITY_ENDER_DRAGON_HURT("minecraft:entity.ender_dragon.hurt"), + ENTITY_ENDER_DRAGON_SHOOT("minecraft:entity.ender_dragon.shoot"), + ENTITY_ENDER_EYE_DEATH("minecraft:entity.ender_eye.death"), + ENTITY_ENDER_EYE_LAUNCH("minecraft:entity.ender_eye.launch"), + ENTITY_ENDERMAN_AMBIENT("minecraft:entity.enderman.ambient"), + ENTITY_ENDERMAN_DEATH("minecraft:entity.enderman.death"), + ENTITY_ENDERMAN_HURT("minecraft:entity.enderman.hurt"), + ENTITY_ENDERMAN_SCREAM("minecraft:entity.enderman.scream"), + ENTITY_ENDERMAN_STARE("minecraft:entity.enderman.stare"), + ENTITY_ENDERMAN_TELEPORT("minecraft:entity.enderman.teleport"), + ENTITY_ENDERMITE_AMBIENT("minecraft:entity.endermite.ambient"), + ENTITY_ENDERMITE_DEATH("minecraft:entity.endermite.death"), + ENTITY_ENDERMITE_HURT("minecraft:entity.endermite.hurt"), + ENTITY_ENDERMITE_STEP("minecraft:entity.endermite.step"), + ENTITY_ENDER_PEARL_THROW("minecraft:entity.ender_pearl.throw"), + BLOCK_END_GATEWAY_SPAWN("minecraft:block.end_gateway.spawn"), + BLOCK_END_PORTAL_FRAME_FILL("minecraft:block.end_portal_frame.fill"), + BLOCK_END_PORTAL_SPAWN("minecraft:block.end_portal.spawn"), + ENTITY_EVOKER_AMBIENT("minecraft:entity.evoker.ambient"), + ENTITY_EVOKER_CAST_SPELL("minecraft:entity.evoker.cast_spell"), + ENTITY_EVOKER_CELEBRATE("minecraft:entity.evoker.celebrate"), + ENTITY_EVOKER_DEATH("minecraft:entity.evoker.death"), + ENTITY_EVOKER_FANGS_ATTACK("minecraft:entity.evoker_fangs.attack"), + ENTITY_EVOKER_HURT("minecraft:entity.evoker.hurt"), + ENTITY_EVOKER_PREPARE_ATTACK("minecraft:entity.evoker.prepare_attack"), + ENTITY_EVOKER_PREPARE_SUMMON("minecraft:entity.evoker.prepare_summon"), + ENTITY_EVOKER_PREPARE_WOLOLO("minecraft:entity.evoker.prepare_wololo"), + ENTITY_EXPERIENCE_BOTTLE_THROW("minecraft:entity.experience_bottle.throw"), + ENTITY_EXPERIENCE_ORB_PICKUP("minecraft:entity.experience_orb.pickup"), + BLOCK_FENCE_GATE_CLOSE("minecraft:block.fence_gate.close"), + BLOCK_FENCE_GATE_OPEN("minecraft:block.fence_gate.open"), + ITEM_FIRECHARGE_USE("minecraft:item.firecharge.use"), + ENTITY_FIREWORK_ROCKET_BLAST("minecraft:entity.firework_rocket.blast"), + ENTITY_FIREWORK_ROCKET_BLAST_FAR("minecraft:entity.firework_rocket.blast_far"), + ENTITY_FIREWORK_ROCKET_LARGE_BLAST("minecraft:entity.firework_rocket.large_blast"), + ENTITY_FIREWORK_ROCKET_LARGE_BLAST_FAR("minecraft:entity.firework_rocket.large_blast_far"), + ENTITY_FIREWORK_ROCKET_LAUNCH("minecraft:entity.firework_rocket.launch"), + ENTITY_FIREWORK_ROCKET_SHOOT("minecraft:entity.firework_rocket.shoot"), + ENTITY_FIREWORK_ROCKET_TWINKLE("minecraft:entity.firework_rocket.twinkle"), + ENTITY_FIREWORK_ROCKET_TWINKLE_FAR("minecraft:entity.firework_rocket.twinkle_far"), + BLOCK_FIRE_AMBIENT("minecraft:block.fire.ambient"), + BLOCK_FIRE_EXTINGUISH("minecraft:block.fire.extinguish"), + ENTITY_FISH_SWIM("minecraft:entity.fish.swim"), + ITEM_FLINTANDSTEEL_USE("minecraft:item.flintandsteel.use"), + ENTITY_FOX_AGGRO("minecraft:entity.fox.aggro"), + ENTITY_FOX_AMBIENT("minecraft:entity.fox.ambient"), + ENTITY_FOX_BITE("minecraft:entity.fox.bite"), + ENTITY_FOX_DEATH("minecraft:entity.fox.death"), + ENTITY_FOX_EAT("minecraft:entity.fox.eat"), + ENTITY_FOX_HURT("minecraft:entity.fox.hurt"), + ENTITY_FOX_SCREECH("minecraft:entity.fox.screech"), + ENTITY_FOX_SLEEP("minecraft:entity.fox.sleep"), + ENTITY_FOX_SNIFF("minecraft:entity.fox.sniff"), + ENTITY_FOX_SPIT("minecraft:entity.fox.spit"), + BLOCK_FURNACE_FIRE_CRACKLE("minecraft:block.furnace.fire_crackle"), + ENTITY_GENERIC_BIG_FALL("minecraft:entity.generic.big_fall"), + ENTITY_GENERIC_BURN("minecraft:entity.generic.burn"), + ENTITY_GENERIC_DEATH("minecraft:entity.generic.death"), + ENTITY_GENERIC_DRINK("minecraft:entity.generic.drink"), + ENTITY_GENERIC_EAT("minecraft:entity.generic.eat"), + ENTITY_GENERIC_EXPLODE("minecraft:entity.generic.explode"), + ENTITY_GENERIC_EXTINGUISH_FIRE("minecraft:entity.generic.extinguish_fire"), + ENTITY_GENERIC_HURT("minecraft:entity.generic.hurt"), + ENTITY_GENERIC_SMALL_FALL("minecraft:entity.generic.small_fall"), + ENTITY_GENERIC_SPLASH("minecraft:entity.generic.splash"), + ENTITY_GENERIC_SWIM("minecraft:entity.generic.swim"), + ENTITY_GHAST_AMBIENT("minecraft:entity.ghast.ambient"), + ENTITY_GHAST_DEATH("minecraft:entity.ghast.death"), + ENTITY_GHAST_HURT("minecraft:entity.ghast.hurt"), + ENTITY_GHAST_SCREAM("minecraft:entity.ghast.scream"), + ENTITY_GHAST_SHOOT("minecraft:entity.ghast.shoot"), + ENTITY_GHAST_WARN("minecraft:entity.ghast.warn"), + BLOCK_GLASS_BREAK("minecraft:block.glass.break"), + BLOCK_GLASS_FALL("minecraft:block.glass.fall"), + BLOCK_GLASS_HIT("minecraft:block.glass.hit"), + BLOCK_GLASS_PLACE("minecraft:block.glass.place"), + BLOCK_GLASS_STEP("minecraft:block.glass.step"), + BLOCK_GRASS_BREAK("minecraft:block.grass.break"), + BLOCK_GRASS_FALL("minecraft:block.grass.fall"), + BLOCK_GRASS_HIT("minecraft:block.grass.hit"), + BLOCK_GRASS_PLACE("minecraft:block.grass.place"), + BLOCK_GRASS_STEP("minecraft:block.grass.step"), + BLOCK_WET_GRASS_BREAK("minecraft:block.wet_grass.break"), + BLOCK_WET_GRASS_FALL("minecraft:block.wet_grass.fall"), + BLOCK_WET_GRASS_HIT("minecraft:block.wet_grass.hit"), + BLOCK_WET_GRASS_PLACE("minecraft:block.wet_grass.place"), + BLOCK_WET_GRASS_STEP("minecraft:block.wet_grass.step"), + BLOCK_CORAL_BLOCK_BREAK("minecraft:block.coral_block.break"), + BLOCK_CORAL_BLOCK_FALL("minecraft:block.coral_block.fall"), + BLOCK_CORAL_BLOCK_HIT("minecraft:block.coral_block.hit"), + BLOCK_CORAL_BLOCK_PLACE("minecraft:block.coral_block.place"), + BLOCK_CORAL_BLOCK_STEP("minecraft:block.coral_block.step"), + BLOCK_GRAVEL_BREAK("minecraft:block.gravel.break"), + BLOCK_GRAVEL_FALL("minecraft:block.gravel.fall"), + BLOCK_GRAVEL_HIT("minecraft:block.gravel.hit"), + BLOCK_GRAVEL_PLACE("minecraft:block.gravel.place"), + BLOCK_GRAVEL_STEP("minecraft:block.gravel.step"), + BLOCK_GRINDSTONE_USE("minecraft:block.grindstone.use"), + ENTITY_GUARDIAN_AMBIENT("minecraft:entity.guardian.ambient"), + ENTITY_GUARDIAN_AMBIENT_LAND("minecraft:entity.guardian.ambient_land"), + ENTITY_GUARDIAN_ATTACK("minecraft:entity.guardian.attack"), + ENTITY_GUARDIAN_DEATH("minecraft:entity.guardian.death"), + ENTITY_GUARDIAN_DEATH_LAND("minecraft:entity.guardian.death_land"), + ENTITY_GUARDIAN_FLOP("minecraft:entity.guardian.flop"), + ENTITY_GUARDIAN_HURT("minecraft:entity.guardian.hurt"), + ENTITY_GUARDIAN_HURT_LAND("minecraft:entity.guardian.hurt_land"), + ITEM_HOE_TILL("minecraft:item.hoe.till"), + BLOCK_HONEY_BLOCK_BREAK("minecraft:block.honey_block.break"), + BLOCK_HONEY_BLOCK_FALL("minecraft:block.honey_block.fall"), + BLOCK_HONEY_BLOCK_HIT("minecraft:block.honey_block.hit"), + BLOCK_HONEY_BLOCK_PLACE("minecraft:block.honey_block.place"), + BLOCK_HONEY_BLOCK_SLIDE("minecraft:block.honey_block.slide"), + BLOCK_HONEY_BLOCK_STEP("minecraft:block.honey_block.step"), + ITEM_HONEY_BOTTLE_DRINK("minecraft:item.honey_bottle.drink"), + ENTITY_HORSE_AMBIENT("minecraft:entity.horse.ambient"), + ENTITY_HORSE_ANGRY("minecraft:entity.horse.angry"), + ENTITY_HORSE_ARMOR("minecraft:entity.horse.armor"), + ENTITY_HORSE_BREATHE("minecraft:entity.horse.breathe"), + ENTITY_HORSE_DEATH("minecraft:entity.horse.death"), + ENTITY_HORSE_EAT("minecraft:entity.horse.eat"), + ENTITY_HORSE_GALLOP("minecraft:entity.horse.gallop"), + ENTITY_HORSE_HURT("minecraft:entity.horse.hurt"), + ENTITY_HORSE_JUMP("minecraft:entity.horse.jump"), + ENTITY_HORSE_LAND("minecraft:entity.horse.land"), + ENTITY_HORSE_SADDLE("minecraft:entity.horse.saddle"), + ENTITY_HORSE_STEP("minecraft:entity.horse.step"), + ENTITY_HORSE_STEP_WOOD("minecraft:entity.horse.step_wood"), + ENTITY_HOSTILE_BIG_FALL("minecraft:entity.hostile.big_fall"), + ENTITY_HOSTILE_DEATH("minecraft:entity.hostile.death"), + ENTITY_HOSTILE_HURT("minecraft:entity.hostile.hurt"), + ENTITY_HOSTILE_SMALL_FALL("minecraft:entity.hostile.small_fall"), + ENTITY_HOSTILE_SPLASH("minecraft:entity.hostile.splash"), + ENTITY_HOSTILE_SWIM("minecraft:entity.hostile.swim"), + ENTITY_HUSK_AMBIENT("minecraft:entity.husk.ambient"), + ENTITY_HUSK_CONVERTED_TO_ZOMBIE("minecraft:entity.husk.converted_to_zombie"), + ENTITY_HUSK_DEATH("minecraft:entity.husk.death"), + ENTITY_HUSK_HURT("minecraft:entity.husk.hurt"), + ENTITY_HUSK_STEP("minecraft:entity.husk.step"), + ENTITY_RAVAGER_AMBIENT("minecraft:entity.ravager.ambient"), + ENTITY_RAVAGER_ATTACK("minecraft:entity.ravager.attack"), + ENTITY_RAVAGER_CELEBRATE("minecraft:entity.ravager.celebrate"), + ENTITY_RAVAGER_DEATH("minecraft:entity.ravager.death"), + ENTITY_RAVAGER_HURT("minecraft:entity.ravager.hurt"), + ENTITY_RAVAGER_STEP("minecraft:entity.ravager.step"), + ENTITY_RAVAGER_STUNNED("minecraft:entity.ravager.stunned"), + ENTITY_RAVAGER_ROAR("minecraft:entity.ravager.roar"), + ENTITY_ILLUSIONER_AMBIENT("minecraft:entity.illusioner.ambient"), + ENTITY_ILLUSIONER_CAST_SPELL("minecraft:entity.illusioner.cast_spell"), + ENTITY_ILLUSIONER_DEATH("minecraft:entity.illusioner.death"), + ENTITY_ILLUSIONER_HURT("minecraft:entity.illusioner.hurt"), + ENTITY_ILLUSIONER_MIRROR_MOVE("minecraft:entity.illusioner.mirror_move"), + ENTITY_ILLUSIONER_PREPARE_BLINDNESS("minecraft:entity.illusioner.prepare_blindness"), + ENTITY_ILLUSIONER_PREPARE_MIRROR("minecraft:entity.illusioner.prepare_mirror"), + BLOCK_IRON_DOOR_CLOSE("minecraft:block.iron_door.close"), + BLOCK_IRON_DOOR_OPEN("minecraft:block.iron_door.open"), + ENTITY_IRON_GOLEM_ATTACK("minecraft:entity.iron_golem.attack"), + ENTITY_IRON_GOLEM_DAMAGE("minecraft:entity.iron_golem.damage"), + ENTITY_IRON_GOLEM_DEATH("minecraft:entity.iron_golem.death"), + ENTITY_IRON_GOLEM_HURT("minecraft:entity.iron_golem.hurt"), + ENTITY_IRON_GOLEM_REPAIR("minecraft:entity.iron_golem.repair"), + ENTITY_IRON_GOLEM_STEP("minecraft:entity.iron_golem.step"), + BLOCK_IRON_TRAPDOOR_CLOSE("minecraft:block.iron_trapdoor.close"), + BLOCK_IRON_TRAPDOOR_OPEN("minecraft:block.iron_trapdoor.open"), + ENTITY_ITEM_FRAME_ADD_ITEM("minecraft:entity.item_frame.add_item"), + ENTITY_ITEM_FRAME_BREAK("minecraft:entity.item_frame.break"), + ENTITY_ITEM_FRAME_PLACE("minecraft:entity.item_frame.place"), + ENTITY_ITEM_FRAME_REMOVE_ITEM("minecraft:entity.item_frame.remove_item"), + ENTITY_ITEM_FRAME_ROTATE_ITEM("minecraft:entity.item_frame.rotate_item"), + ENTITY_ITEM_BREAK("minecraft:entity.item.break"), + ENTITY_ITEM_PICKUP("minecraft:entity.item.pickup"), + BLOCK_LADDER_BREAK("minecraft:block.ladder.break"), + BLOCK_LADDER_FALL("minecraft:block.ladder.fall"), + BLOCK_LADDER_HIT("minecraft:block.ladder.hit"), + BLOCK_LADDER_PLACE("minecraft:block.ladder.place"), + BLOCK_LADDER_STEP("minecraft:block.ladder.step"), + BLOCK_LANTERN_BREAK("minecraft:block.lantern.break"), + BLOCK_LANTERN_FALL("minecraft:block.lantern.fall"), + BLOCK_LANTERN_HIT("minecraft:block.lantern.hit"), + BLOCK_LANTERN_PLACE("minecraft:block.lantern.place"), + BLOCK_LANTERN_STEP("minecraft:block.lantern.step"), + BLOCK_LAVA_AMBIENT("minecraft:block.lava.ambient"), + BLOCK_LAVA_EXTINGUISH("minecraft:block.lava.extinguish"), + BLOCK_LAVA_POP("minecraft:block.lava.pop"), + ENTITY_LEASH_KNOT_BREAK("minecraft:entity.leash_knot.break"), + ENTITY_LEASH_KNOT_PLACE("minecraft:entity.leash_knot.place"), + BLOCK_LEVER_CLICK("minecraft:block.lever.click"), + ENTITY_LIGHTNING_BOLT_IMPACT("minecraft:entity.lightning_bolt.impact"), + ENTITY_LIGHTNING_BOLT_THUNDER("minecraft:entity.lightning_bolt.thunder"), + ENTITY_LINGERING_POTION_THROW("minecraft:entity.lingering_potion.throw"), + ENTITY_LLAMA_AMBIENT("minecraft:entity.llama.ambient"), + ENTITY_LLAMA_ANGRY("minecraft:entity.llama.angry"), + ENTITY_LLAMA_CHEST("minecraft:entity.llama.chest"), + ENTITY_LLAMA_DEATH("minecraft:entity.llama.death"), + ENTITY_LLAMA_EAT("minecraft:entity.llama.eat"), + ENTITY_LLAMA_HURT("minecraft:entity.llama.hurt"), + ENTITY_LLAMA_SPIT("minecraft:entity.llama.spit"), + ENTITY_LLAMA_STEP("minecraft:entity.llama.step"), + ENTITY_LLAMA_SWAG("minecraft:entity.llama.swag"), + ENTITY_MAGMA_CUBE_DEATH("minecraft:entity.magma_cube.death"), + ENTITY_MAGMA_CUBE_HURT("minecraft:entity.magma_cube.hurt"), + ENTITY_MAGMA_CUBE_JUMP("minecraft:entity.magma_cube.jump"), + ENTITY_MAGMA_CUBE_SQUISH("minecraft:entity.magma_cube.squish"), + BLOCK_METAL_BREAK("minecraft:block.metal.break"), + BLOCK_METAL_FALL("minecraft:block.metal.fall"), + BLOCK_METAL_HIT("minecraft:block.metal.hit"), + BLOCK_METAL_PLACE("minecraft:block.metal.place"), + BLOCK_METAL_PRESSURE_PLATE_CLICK_OFF("minecraft:block.metal_pressure_plate.click_off"), + BLOCK_METAL_PRESSURE_PLATE_CLICK_ON("minecraft:block.metal_pressure_plate.click_on"), + BLOCK_METAL_STEP("minecraft:block.metal.step"), + ENTITY_MINECART_INSIDE("minecraft:entity.minecart.inside"), + ENTITY_MINECART_RIDING("minecraft:entity.minecart.riding"), + ENTITY_MOOSHROOM_CONVERT("minecraft:entity.mooshroom.convert"), + ENTITY_MOOSHROOM_EAT("minecraft:entity.mooshroom.eat"), + ENTITY_MOOSHROOM_MILK("minecraft:entity.mooshroom.milk"), + ENTITY_MOOSHROOM_SUSPICIOUS_MILK("minecraft:entity.mooshroom.suspicious_milk"), + ENTITY_MOOSHROOM_SHEAR("minecraft:entity.mooshroom.shear"), + ENTITY_MULE_AMBIENT("minecraft:entity.mule.ambient"), + ENTITY_MULE_CHEST("minecraft:entity.mule.chest"), + ENTITY_MULE_DEATH("minecraft:entity.mule.death"), + ENTITY_MULE_HURT("minecraft:entity.mule.hurt"), + MUSIC_CREATIVE("minecraft:music.creative"), + MUSIC_CREDITS("minecraft:music.credits"), + MUSIC_DRAGON("minecraft:music.dragon"), + MUSIC_END("minecraft:music.end"), + MUSIC_GAME("minecraft:music.game"), + MUSIC_MENU("minecraft:music.menu"), + MUSIC_NETHER("minecraft:music.nether"), + MUSIC_UNDER_WATER("minecraft:music.under_water"), + BLOCK_NETHER_WART_BREAK("minecraft:block.nether_wart.break"), + ITEM_NETHER_WART_PLANT("minecraft:item.nether_wart.plant"), + BLOCK_NOTE_BLOCK_BASEDRUM("minecraft:block.note_block.basedrum"), + BLOCK_NOTE_BLOCK_BASS("minecraft:block.note_block.bass"), + BLOCK_NOTE_BLOCK_BELL("minecraft:block.note_block.bell"), + BLOCK_NOTE_BLOCK_CHIME("minecraft:block.note_block.chime"), + BLOCK_NOTE_BLOCK_FLUTE("minecraft:block.note_block.flute"), + BLOCK_NOTE_BLOCK_GUITAR("minecraft:block.note_block.guitar"), + BLOCK_NOTE_BLOCK_HARP("minecraft:block.note_block.harp"), + BLOCK_NOTE_BLOCK_HAT("minecraft:block.note_block.hat"), + BLOCK_NOTE_BLOCK_PLING("minecraft:block.note_block.pling"), + BLOCK_NOTE_BLOCK_SNARE("minecraft:block.note_block.snare"), + BLOCK_NOTE_BLOCK_XYLOPHONE("minecraft:block.note_block.xylophone"), + BLOCK_NOTE_BLOCK_IRON_XYLOPHONE("minecraft:block.note_block.iron_xylophone"), + BLOCK_NOTE_BLOCK_COW_BELL("minecraft:block.note_block.cow_bell"), + BLOCK_NOTE_BLOCK_DIDGERIDOO("minecraft:block.note_block.didgeridoo"), + BLOCK_NOTE_BLOCK_BIT("minecraft:block.note_block.bit"), + BLOCK_NOTE_BLOCK_BANJO("minecraft:block.note_block.banjo"), + ENTITY_OCELOT_HURT("minecraft:entity.ocelot.hurt"), + ENTITY_OCELOT_AMBIENT("minecraft:entity.ocelot.ambient"), + ENTITY_OCELOT_DEATH("minecraft:entity.ocelot.death"), + ENTITY_PAINTING_BREAK("minecraft:entity.painting.break"), + ENTITY_PAINTING_PLACE("minecraft:entity.painting.place"), + ENTITY_PANDA_PRE_SNEEZE("minecraft:entity.panda.pre_sneeze"), + ENTITY_PANDA_SNEEZE("minecraft:entity.panda.sneeze"), + ENTITY_PANDA_AMBIENT("minecraft:entity.panda.ambient"), + ENTITY_PANDA_DEATH("minecraft:entity.panda.death"), + ENTITY_PANDA_EAT("minecraft:entity.panda.eat"), + ENTITY_PANDA_STEP("minecraft:entity.panda.step"), + ENTITY_PANDA_CANT_BREED("minecraft:entity.panda.cant_breed"), + ENTITY_PANDA_AGGRESSIVE_AMBIENT("minecraft:entity.panda.aggressive_ambient"), + ENTITY_PANDA_WORRIED_AMBIENT("minecraft:entity.panda.worried_ambient"), + ENTITY_PANDA_HURT("minecraft:entity.panda.hurt"), + ENTITY_PANDA_BITE("minecraft:entity.panda.bite"), + ENTITY_PARROT_AMBIENT("minecraft:entity.parrot.ambient"), + ENTITY_PARROT_DEATH("minecraft:entity.parrot.death"), + ENTITY_PARROT_EAT("minecraft:entity.parrot.eat"), + ENTITY_PARROT_FLY("minecraft:entity.parrot.fly"), + ENTITY_PARROT_HURT("minecraft:entity.parrot.hurt"), + ENTITY_PARROT_IMITATE_BLAZE("minecraft:entity.parrot.imitate.blaze"), + ENTITY_PARROT_IMITATE_CREEPER("minecraft:entity.parrot.imitate.creeper"), + ENTITY_PARROT_IMITATE_DROWNED("minecraft:entity.parrot.imitate.drowned"), + ENTITY_PARROT_IMITATE_ELDER_GUARDIAN("minecraft:entity.parrot.imitate.elder_guardian"), + ENTITY_PARROT_IMITATE_ENDER_DRAGON("minecraft:entity.parrot.imitate.ender_dragon"), + ENTITY_PARROT_IMITATE_ENDERMITE("minecraft:entity.parrot.imitate.endermite"), + ENTITY_PARROT_IMITATE_EVOKER("minecraft:entity.parrot.imitate.evoker"), + ENTITY_PARROT_IMITATE_GHAST("minecraft:entity.parrot.imitate.ghast"), + ENTITY_PARROT_IMITATE_GUARDIAN("minecraft:entity.parrot.imitate.guardian"), + ENTITY_PARROT_IMITATE_HUSK("minecraft:entity.parrot.imitate.husk"), + ENTITY_PARROT_IMITATE_ILLUSIONER("minecraft:entity.parrot.imitate.illusioner"), + ENTITY_PARROT_IMITATE_MAGMA_CUBE("minecraft:entity.parrot.imitate.magma_cube"), + ENTITY_PARROT_IMITATE_PHANTOM("minecraft:entity.parrot.imitate.phantom"), + ENTITY_PARROT_IMITATE_PILLAGER("minecraft:entity.parrot.imitate.pillager"), + ENTITY_PARROT_IMITATE_RAVAGER("minecraft:entity.parrot.imitate.ravager"), + ENTITY_PARROT_IMITATE_SHULKER("minecraft:entity.parrot.imitate.shulker"), + ENTITY_PARROT_IMITATE_SILVERFISH("minecraft:entity.parrot.imitate.silverfish"), + ENTITY_PARROT_IMITATE_SKELETON("minecraft:entity.parrot.imitate.skeleton"), + ENTITY_PARROT_IMITATE_SLIME("minecraft:entity.parrot.imitate.slime"), + ENTITY_PARROT_IMITATE_SPIDER("minecraft:entity.parrot.imitate.spider"), + ENTITY_PARROT_IMITATE_STRAY("minecraft:entity.parrot.imitate.stray"), + ENTITY_PARROT_IMITATE_VEX("minecraft:entity.parrot.imitate.vex"), + ENTITY_PARROT_IMITATE_VINDICATOR("minecraft:entity.parrot.imitate.vindicator"), + ENTITY_PARROT_IMITATE_WITCH("minecraft:entity.parrot.imitate.witch"), + ENTITY_PARROT_IMITATE_WITHER("minecraft:entity.parrot.imitate.wither"), + ENTITY_PARROT_IMITATE_WITHER_SKELETON("minecraft:entity.parrot.imitate.wither_skeleton"), + ENTITY_PARROT_IMITATE_ZOMBIE("minecraft:entity.parrot.imitate.zombie"), + ENTITY_PARROT_IMITATE_ZOMBIE_VILLAGER("minecraft:entity.parrot.imitate.zombie_villager"), + ENTITY_PARROT_STEP("minecraft:entity.parrot.step"), + ENTITY_PHANTOM_AMBIENT("minecraft:entity.phantom.ambient"), + ENTITY_PHANTOM_BITE("minecraft:entity.phantom.bite"), + ENTITY_PHANTOM_DEATH("minecraft:entity.phantom.death"), + ENTITY_PHANTOM_FLAP("minecraft:entity.phantom.flap"), + ENTITY_PHANTOM_HURT("minecraft:entity.phantom.hurt"), + ENTITY_PHANTOM_SWOOP("minecraft:entity.phantom.swoop"), + ENTITY_PIG_AMBIENT("minecraft:entity.pig.ambient"), + ENTITY_PIG_DEATH("minecraft:entity.pig.death"), + ENTITY_PIG_HURT("minecraft:entity.pig.hurt"), + ENTITY_PIG_SADDLE("minecraft:entity.pig.saddle"), + ENTITY_PIG_STEP("minecraft:entity.pig.step"), + ENTITY_PILLAGER_AMBIENT("minecraft:entity.pillager.ambient"), + ENTITY_PILLAGER_CELEBRATE("minecraft:entity.pillager.celebrate"), + ENTITY_PILLAGER_DEATH("minecraft:entity.pillager.death"), + ENTITY_PILLAGER_HURT("minecraft:entity.pillager.hurt"), + BLOCK_PISTON_CONTRACT("minecraft:block.piston.contract"), + BLOCK_PISTON_EXTEND("minecraft:block.piston.extend"), + ENTITY_PLAYER_ATTACK_CRIT("minecraft:entity.player.attack.crit"), + ENTITY_PLAYER_ATTACK_KNOCKBACK("minecraft:entity.player.attack.knockback"), + ENTITY_PLAYER_ATTACK_NODAMAGE("minecraft:entity.player.attack.nodamage"), + ENTITY_PLAYER_ATTACK_STRONG("minecraft:entity.player.attack.strong"), + ENTITY_PLAYER_ATTACK_SWEEP("minecraft:entity.player.attack.sweep"), + ENTITY_PLAYER_ATTACK_WEAK("minecraft:entity.player.attack.weak"), + ENTITY_PLAYER_BIG_FALL("minecraft:entity.player.big_fall"), + ENTITY_PLAYER_BREATH("minecraft:entity.player.breath"), + ENTITY_PLAYER_BURP("minecraft:entity.player.burp"), + ENTITY_PLAYER_DEATH("minecraft:entity.player.death"), + ENTITY_PLAYER_HURT("minecraft:entity.player.hurt"), + ENTITY_PLAYER_HURT_DROWN("minecraft:entity.player.hurt_drown"), + ENTITY_PLAYER_HURT_ON_FIRE("minecraft:entity.player.hurt_on_fire"), + ENTITY_PLAYER_HURT_SWEET_BERRY_BUSH("minecraft:entity.player.hurt_sweet_berry_bush"), + ENTITY_PLAYER_LEVELUP("minecraft:entity.player.levelup"), + ENTITY_PLAYER_SMALL_FALL("minecraft:entity.player.small_fall"), + ENTITY_PLAYER_SPLASH("minecraft:entity.player.splash"), + ENTITY_PLAYER_SPLASH_HIGH_SPEED("minecraft:entity.player.splash.high_speed"), + ENTITY_PLAYER_SWIM("minecraft:entity.player.swim"), + ENTITY_POLAR_BEAR_AMBIENT("minecraft:entity.polar_bear.ambient"), + ENTITY_POLAR_BEAR_AMBIENT_BABY("minecraft:entity.polar_bear.ambient_baby"), + ENTITY_POLAR_BEAR_DEATH("minecraft:entity.polar_bear.death"), + ENTITY_POLAR_BEAR_HURT("minecraft:entity.polar_bear.hurt"), + ENTITY_POLAR_BEAR_STEP("minecraft:entity.polar_bear.step"), + ENTITY_POLAR_BEAR_WARNING("minecraft:entity.polar_bear.warning"), + BLOCK_PORTAL_AMBIENT("minecraft:block.portal.ambient"), + BLOCK_PORTAL_TRAVEL("minecraft:block.portal.travel"), + BLOCK_PORTAL_TRIGGER("minecraft:block.portal.trigger"), + ENTITY_PUFFER_FISH_AMBIENT("minecraft:entity.puffer_fish.ambient"), + ENTITY_PUFFER_FISH_BLOW_OUT("minecraft:entity.puffer_fish.blow_out"), + ENTITY_PUFFER_FISH_BLOW_UP("minecraft:entity.puffer_fish.blow_up"), + ENTITY_PUFFER_FISH_DEATH("minecraft:entity.puffer_fish.death"), + ENTITY_PUFFER_FISH_FLOP("minecraft:entity.puffer_fish.flop"), + ENTITY_PUFFER_FISH_HURT("minecraft:entity.puffer_fish.hurt"), + ENTITY_PUFFER_FISH_STING("minecraft:entity.puffer_fish.sting"), + BLOCK_PUMPKIN_CARVE("minecraft:block.pumpkin.carve"), + ENTITY_RABBIT_AMBIENT("minecraft:entity.rabbit.ambient"), + ENTITY_RABBIT_ATTACK("minecraft:entity.rabbit.attack"), + ENTITY_RABBIT_DEATH("minecraft:entity.rabbit.death"), + ENTITY_RABBIT_HURT("minecraft:entity.rabbit.hurt"), + ENTITY_RABBIT_JUMP("minecraft:entity.rabbit.jump"), + EVENT_RAID_HORN("minecraft:event.raid.horn"), + MUSIC_DISC_11("minecraft:music_disc.11"), + MUSIC_DISC_13("minecraft:music_disc.13"), + MUSIC_DISC_BLOCKS("minecraft:music_disc.blocks"), + MUSIC_DISC_CAT("minecraft:music_disc.cat"), + MUSIC_DISC_CHIRP("minecraft:music_disc.chirp"), + MUSIC_DISC_FAR("minecraft:music_disc.far"), + MUSIC_DISC_MALL("minecraft:music_disc.mall"), + MUSIC_DISC_MELLOHI("minecraft:music_disc.mellohi"), + MUSIC_DISC_STAL("minecraft:music_disc.stal"), + MUSIC_DISC_STRAD("minecraft:music_disc.strad"), + MUSIC_DISC_WAIT("minecraft:music_disc.wait"), + MUSIC_DISC_WARD("minecraft:music_disc.ward"), + BLOCK_REDSTONE_TORCH_BURNOUT("minecraft:block.redstone_torch.burnout"), + ENTITY_SALMON_AMBIENT("minecraft:entity.salmon.ambient"), + ENTITY_SALMON_DEATH("minecraft:entity.salmon.death"), + ENTITY_SALMON_FLOP("minecraft:entity.salmon.flop"), + ENTITY_SALMON_HURT("minecraft:entity.salmon.hurt"), + BLOCK_SAND_BREAK("minecraft:block.sand.break"), + BLOCK_SAND_FALL("minecraft:block.sand.fall"), + BLOCK_SAND_HIT("minecraft:block.sand.hit"), + BLOCK_SAND_PLACE("minecraft:block.sand.place"), + BLOCK_SAND_STEP("minecraft:block.sand.step"), + BLOCK_SCAFFOLDING_BREAK("minecraft:block.scaffolding.break"), + BLOCK_SCAFFOLDING_FALL("minecraft:block.scaffolding.fall"), + BLOCK_SCAFFOLDING_HIT("minecraft:block.scaffolding.hit"), + BLOCK_SCAFFOLDING_PLACE("minecraft:block.scaffolding.place"), + BLOCK_SCAFFOLDING_STEP("minecraft:block.scaffolding.step"), + ENTITY_SHEEP_AMBIENT("minecraft:entity.sheep.ambient"), + ENTITY_SHEEP_DEATH("minecraft:entity.sheep.death"), + ENTITY_SHEEP_HURT("minecraft:entity.sheep.hurt"), + ENTITY_SHEEP_SHEAR("minecraft:entity.sheep.shear"), + ENTITY_SHEEP_STEP("minecraft:entity.sheep.step"), + ITEM_SHIELD_BLOCK("minecraft:item.shield.block"), + ITEM_SHIELD_BREAK("minecraft:item.shield.break"), + ITEM_SHOVEL_FLATTEN("minecraft:item.shovel.flatten"), + ENTITY_SHULKER_AMBIENT("minecraft:entity.shulker.ambient"), + BLOCK_SHULKER_BOX_CLOSE("minecraft:block.shulker_box.close"), + BLOCK_SHULKER_BOX_OPEN("minecraft:block.shulker_box.open"), + ENTITY_SHULKER_BULLET_HIT("minecraft:entity.shulker_bullet.hit"), + ENTITY_SHULKER_BULLET_HURT("minecraft:entity.shulker_bullet.hurt"), + ENTITY_SHULKER_CLOSE("minecraft:entity.shulker.close"), + ENTITY_SHULKER_DEATH("minecraft:entity.shulker.death"), + ENTITY_SHULKER_HURT("minecraft:entity.shulker.hurt"), + ENTITY_SHULKER_HURT_CLOSED("minecraft:entity.shulker.hurt_closed"), + ENTITY_SHULKER_OPEN("minecraft:entity.shulker.open"), + ENTITY_SHULKER_SHOOT("minecraft:entity.shulker.shoot"), + ENTITY_SHULKER_TELEPORT("minecraft:entity.shulker.teleport"), + ENTITY_SILVERFISH_AMBIENT("minecraft:entity.silverfish.ambient"), + ENTITY_SILVERFISH_DEATH("minecraft:entity.silverfish.death"), + ENTITY_SILVERFISH_HURT("minecraft:entity.silverfish.hurt"), + ENTITY_SILVERFISH_STEP("minecraft:entity.silverfish.step"), + ENTITY_SKELETON_AMBIENT("minecraft:entity.skeleton.ambient"), + ENTITY_SKELETON_DEATH("minecraft:entity.skeleton.death"), + ENTITY_SKELETON_HORSE_AMBIENT("minecraft:entity.skeleton_horse.ambient"), + ENTITY_SKELETON_HORSE_DEATH("minecraft:entity.skeleton_horse.death"), + ENTITY_SKELETON_HORSE_HURT("minecraft:entity.skeleton_horse.hurt"), + ENTITY_SKELETON_HORSE_SWIM("minecraft:entity.skeleton_horse.swim"), + ENTITY_SKELETON_HORSE_AMBIENT_WATER("minecraft:entity.skeleton_horse.ambient_water"), + ENTITY_SKELETON_HORSE_GALLOP_WATER("minecraft:entity.skeleton_horse.gallop_water"), + ENTITY_SKELETON_HORSE_JUMP_WATER("minecraft:entity.skeleton_horse.jump_water"), + ENTITY_SKELETON_HORSE_STEP_WATER("minecraft:entity.skeleton_horse.step_water"), + ENTITY_SKELETON_HURT("minecraft:entity.skeleton.hurt"), + ENTITY_SKELETON_SHOOT("minecraft:entity.skeleton.shoot"), + ENTITY_SKELETON_STEP("minecraft:entity.skeleton.step"), + ENTITY_SLIME_ATTACK("minecraft:entity.slime.attack"), + ENTITY_SLIME_DEATH("minecraft:entity.slime.death"), + ENTITY_SLIME_HURT("minecraft:entity.slime.hurt"), + ENTITY_SLIME_JUMP("minecraft:entity.slime.jump"), + ENTITY_SLIME_SQUISH("minecraft:entity.slime.squish"), + BLOCK_SLIME_BLOCK_BREAK("minecraft:block.slime_block.break"), + BLOCK_SLIME_BLOCK_FALL("minecraft:block.slime_block.fall"), + BLOCK_SLIME_BLOCK_HIT("minecraft:block.slime_block.hit"), + BLOCK_SLIME_BLOCK_PLACE("minecraft:block.slime_block.place"), + BLOCK_SLIME_BLOCK_STEP("minecraft:block.slime_block.step"), + ENTITY_MAGMA_CUBE_DEATH_SMALL("minecraft:entity.magma_cube.death_small"), + ENTITY_MAGMA_CUBE_HURT_SMALL("minecraft:entity.magma_cube.hurt_small"), + ENTITY_MAGMA_CUBE_SQUISH_SMALL("minecraft:entity.magma_cube.squish_small"), + ENTITY_SLIME_DEATH_SMALL("minecraft:entity.slime.death_small"), + ENTITY_SLIME_HURT_SMALL("minecraft:entity.slime.hurt_small"), + ENTITY_SLIME_JUMP_SMALL("minecraft:entity.slime.jump_small"), + ENTITY_SLIME_SQUISH_SMALL("minecraft:entity.slime.squish_small"), + BLOCK_SMOKER_SMOKE("minecraft:block.smoker.smoke"), + ENTITY_SNOWBALL_THROW("minecraft:entity.snowball.throw"), + BLOCK_SNOW_BREAK("minecraft:block.snow.break"), + BLOCK_SNOW_FALL("minecraft:block.snow.fall"), + ENTITY_SNOW_GOLEM_AMBIENT("minecraft:entity.snow_golem.ambient"), + ENTITY_SNOW_GOLEM_DEATH("minecraft:entity.snow_golem.death"), + ENTITY_SNOW_GOLEM_HURT("minecraft:entity.snow_golem.hurt"), + ENTITY_SNOW_GOLEM_SHOOT("minecraft:entity.snow_golem.shoot"), + BLOCK_SNOW_HIT("minecraft:block.snow.hit"), + BLOCK_SNOW_PLACE("minecraft:block.snow.place"), + BLOCK_SNOW_STEP("minecraft:block.snow.step"), + ENTITY_SPIDER_AMBIENT("minecraft:entity.spider.ambient"), + ENTITY_SPIDER_DEATH("minecraft:entity.spider.death"), + ENTITY_SPIDER_HURT("minecraft:entity.spider.hurt"), + ENTITY_SPIDER_STEP("minecraft:entity.spider.step"), + ENTITY_SPLASH_POTION_BREAK("minecraft:entity.splash_potion.break"), + ENTITY_SPLASH_POTION_THROW("minecraft:entity.splash_potion.throw"), + ENTITY_SQUID_AMBIENT("minecraft:entity.squid.ambient"), + ENTITY_SQUID_DEATH("minecraft:entity.squid.death"), + ENTITY_SQUID_HURT("minecraft:entity.squid.hurt"), + ENTITY_SQUID_SQUIRT("minecraft:entity.squid.squirt"), + BLOCK_STONE_BREAK("minecraft:block.stone.break"), + BLOCK_STONE_BUTTON_CLICK_OFF("minecraft:block.stone_button.click_off"), + BLOCK_STONE_BUTTON_CLICK_ON("minecraft:block.stone_button.click_on"), + BLOCK_STONE_FALL("minecraft:block.stone.fall"), + BLOCK_STONE_HIT("minecraft:block.stone.hit"), + BLOCK_STONE_PLACE("minecraft:block.stone.place"), + BLOCK_STONE_PRESSURE_PLATE_CLICK_OFF("minecraft:block.stone_pressure_plate.click_off"), + BLOCK_STONE_PRESSURE_PLATE_CLICK_ON("minecraft:block.stone_pressure_plate.click_on"), + BLOCK_STONE_STEP("minecraft:block.stone.step"), + ENTITY_STRAY_AMBIENT("minecraft:entity.stray.ambient"), + ENTITY_STRAY_DEATH("minecraft:entity.stray.death"), + ENTITY_STRAY_HURT("minecraft:entity.stray.hurt"), + ENTITY_STRAY_STEP("minecraft:entity.stray.step"), + BLOCK_SWEET_BERRY_BUSH_BREAK("minecraft:block.sweet_berry_bush.break"), + BLOCK_SWEET_BERRY_BUSH_PLACE("minecraft:block.sweet_berry_bush.place"), + ITEM_SWEET_BERRIES_PICK_FROM_BUSH("minecraft:item.sweet_berries.pick_from_bush"), + ENCHANT_THORNS_HIT("minecraft:enchant.thorns.hit"), + ENTITY_TNT_PRIMED("minecraft:entity.tnt.primed"), + ITEM_TOTEM_USE("minecraft:item.totem.use"), + ITEM_TRIDENT_HIT("minecraft:item.trident.hit"), + ITEM_TRIDENT_HIT_GROUND("minecraft:item.trident.hit_ground"), + ITEM_TRIDENT_RETURN("minecraft:item.trident.return"), + ITEM_TRIDENT_RIPTIDE_1("minecraft:item.trident.riptide_1"), + ITEM_TRIDENT_RIPTIDE_2("minecraft:item.trident.riptide_2"), + ITEM_TRIDENT_RIPTIDE_3("minecraft:item.trident.riptide_3"), + ITEM_TRIDENT_THROW("minecraft:item.trident.throw"), + ITEM_TRIDENT_THUNDER("minecraft:item.trident.thunder"), + BLOCK_TRIPWIRE_ATTACH("minecraft:block.tripwire.attach"), + BLOCK_TRIPWIRE_CLICK_OFF("minecraft:block.tripwire.click_off"), + BLOCK_TRIPWIRE_CLICK_ON("minecraft:block.tripwire.click_on"), + BLOCK_TRIPWIRE_DETACH("minecraft:block.tripwire.detach"), + ENTITY_TROPICAL_FISH_AMBIENT("minecraft:entity.tropical_fish.ambient"), + ENTITY_TROPICAL_FISH_DEATH("minecraft:entity.tropical_fish.death"), + ENTITY_TROPICAL_FISH_FLOP("minecraft:entity.tropical_fish.flop"), + ENTITY_TROPICAL_FISH_HURT("minecraft:entity.tropical_fish.hurt"), + ENTITY_TURTLE_AMBIENT_LAND("minecraft:entity.turtle.ambient_land"), + ENTITY_TURTLE_DEATH("minecraft:entity.turtle.death"), + ENTITY_TURTLE_DEATH_BABY("minecraft:entity.turtle.death_baby"), + ENTITY_TURTLE_EGG_BREAK("minecraft:entity.turtle.egg_break"), + ENTITY_TURTLE_EGG_CRACK("minecraft:entity.turtle.egg_crack"), + ENTITY_TURTLE_EGG_HATCH("minecraft:entity.turtle.egg_hatch"), + ENTITY_TURTLE_HURT("minecraft:entity.turtle.hurt"), + ENTITY_TURTLE_HURT_BABY("minecraft:entity.turtle.hurt_baby"), + ENTITY_TURTLE_LAY_EGG("minecraft:entity.turtle.lay_egg"), + ENTITY_TURTLE_SHAMBLE("minecraft:entity.turtle.shamble"), + ENTITY_TURTLE_SHAMBLE_BABY("minecraft:entity.turtle.shamble_baby"), + ENTITY_TURTLE_SWIM("minecraft:entity.turtle.swim"), + UI_BUTTON_CLICK("minecraft:ui.button.click"), + UI_LOOM_SELECT_PATTERN("minecraft:ui.loom.select_pattern"), + UI_LOOM_TAKE_RESULT("minecraft:ui.loom.take_result"), + UI_CARTOGRAPHY_TABLE_TAKE_RESULT("minecraft:ui.cartography_table.take_result"), + UI_STONECUTTER_TAKE_RESULT("minecraft:ui.stonecutter.take_result"), + UI_STONECUTTER_SELECT_RECIPE("minecraft:ui.stonecutter.select_recipe"), + UI_TOAST_CHALLENGE_COMPLETE("minecraft:ui.toast.challenge_complete"), + UI_TOAST_IN("minecraft:ui.toast.in"), + UI_TOAST_OUT("minecraft:ui.toast.out"), + ENTITY_VEX_AMBIENT("minecraft:entity.vex.ambient"), + ENTITY_VEX_CHARGE("minecraft:entity.vex.charge"), + ENTITY_VEX_DEATH("minecraft:entity.vex.death"), + ENTITY_VEX_HURT("minecraft:entity.vex.hurt"), + ENTITY_VILLAGER_AMBIENT("minecraft:entity.villager.ambient"), + ENTITY_VILLAGER_CELEBRATE("minecraft:entity.villager.celebrate"), + ENTITY_VILLAGER_DEATH("minecraft:entity.villager.death"), + ENTITY_VILLAGER_HURT("minecraft:entity.villager.hurt"), + ENTITY_VILLAGER_NO("minecraft:entity.villager.no"), + ENTITY_VILLAGER_TRADE("minecraft:entity.villager.trade"), + ENTITY_VILLAGER_YES("minecraft:entity.villager.yes"), + ENTITY_VILLAGER_WORK_ARMORER("minecraft:entity.villager.work_armorer"), + ENTITY_VILLAGER_WORK_BUTCHER("minecraft:entity.villager.work_butcher"), + ENTITY_VILLAGER_WORK_CARTOGRAPHER("minecraft:entity.villager.work_cartographer"), + ENTITY_VILLAGER_WORK_CLERIC("minecraft:entity.villager.work_cleric"), + ENTITY_VILLAGER_WORK_FARMER("minecraft:entity.villager.work_farmer"), + ENTITY_VILLAGER_WORK_FISHERMAN("minecraft:entity.villager.work_fisherman"), + ENTITY_VILLAGER_WORK_FLETCHER("minecraft:entity.villager.work_fletcher"), + ENTITY_VILLAGER_WORK_LEATHERWORKER("minecraft:entity.villager.work_leatherworker"), + ENTITY_VILLAGER_WORK_LIBRARIAN("minecraft:entity.villager.work_librarian"), + ENTITY_VILLAGER_WORK_MASON("minecraft:entity.villager.work_mason"), + ENTITY_VILLAGER_WORK_SHEPHERD("minecraft:entity.villager.work_shepherd"), + ENTITY_VILLAGER_WORK_TOOLSMITH("minecraft:entity.villager.work_toolsmith"), + ENTITY_VILLAGER_WORK_WEAPONSMITH("minecraft:entity.villager.work_weaponsmith"), + ENTITY_VINDICATOR_AMBIENT("minecraft:entity.vindicator.ambient"), + ENTITY_VINDICATOR_CELEBRATE("minecraft:entity.vindicator.celebrate"), + ENTITY_VINDICATOR_DEATH("minecraft:entity.vindicator.death"), + ENTITY_VINDICATOR_HURT("minecraft:entity.vindicator.hurt"), + BLOCK_LILY_PAD_PLACE("minecraft:block.lily_pad.place"), + ENTITY_WANDERING_TRADER_AMBIENT("minecraft:entity.wandering_trader.ambient"), + ENTITY_WANDERING_TRADER_DEATH("minecraft:entity.wandering_trader.death"), + ENTITY_WANDERING_TRADER_DISAPPEARED("minecraft:entity.wandering_trader.disappeared"), + ENTITY_WANDERING_TRADER_DRINK_MILK("minecraft:entity.wandering_trader.drink_milk"), + ENTITY_WANDERING_TRADER_DRINK_POTION("minecraft:entity.wandering_trader.drink_potion"), + ENTITY_WANDERING_TRADER_HURT("minecraft:entity.wandering_trader.hurt"), + ENTITY_WANDERING_TRADER_NO("minecraft:entity.wandering_trader.no"), + ENTITY_WANDERING_TRADER_REAPPEARED("minecraft:entity.wandering_trader.reappeared"), + ENTITY_WANDERING_TRADER_TRADE("minecraft:entity.wandering_trader.trade"), + ENTITY_WANDERING_TRADER_YES("minecraft:entity.wandering_trader.yes"), + BLOCK_WATER_AMBIENT("minecraft:block.water.ambient"), + WEATHER_RAIN("minecraft:weather.rain"), + WEATHER_RAIN_ABOVE("minecraft:weather.rain.above"), + ENTITY_WITCH_AMBIENT("minecraft:entity.witch.ambient"), + ENTITY_WITCH_CELEBRATE("minecraft:entity.witch.celebrate"), + ENTITY_WITCH_DEATH("minecraft:entity.witch.death"), + ENTITY_WITCH_DRINK("minecraft:entity.witch.drink"), + ENTITY_WITCH_HURT("minecraft:entity.witch.hurt"), + ENTITY_WITCH_THROW("minecraft:entity.witch.throw"), + ENTITY_WITHER_AMBIENT("minecraft:entity.wither.ambient"), + ENTITY_WITHER_BREAK_BLOCK("minecraft:entity.wither.break_block"), + ENTITY_WITHER_DEATH("minecraft:entity.wither.death"), + ENTITY_WITHER_HURT("minecraft:entity.wither.hurt"), + ENTITY_WITHER_SHOOT("minecraft:entity.wither.shoot"), + ENTITY_WITHER_SKELETON_AMBIENT("minecraft:entity.wither_skeleton.ambient"), + ENTITY_WITHER_SKELETON_DEATH("minecraft:entity.wither_skeleton.death"), + ENTITY_WITHER_SKELETON_HURT("minecraft:entity.wither_skeleton.hurt"), + ENTITY_WITHER_SKELETON_STEP("minecraft:entity.wither_skeleton.step"), + ENTITY_WITHER_SPAWN("minecraft:entity.wither.spawn"), + ENTITY_WOLF_AMBIENT("minecraft:entity.wolf.ambient"), + ENTITY_WOLF_DEATH("minecraft:entity.wolf.death"), + ENTITY_WOLF_GROWL("minecraft:entity.wolf.growl"), + ENTITY_WOLF_HOWL("minecraft:entity.wolf.howl"), + ENTITY_WOLF_HURT("minecraft:entity.wolf.hurt"), + ENTITY_WOLF_PANT("minecraft:entity.wolf.pant"), + ENTITY_WOLF_SHAKE("minecraft:entity.wolf.shake"), + ENTITY_WOLF_STEP("minecraft:entity.wolf.step"), + ENTITY_WOLF_WHINE("minecraft:entity.wolf.whine"), + BLOCK_WOODEN_DOOR_CLOSE("minecraft:block.wooden_door.close"), + BLOCK_WOODEN_DOOR_OPEN("minecraft:block.wooden_door.open"), + BLOCK_WOODEN_TRAPDOOR_CLOSE("minecraft:block.wooden_trapdoor.close"), + BLOCK_WOODEN_TRAPDOOR_OPEN("minecraft:block.wooden_trapdoor.open"), + BLOCK_WOOD_BREAK("minecraft:block.wood.break"), + BLOCK_WOODEN_BUTTON_CLICK_OFF("minecraft:block.wooden_button.click_off"), + BLOCK_WOODEN_BUTTON_CLICK_ON("minecraft:block.wooden_button.click_on"), + BLOCK_WOOD_FALL("minecraft:block.wood.fall"), + BLOCK_WOOD_HIT("minecraft:block.wood.hit"), + BLOCK_WOOD_PLACE("minecraft:block.wood.place"), + BLOCK_WOODEN_PRESSURE_PLATE_CLICK_OFF("minecraft:block.wooden_pressure_plate.click_off"), + BLOCK_WOODEN_PRESSURE_PLATE_CLICK_ON("minecraft:block.wooden_pressure_plate.click_on"), + BLOCK_WOOD_STEP("minecraft:block.wood.step"), + ENTITY_ZOMBIE_AMBIENT("minecraft:entity.zombie.ambient"), + ENTITY_ZOMBIE_ATTACK_WOODEN_DOOR("minecraft:entity.zombie.attack_wooden_door"), + ENTITY_ZOMBIE_ATTACK_IRON_DOOR("minecraft:entity.zombie.attack_iron_door"), + ENTITY_ZOMBIE_BREAK_WOODEN_DOOR("minecraft:entity.zombie.break_wooden_door"), + ENTITY_ZOMBIE_CONVERTED_TO_DROWNED("minecraft:entity.zombie.converted_to_drowned"), + ENTITY_ZOMBIE_DEATH("minecraft:entity.zombie.death"), + ENTITY_ZOMBIE_DESTROY_EGG("minecraft:entity.zombie.destroy_egg"), + ENTITY_ZOMBIE_HORSE_AMBIENT("minecraft:entity.zombie_horse.ambient"), + ENTITY_ZOMBIE_HORSE_DEATH("minecraft:entity.zombie_horse.death"), + ENTITY_ZOMBIE_HORSE_HURT("minecraft:entity.zombie_horse.hurt"), + ENTITY_ZOMBIE_HURT("minecraft:entity.zombie.hurt"), + ENTITY_ZOMBIE_INFECT("minecraft:entity.zombie.infect"), + ENTITY_ZOMBIE_PIGMAN_AMBIENT("minecraft:entity.zombie_pigman.ambient"), + ENTITY_ZOMBIE_PIGMAN_ANGRY("minecraft:entity.zombie_pigman.angry"), + ENTITY_ZOMBIE_PIGMAN_DEATH("minecraft:entity.zombie_pigman.death"), + ENTITY_ZOMBIE_PIGMAN_HURT("minecraft:entity.zombie_pigman.hurt"), + ENTITY_ZOMBIE_STEP("minecraft:entity.zombie.step"), + ENTITY_ZOMBIE_VILLAGER_AMBIENT("minecraft:entity.zombie_villager.ambient"), + ENTITY_ZOMBIE_VILLAGER_CONVERTED("minecraft:entity.zombie_villager.converted"), + ENTITY_ZOMBIE_VILLAGER_CURE("minecraft:entity.zombie_villager.cure"), + ENTITY_ZOMBIE_VILLAGER_DEATH("minecraft:entity.zombie_villager.death"), + ENTITY_ZOMBIE_VILLAGER_HURT("minecraft:entity.zombie_villager.hurt"), + ENTITY_ZOMBIE_VILLAGER_STEP("minecraft:entity.zombie_villager.step"), +; + private String namespaceID; + + Sound(String namespaceID) { + this.namespaceID = namespaceID; + } + + public int getId() { + return ordinal(); + } + + public String getNamespaceID() { + return namespaceID; + } + + public static Sound fromId(int id) { + if(id >= 0 && id < values().length) { + return values()[id]; + } + return null; + } +} diff --git a/src/autogenerated/java/net/minestom/server/stat/StatisticType.java b/src/autogenerated/java/net/minestom/server/stat/StatisticType.java new file mode 100644 index 000000000..edb6a6763 --- /dev/null +++ b/src/autogenerated/java/net/minestom/server/stat/StatisticType.java @@ -0,0 +1,99 @@ +//============================== +// AUTOGENERATED BY EnumGenerator +//============================== +package net.minestom.server.stat; + +public enum StatisticType { + LEAVE_GAME("minecraft:leave_game"), + PLAY_ONE_MINUTE("minecraft:play_one_minute"), + TIME_SINCE_DEATH("minecraft:time_since_death"), + TIME_SINCE_REST("minecraft:time_since_rest"), + SNEAK_TIME("minecraft:sneak_time"), + WALK_ONE_CM("minecraft:walk_one_cm"), + CROUCH_ONE_CM("minecraft:crouch_one_cm"), + SPRINT_ONE_CM("minecraft:sprint_one_cm"), + WALK_ON_WATER_ONE_CM("minecraft:walk_on_water_one_cm"), + FALL_ONE_CM("minecraft:fall_one_cm"), + CLIMB_ONE_CM("minecraft:climb_one_cm"), + FLY_ONE_CM("minecraft:fly_one_cm"), + WALK_UNDER_WATER_ONE_CM("minecraft:walk_under_water_one_cm"), + MINECART_ONE_CM("minecraft:minecart_one_cm"), + BOAT_ONE_CM("minecraft:boat_one_cm"), + PIG_ONE_CM("minecraft:pig_one_cm"), + HORSE_ONE_CM("minecraft:horse_one_cm"), + AVIATE_ONE_CM("minecraft:aviate_one_cm"), + SWIM_ONE_CM("minecraft:swim_one_cm"), + JUMP("minecraft:jump"), + DROP("minecraft:drop"), + DAMAGE_DEALT("minecraft:damage_dealt"), + DAMAGE_DEALT_ABSORBED("minecraft:damage_dealt_absorbed"), + DAMAGE_DEALT_RESISTED("minecraft:damage_dealt_resisted"), + DAMAGE_TAKEN("minecraft:damage_taken"), + DAMAGE_BLOCKED_BY_SHIELD("minecraft:damage_blocked_by_shield"), + DAMAGE_ABSORBED("minecraft:damage_absorbed"), + DAMAGE_RESISTED("minecraft:damage_resisted"), + DEATHS("minecraft:deaths"), + MOB_KILLS("minecraft:mob_kills"), + ANIMALS_BRED("minecraft:animals_bred"), + PLAYER_KILLS("minecraft:player_kills"), + FISH_CAUGHT("minecraft:fish_caught"), + TALKED_TO_VILLAGER("minecraft:talked_to_villager"), + TRADED_WITH_VILLAGER("minecraft:traded_with_villager"), + EAT_CAKE_SLICE("minecraft:eat_cake_slice"), + FILL_CAULDRON("minecraft:fill_cauldron"), + USE_CAULDRON("minecraft:use_cauldron"), + CLEAN_ARMOR("minecraft:clean_armor"), + CLEAN_BANNER("minecraft:clean_banner"), + CLEAN_SHULKER_BOX("minecraft:clean_shulker_box"), + INTERACT_WITH_BREWINGSTAND("minecraft:interact_with_brewingstand"), + INTERACT_WITH_BEACON("minecraft:interact_with_beacon"), + INSPECT_DROPPER("minecraft:inspect_dropper"), + INSPECT_HOPPER("minecraft:inspect_hopper"), + INSPECT_DISPENSER("minecraft:inspect_dispenser"), + PLAY_NOTEBLOCK("minecraft:play_noteblock"), + TUNE_NOTEBLOCK("minecraft:tune_noteblock"), + POT_FLOWER("minecraft:pot_flower"), + TRIGGER_TRAPPED_CHEST("minecraft:trigger_trapped_chest"), + OPEN_ENDERCHEST("minecraft:open_enderchest"), + ENCHANT_ITEM("minecraft:enchant_item"), + PLAY_RECORD("minecraft:play_record"), + INTERACT_WITH_FURNACE("minecraft:interact_with_furnace"), + INTERACT_WITH_CRAFTING_TABLE("minecraft:interact_with_crafting_table"), + OPEN_CHEST("minecraft:open_chest"), + SLEEP_IN_BED("minecraft:sleep_in_bed"), + OPEN_SHULKER_BOX("minecraft:open_shulker_box"), + OPEN_BARREL("minecraft:open_barrel"), + INTERACT_WITH_BLAST_FURNACE("minecraft:interact_with_blast_furnace"), + INTERACT_WITH_SMOKER("minecraft:interact_with_smoker"), + INTERACT_WITH_LECTERN("minecraft:interact_with_lectern"), + INTERACT_WITH_CAMPFIRE("minecraft:interact_with_campfire"), + INTERACT_WITH_CARTOGRAPHY_TABLE("minecraft:interact_with_cartography_table"), + INTERACT_WITH_LOOM("minecraft:interact_with_loom"), + INTERACT_WITH_STONECUTTER("minecraft:interact_with_stonecutter"), + BELL_RING("minecraft:bell_ring"), + RAID_TRIGGER("minecraft:raid_trigger"), + RAID_WIN("minecraft:raid_win"), + INTERACT_WITH_ANVIL("minecraft:interact_with_anvil"), + INTERACT_WITH_GRINDSTONE("minecraft:interact_with_grindstone"), +; + private String namespaceID; + + StatisticType(String namespaceID) { + this.namespaceID = namespaceID; + } + + public int getId() { + return ordinal(); + } + + public String getNamespaceID() { + return namespaceID; + } + + public static StatisticType fromId(int id) { + if(id >= 0 && id < values().length) { + return values()[id]; + } + return null; + } +} diff --git a/src/generators/java/net/minestom/codegen/AllGenerators.java b/src/generators/java/net/minestom/codegen/AllGenerators.java new file mode 100644 index 000000000..473976e32 --- /dev/null +++ b/src/generators/java/net/minestom/codegen/AllGenerators.java @@ -0,0 +1,26 @@ +package net.minestom.codegen; + +import net.minestom.codegen.blocks.BlockEnumGenerator; +import net.minestom.codegen.enchantment.EnchantmentEnumGenerator; +import net.minestom.codegen.entitytypes.EntityTypeEnumGenerator; +import net.minestom.codegen.items.ItemEnumGenerator; +import net.minestom.codegen.particles.ParticleEnumGenerator; +import net.minestom.codegen.potions.PotionEnumGenerator; +import net.minestom.codegen.sounds.SoundEnumGenerator; +import net.minestom.codegen.stats.StatsEnumGenerator; + +import java.io.IOException; + +public class AllGenerators { + + public static void main(String[] args) throws IOException { + BlockEnumGenerator.main(args); + ItemEnumGenerator.main(args); // must be done after block + PotionEnumGenerator.main(args); + EnchantmentEnumGenerator.main(args); + EntityTypeEnumGenerator.main(args); + SoundEnumGenerator.main(args); + ParticleEnumGenerator.main(args); + StatsEnumGenerator.main(args); + } +} diff --git a/src/generators/java/net/minestom/codegen/BasicEnumGenerator.java b/src/generators/java/net/minestom/codegen/BasicEnumGenerator.java new file mode 100644 index 000000000..b6f3de09a --- /dev/null +++ b/src/generators/java/net/minestom/codegen/BasicEnumGenerator.java @@ -0,0 +1,98 @@ +package net.minestom.codegen; + +import com.google.gson.Gson; +import com.google.gson.JsonObject; +import net.minestom.server.utils.NamespaceID; + +import java.io.File; +import java.io.FileReader; +import java.io.IOException; +import java.util.Collection; +import java.util.Objects; +import java.util.TreeSet; + +public abstract class BasicEnumGenerator extends MinestomEnumGenerator { + + private static final String MC_DATA_REGISTRIES_PATH = "minecraft_data/reports/registries.json"; + private NamespaceID defaultEntry; + + protected BasicEnumGenerator(File targetFolder) throws IOException { + generateTo(targetFolder); + } + + @Override + protected Collection compile() throws IOException { + Gson gson = new Gson(); + + TreeSet items = new TreeSet<>(); + + JsonObject root = gson.fromJson(new FileReader(MC_DATA_REGISTRIES_PATH), JsonObject.class); + JsonObject category = root.getAsJsonObject(getCategoryID()); + Objects.requireNonNull(category, "Category "+getCategoryID()+" not found in registries.json!"); + JsonObject entries = category.getAsJsonObject("entries"); + if(category.has("default")) { + defaultEntry = NamespaceID.from(category.get("default").getAsString()); + } + for(var entry : entries.entrySet()) { + NamespaceID name = NamespaceID.from(entry.getKey()); + int id = entry.getValue().getAsJsonObject().get("protocol_id").getAsInt(); + items.add(new Container(id, name)); + } + + return items; + } + + protected abstract String getCategoryID(); + + @Override + protected void postWrite(EnumGenerator generator) { + generator.addMethod("fromId", "(int id)", "static "+getClassName(), + "if(id >= 0 && id < values().length) {", + "\treturn values()[id];", + "}", + "return "+(defaultEntry == null ? "null" : identifier(defaultEntry))+";" + ); + } + + private String identifier(NamespaceID id) { + return id.getPath().toUpperCase().replace(".", "_"); // block.ambient.cave will be replaced by "BLOCK_AMBIENT_CAVE" + } + + @Override + protected void postGeneration() throws IOException {} + + @Override + protected void prepare(EnumGenerator generator) { + generator.setParams("String namespaceID"); + generator.addMethod("getId", "()", "int", "return ordinal();"); + generator.addMethod("getNamespaceID", "()", "String", "return namespaceID;"); + } + + @Override + protected void writeSingle(EnumGenerator generator, Container item) { + generator.addInstance(identifier(item.name), "\""+item.name.toString()+"\""); + } + + static class Container implements Comparable { + private int id; + private NamespaceID name; + + public Container(int id, NamespaceID name) { + this.id = id; + this.name = name; + } + + public NamespaceID getName() { + return name; + } + + public int getId() { + return id; + } + + @Override + public int compareTo(Container o) { + return Integer.compare(id, o.id); + } + } +} diff --git a/src/generators/java/net/minestom/codegen/enchantment/EnchantmentEnumGenerator.java b/src/generators/java/net/minestom/codegen/enchantment/EnchantmentEnumGenerator.java new file mode 100644 index 000000000..26e94f3b9 --- /dev/null +++ b/src/generators/java/net/minestom/codegen/enchantment/EnchantmentEnumGenerator.java @@ -0,0 +1,56 @@ +package net.minestom.codegen.enchantment; + +import net.minestom.codegen.BasicEnumGenerator; +import net.minestom.server.registry.ResourceGatherer; + +import java.io.File; +import java.io.IOException; + +public class EnchantmentEnumGenerator extends BasicEnumGenerator { + public static void main(String[] args) throws IOException { + String targetVersion; + if(args.length < 1) { + System.err.println("Usage: [target folder]"); + return; + } + + targetVersion = args[0]; + + try { + ResourceGatherer.ensureResourcesArePresent(targetVersion, null); // TODO + } catch (IOException e) { + e.printStackTrace(); + } + + String targetPart = DEFAULT_TARGET_PATH; + if(args.length >= 2) { + targetPart = args[1]; + } + + File targetFolder = new File(targetPart); + if(!targetFolder.exists()) { + targetFolder.mkdirs(); + } + + new EnchantmentEnumGenerator(targetFolder); + } + + private EnchantmentEnumGenerator(File targetFolder) throws IOException { + super(targetFolder); + } + + @Override + protected String getCategoryID() { + return "minecraft:enchantment"; + } + + @Override + public String getPackageName() { + return "net.minestom.server.item"; + } + + @Override + public String getClassName() { + return "Enchantment"; + } +} diff --git a/src/generators/java/net/minestom/codegen/entitytypes/EntityTypeEnumGenerator.java b/src/generators/java/net/minestom/codegen/entitytypes/EntityTypeEnumGenerator.java new file mode 100644 index 000000000..9239b5055 --- /dev/null +++ b/src/generators/java/net/minestom/codegen/entitytypes/EntityTypeEnumGenerator.java @@ -0,0 +1,56 @@ +package net.minestom.codegen.entitytypes; + +import net.minestom.codegen.BasicEnumGenerator; +import net.minestom.server.registry.ResourceGatherer; + +import java.io.File; +import java.io.IOException; + +public class EntityTypeEnumGenerator extends BasicEnumGenerator { + public static void main(String[] args) throws IOException { + String targetVersion; + if(args.length < 1) { + System.err.println("Usage: [target folder]"); + return; + } + + targetVersion = args[0]; + + try { + ResourceGatherer.ensureResourcesArePresent(targetVersion, null); // TODO + } catch (IOException e) { + e.printStackTrace(); + } + + String targetPart = DEFAULT_TARGET_PATH; + if(args.length >= 2) { + targetPart = args[1]; + } + + File targetFolder = new File(targetPart); + if(!targetFolder.exists()) { + targetFolder.mkdirs(); + } + + new EntityTypeEnumGenerator(targetFolder); + } + + private EntityTypeEnumGenerator(File targetFolder) throws IOException { + super(targetFolder); + } + + @Override + protected String getCategoryID() { + return "minecraft:entity_type"; + } + + @Override + public String getPackageName() { + return "net.minestom.server.entity"; + } + + @Override + public String getClassName() { + return "EntityType"; + } +} diff --git a/src/generators/java/net/minestom/codegen/items/ItemEnumGenerator.java b/src/generators/java/net/minestom/codegen/items/ItemEnumGenerator.java index 8187a8f11..22a42900c 100644 --- a/src/generators/java/net/minestom/codegen/items/ItemEnumGenerator.java +++ b/src/generators/java/net/minestom/codegen/items/ItemEnumGenerator.java @@ -101,7 +101,7 @@ public class ItemEnumGenerator extends MinestomEnumGenerator { LOGGER.debug("Loading PrismarineJS blocks data"); List prismarineJSItems = parseItemsFromPrismarineJS(gson, paths.getItemsFile()); - SortedSet items = Collections.synchronizedSortedSet(new TreeSet<>(ItemContainer::compareTo)); + TreeSet items = new TreeSet<>(ItemContainer::compareTo); for(var prismarineJSItem : prismarineJSItems) { items.add(new ItemContainer(prismarineJSItem.id, NamespaceID.from(prismarineJSItem.name), prismarineJSItem.stackSize, getBlock(prismarineJSItem.name.toUpperCase()))); } @@ -138,7 +138,12 @@ public class ItemEnumGenerator extends MinestomEnumGenerator { generator.addMethod("isBlock", "()", "boolean", "return correspondingBlock != null && this != AIR;"); generator.addMethod("getBlock", "()", "Block", "return correspondingBlock;"); - generator.addMethod("fromId", "(short blockId)", "static "+className, "return "+getClassName()+"Map.map.getOrDefault(blockId, AIR);"); + generator.addMethod("fromId", "(short id)", "static "+className, + "if(id >= 0 && id < values().length) {", + "\treturn values()[id];", + "}", + "return AIR;" + ); // hard coded methods generator.addMethod("isHelmet", "()", "boolean", "return toString().endsWith(\"HELMET\");"); @@ -197,8 +202,6 @@ public class ItemEnumGenerator extends MinestomEnumGenerator { " }\n" + "\n" + " return isFood();"); - - generator.appendToConstructor(getClassName()+"Map.map.put((short)ordinal(), this);"); } @Override @@ -212,23 +215,7 @@ public class ItemEnumGenerator extends MinestomEnumGenerator { } @Override - protected void postGeneration() throws IOException { - File classFolder = new File(targetFolder, getRelativeFolderPath()); - if(!classFolder.exists()) { - classFolder.mkdirs(); - } - - StringBuilder mapClass = new StringBuilder(); - mapClass.append("package "+getPackageName()+";\n") - .append("import "+Short2ObjectOpenHashMap.class.getCanonicalName()+";\n") - .append("final class "+getClassName()+"Map {\n") - .append("\tstatic final Short2ObjectOpenHashMap<"+getClassName()+"> map = new Short2ObjectOpenHashMap<>();\n") - .append("}\n"); - LOGGER.debug("Writing map to file: "+getRelativeFolderPath()+"/"+getClassName()+"Map.java"); - try(Writer writer = new BufferedWriter(new FileWriter(new File(classFolder, getClassName()+"Map.java")))) { - writer.write(mapClass.toString()); - } - } + protected void postGeneration() throws IOException {} @Override protected void postWrite(EnumGenerator generator) {} diff --git a/src/generators/java/net/minestom/codegen/particles/ParticleEnumGenerator.java b/src/generators/java/net/minestom/codegen/particles/ParticleEnumGenerator.java new file mode 100644 index 000000000..2a79aa3fe --- /dev/null +++ b/src/generators/java/net/minestom/codegen/particles/ParticleEnumGenerator.java @@ -0,0 +1,56 @@ +package net.minestom.codegen.particles; + +import net.minestom.codegen.BasicEnumGenerator; +import net.minestom.server.registry.ResourceGatherer; + +import java.io.File; +import java.io.IOException; + +public class ParticleEnumGenerator extends BasicEnumGenerator { + public static void main(String[] args) throws IOException { + String targetVersion; + if(args.length < 1) { + System.err.println("Usage: [target folder]"); + return; + } + + targetVersion = args[0]; + + try { + ResourceGatherer.ensureResourcesArePresent(targetVersion, null); // TODO + } catch (IOException e) { + e.printStackTrace(); + } + + String targetPart = DEFAULT_TARGET_PATH; + if(args.length >= 2) { + targetPart = args[1]; + } + + File targetFolder = new File(targetPart); + if(!targetFolder.exists()) { + targetFolder.mkdirs(); + } + + new ParticleEnumGenerator(targetFolder); + } + + private ParticleEnumGenerator(File targetFolder) throws IOException { + super(targetFolder); + } + + @Override + protected String getCategoryID() { + return "minecraft:particle_type"; + } + + @Override + public String getPackageName() { + return "net.minestom.server.particle"; + } + + @Override + public String getClassName() { + return "Particle"; + } +} diff --git a/src/generators/java/net/minestom/codegen/potions/PotionEnumGenerator.java b/src/generators/java/net/minestom/codegen/potions/PotionEnumGenerator.java new file mode 100644 index 000000000..0149e165f --- /dev/null +++ b/src/generators/java/net/minestom/codegen/potions/PotionEnumGenerator.java @@ -0,0 +1,56 @@ +package net.minestom.codegen.potions; + +import net.minestom.codegen.BasicEnumGenerator; +import net.minestom.server.registry.ResourceGatherer; + +import java.io.File; +import java.io.IOException; + +public class PotionEnumGenerator extends BasicEnumGenerator { + public static void main(String[] args) throws IOException { + String targetVersion; + if(args.length < 1) { + System.err.println("Usage: [target folder]"); + return; + } + + targetVersion = args[0]; + + try { + ResourceGatherer.ensureResourcesArePresent(targetVersion, null); // TODO + } catch (IOException e) { + e.printStackTrace(); + } + + String targetPart = DEFAULT_TARGET_PATH; + if(args.length >= 2) { + targetPart = args[1]; + } + + File targetFolder = new File(targetPart); + if(!targetFolder.exists()) { + targetFolder.mkdirs(); + } + + new PotionEnumGenerator(targetFolder); + } + + private PotionEnumGenerator(File targetFolder) throws IOException { + super(targetFolder); + } + + @Override + protected String getCategoryID() { + return "minecraft:potion"; + } + + @Override + public String getPackageName() { + return "net.minestom.server.potion"; + } + + @Override + public String getClassName() { + return "PotionType"; + } +} diff --git a/src/generators/java/net/minestom/codegen/sounds/SoundEnumGenerator.java b/src/generators/java/net/minestom/codegen/sounds/SoundEnumGenerator.java new file mode 100644 index 000000000..a64318356 --- /dev/null +++ b/src/generators/java/net/minestom/codegen/sounds/SoundEnumGenerator.java @@ -0,0 +1,56 @@ +package net.minestom.codegen.sounds; + +import net.minestom.codegen.BasicEnumGenerator; +import net.minestom.server.registry.ResourceGatherer; + +import java.io.File; +import java.io.IOException; + +public class SoundEnumGenerator extends BasicEnumGenerator { + public static void main(String[] args) throws IOException { + String targetVersion; + if(args.length < 1) { + System.err.println("Usage: [target folder]"); + return; + } + + targetVersion = args[0]; + + try { + ResourceGatherer.ensureResourcesArePresent(targetVersion, null); // TODO + } catch (IOException e) { + e.printStackTrace(); + } + + String targetPart = DEFAULT_TARGET_PATH; + if(args.length >= 2) { + targetPart = args[1]; + } + + File targetFolder = new File(targetPart); + if(!targetFolder.exists()) { + targetFolder.mkdirs(); + } + + new SoundEnumGenerator(targetFolder); + } + + private SoundEnumGenerator(File targetFolder) throws IOException { + super(targetFolder); + } + + @Override + protected String getCategoryID() { + return "minecraft:sound_event"; + } + + @Override + public String getPackageName() { + return "net.minestom.server.sound"; + } + + @Override + public String getClassName() { + return "Sound"; + } +} diff --git a/src/generators/java/net/minestom/codegen/stats/StatsEnumGenerator.java b/src/generators/java/net/minestom/codegen/stats/StatsEnumGenerator.java new file mode 100644 index 000000000..43c781f00 --- /dev/null +++ b/src/generators/java/net/minestom/codegen/stats/StatsEnumGenerator.java @@ -0,0 +1,56 @@ +package net.minestom.codegen.stats; + +import net.minestom.codegen.BasicEnumGenerator; +import net.minestom.server.registry.ResourceGatherer; + +import java.io.File; +import java.io.IOException; + +public class StatsEnumGenerator extends BasicEnumGenerator { + public static void main(String[] args) throws IOException { + String targetVersion; + if(args.length < 1) { + System.err.println("Usage: [target folder]"); + return; + } + + targetVersion = args[0]; + + try { + ResourceGatherer.ensureResourcesArePresent(targetVersion, null); // TODO + } catch (IOException e) { + e.printStackTrace(); + } + + String targetPart = DEFAULT_TARGET_PATH; + if(args.length >= 2) { + targetPart = args[1]; + } + + File targetFolder = new File(targetPart); + if(!targetFolder.exists()) { + targetFolder.mkdirs(); + } + + new StatsEnumGenerator(targetFolder); + } + + private StatsEnumGenerator(File targetFolder) throws IOException { + super(targetFolder); + } + + @Override + protected String getCategoryID() { + return "minecraft:custom_stat"; + } + + @Override + public String getPackageName() { + return "net.minestom.server.stat"; + } + + @Override + public String getClassName() { + return "StatisticType"; + } +} diff --git a/src/main/java/net/minestom/server/MinecraftServer.java b/src/main/java/net/minestom/server/MinecraftServer.java index db73dc8d4..100b7e520 100644 --- a/src/main/java/net/minestom/server/MinecraftServer.java +++ b/src/main/java/net/minestom/server/MinecraftServer.java @@ -16,7 +16,6 @@ import net.minestom.server.network.netty.NettyServer; import net.minestom.server.network.packet.server.play.ServerDifficultyPacket; import net.minestom.server.ping.ResponseDataConsumer; import net.minestom.server.recipe.RecipeManager; -import net.minestom.server.registry.RegistryMain; import net.minestom.server.registry.ResourceGatherer; import net.minestom.server.scoreboard.TeamManager; import net.minestom.server.storage.StorageFolder; @@ -123,12 +122,6 @@ public class MinecraftServer { } catch (IOException e) { LOGGER.error("An error happened during resource gathering. Minestom will attempt to load anyway, but things may not work, and crashes can happen.", e); } - RegistryMain.registerEntities(); - RegistryMain.registerSounds(); - RegistryMain.registerParticles(); - RegistryMain.registerStats(); - RegistryMain.registerEnchantments(); - RegistryMain.registerPotions(); minecraftServer = new MinecraftServer(); diff --git a/src/main/java/net/minestom/server/entity/EntityType.java b/src/main/java/net/minestom/server/entity/EntityType.java deleted file mode 100644 index 186611806..000000000 --- a/src/main/java/net/minestom/server/entity/EntityType.java +++ /dev/null @@ -1,128 +0,0 @@ -package net.minestom.server.entity; - -import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap; - -public enum EntityType { - - AREA_EFFECT_CLOUD, - ARMOR_STAND, - ARROW, - BAT, - BEE, - BLAZE, - BOAT, - CAT, - CAVE_SPIDER, - CHICKEN, - COD, - COW, - CREEPER, - DONKEY, - DOLPHIN, - DRAGON_FIREBALL, - DROWNED, - ELDER_GUARDIAN, - END_CRYSTAL, - ENDER_DRAGON, - ENDERMAN, - ENDERMITE, - EVOKER_FANGS, - EVOKER, - EXPERIENCE_ORB, - EYE_OF_ENDER, - FALLING_BLOCK, - FIREWORK_ROCKET, - FOX, - GHAST, - GIANT, - GUARDIAN, - HORSE, - HUSK, - ILLUSIONER, - ITEM, - ITEM_FRAME, - FIREBALL, - LEASH_KNOT, - LLAMA, - LLAMA_SPIT, - MAGMA_CUBE, - MINECART, - CHEST_MINECART, - COMMAND_BLOCK_MINECART, - FURNACE_MINECART, - HOPPER_MINECART, - SPAWNER_MINECART, - TNT_MINECART, - MULE, - MOOSHROOM, - OCELOT, - PAINTING, - PANDA, - PARROT, - PIG, - PUFFERFISH, - ZOMBIE_PIGMAN, - POLAR_BEAR, - TNT, - RABBIT, - SALMON, - SHEEP, - SHULKER, - SHULKER_BULLET, - SILVERFISH, - SKELETON, - SKELETON_HORSE, - SLIME, - SMALL_FIREBALL, - SNOW_GOLEM, - SNOWBALL, - SPECTRAL_ARROW, - SPIDER, - SQUID, - STRAY, - TRADER_LLAMA, - TROPICAL_FISH, - TURTLE, - EGG, - ENDER_PEARL, - EXPERIENCE_BOTTLE, - POTION, - TRIDENT, - VEX, - VILLAGER, - IRON_GOLEM, - VINDICATOR, - PILLAGER, - WANDERING_TRADER, - WITCH, - WITHER, - WITHER_SKELETON, - WITHER_SKULL, - WOLF, - ZOMBIE, - ZOMBIE_HORSE, - ZOMBIE_VILLAGER, - PHANTOM, - RAVAGER, - LIGHTNING_BOLT, - PLAYER, - FISHING_BOBBER; - - private static Int2ObjectOpenHashMap map = new Int2ObjectOpenHashMap(); - - private int id; - - public void setIdentifier(int id) { - this.id = id; - - map.put(id, this); - } - - public static EntityType fromId(int id) { - return map.get(id); - } - - public int getId() { - return id; - } -} diff --git a/src/main/java/net/minestom/server/item/Enchantment.java b/src/main/java/net/minestom/server/item/Enchantment.java deleted file mode 100644 index 53a1caf92..000000000 --- a/src/main/java/net/minestom/server/item/Enchantment.java +++ /dev/null @@ -1,63 +0,0 @@ -package net.minestom.server.item; - -import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap; - -public enum Enchantment { - - PROTECTION, - FIRE_PROTECTION, - FEATHER_FALLING, - BLAST_PROTECTION, - PROJECTILE_PROTECTION, - RESPIRATION, - AQUA_AFFINITY, - THORNS, - DEPTH_STRIDER, - FROST_WALKER, - BINDING_CURSE, - SHARPNESS, - SMITE, - BANE_OF_ARTHROPODS, - KNOCKBACK, - FIRE_ASPECT, - LOOTING, - SWEEPING, - EFFICIENCY, - SILK_TOUCH, - UNBREAKING, - FORTUNE, - POWER, - PUNCH, - FLAME, - INFINITY, - LUCK_OF_THE_SEA, - LURE, - LOYALTY, - IMPALING, - RIPTIDE, - CHANNELING, - MULTISHOT, - QUICK_CHARGE, - PIERCING, - MENDING, - VANISHING_CURSE; - - private static Int2ObjectOpenHashMap map = new Int2ObjectOpenHashMap(); - - private int id; - - public static Enchantment fromId(int id) { - return map.get(id); - } - - public void setIdentifier(int id) { - this.id = id; - - map.put(id, this); - } - - public int getId() { - return id; - } - -} diff --git a/src/main/java/net/minestom/server/particle/Particle.java b/src/main/java/net/minestom/server/particle/Particle.java deleted file mode 100644 index 4fdbacfb3..000000000 --- a/src/main/java/net/minestom/server/particle/Particle.java +++ /dev/null @@ -1,87 +0,0 @@ -package net.minestom.server.particle; - -import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap; - -public enum Particle { - - AMBIENT_ENTITY_EFFECT, - ANGRY_VILLAGER, - BARRIER, - BLOCK, - BUBBLE, - CLOUD, - CRIT, - DAMAGE_INDICATOR, - DRAGON_BREATH, - DRIPPING_LAVA, - FALLING_LAVA, - LANDING_LAVA, - DRIPPING_WATER, - FALLING_WATER, - DUST, - EFFECT, - ELDER_GUARDIAN, - ENCHANTED_HIT, - ENCHANT, - END_ROD, - ENTITY_EFFECT, - EXPLOSION_EMITTER, - EXPLOSION, - FALLING_DUST, - FIREWORK, - FISHING, - FLAME, - FLASH, - HAPPY_VILLAGER, - COMPOSTER, - HEART, - INSTANT_EFFECT, - ITEM, - ITEM_SLIME, - ITEM_SNOWBALL, - LARGE_SMOKE, - LAVA, - MYCELIUM, - NOTE, - POOF, - PORTAL, - RAIN, - SMOKE, - SNEEZE, - SPIT, - SQUID_INK, - SWEEP_ATTACK, - TOTEM_OF_UNDYING, - UNDERWATER, - SPLASH, - WITCH, - BUBBLE_POP, - CURRENT_DOWN, - BUBBLE_COLUMN_UP, - NAUTILUS, - DOLPHIN, - CAMPFIRE_COSY_SMOKE, - CAMPFIRE_SIGNAL_SMOKE, - DRIPPING_HONEY, - FALLING_HONEY, - LANDING_HONEY, - FALLING_NECTAR; - - private static Int2ObjectOpenHashMap map = new Int2ObjectOpenHashMap(); - - private int id; - - public static Particle fromId(int id) { - return map.get(id); - } - - public void setIdentifier(int id) { - this.id = id; - - map.put(id, this); - } - - public int getId() { - return id; - } -} diff --git a/src/main/java/net/minestom/server/potion/PotionType.java b/src/main/java/net/minestom/server/potion/PotionType.java deleted file mode 100644 index 92764cfa7..000000000 --- a/src/main/java/net/minestom/server/potion/PotionType.java +++ /dev/null @@ -1,68 +0,0 @@ -package net.minestom.server.potion; - -import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap; - -public enum PotionType { - - EMPTY, - WATER, - MUNDANE, - THICK, - AWKWARD, - NIGHT_VISION, - LONG_NIGHT_VISION, - INVISIBILITY, - LONG_INVISIBILITY, - LEAPING, - LONG_LEAPING, - STRONG_LEAPING, - FIRE_RESISTANCE, - LONG_FIRE_RESISTANCE, - SWIFTNESS, - LONG_SWIFTNESS, - STRONG_SWIFTNESS, - SLOWNESS, - LONG_SLOWNESS, - STRONG_SLOWNESS, - TURTLE_MASTER, - LONG_TURTLE_MASTER, - STRONG_TURTLE_MASTER, - WATER_BREATHING, - LONG_WATER_BREATHING, - HEALING, - STRONG_HEALING, - HARMING, - STRONG_HARMING, - POISON, - LONG_POISON, - STRONG_POISON, - REGENERATION, - LONG_REGENERATION, - STRONG_REGENERATION, - STRENGTH, - LONG_STRENGTH, - STRONG_STRENGTH, - WEAKNESS, - LONG_WEAKNESS, - LUCK, - SLOW_FALLING, - LONG_SLOW_FALLING; - - private static Int2ObjectOpenHashMap map = new Int2ObjectOpenHashMap(); - - private int id; - - public static PotionType fromId(int id) { - return map.get(id); - } - - public void setIdentifier(int id) { - this.id = id; - - map.put(id, this); - } - - public int getId() { - return id; - } -} diff --git a/src/main/java/net/minestom/server/registry/RegistryBlock.java b/src/main/java/net/minestom/server/registry/RegistryBlock.java deleted file mode 100644 index 48c86a74e..000000000 --- a/src/main/java/net/minestom/server/registry/RegistryBlock.java +++ /dev/null @@ -1,25 +0,0 @@ -package net.minestom.server.registry; - -import java.util.ArrayList; -import java.util.List; - -public class RegistryBlock { - - protected String name; - - protected List propertiesIdentifiers = new ArrayList<>(); - - protected List defaultPropertiesValues = new ArrayList<>(); - protected short defaultId; - - protected List states = new ArrayList<>(); - - public static class BlockState { - - protected List propertiesValues = new ArrayList<>(); - protected short id; - protected boolean isDefault; - - } - -} diff --git a/src/main/java/net/minestom/server/registry/RegistryEnchantment.java b/src/main/java/net/minestom/server/registry/RegistryEnchantment.java deleted file mode 100644 index b93631a15..000000000 --- a/src/main/java/net/minestom/server/registry/RegistryEnchantment.java +++ /dev/null @@ -1,8 +0,0 @@ -package net.minestom.server.registry; - -public class RegistryEnchantment { - - protected String name; - protected int id; - -} diff --git a/src/main/java/net/minestom/server/registry/RegistryEntityType.java b/src/main/java/net/minestom/server/registry/RegistryEntityType.java deleted file mode 100644 index 429fd0782..000000000 --- a/src/main/java/net/minestom/server/registry/RegistryEntityType.java +++ /dev/null @@ -1,8 +0,0 @@ -package net.minestom.server.registry; - -public class RegistryEntityType { - - protected String name; - protected int entityId; - -} diff --git a/src/main/java/net/minestom/server/registry/RegistryItem.java b/src/main/java/net/minestom/server/registry/RegistryItem.java deleted file mode 100644 index d12751a62..000000000 --- a/src/main/java/net/minestom/server/registry/RegistryItem.java +++ /dev/null @@ -1,8 +0,0 @@ -package net.minestom.server.registry; - -public class RegistryItem { - - protected String name; - protected short itemId; - -} diff --git a/src/main/java/net/minestom/server/registry/RegistryMain.java b/src/main/java/net/minestom/server/registry/RegistryMain.java deleted file mode 100644 index 7aadf984f..000000000 --- a/src/main/java/net/minestom/server/registry/RegistryMain.java +++ /dev/null @@ -1,376 +0,0 @@ -package net.minestom.server.registry; - -import com.google.gson.Gson; -import com.google.gson.JsonArray; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import net.minestom.server.entity.EntityType; -import net.minestom.server.instance.block.Block; -import net.minestom.server.instance.block.BlockAlternative; -import net.minestom.server.item.Enchantment; -import net.minestom.server.item.Material; -import net.minestom.server.particle.Particle; -import net.minestom.server.potion.PotionType; -import net.minestom.server.sound.Sound; -import net.minestom.server.stat.StatisticType; - -import java.io.BufferedReader; -import java.io.FileNotFoundException; -import java.io.FileReader; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Set; - -public class RegistryMain { - - public static final String BLOCKS_PATH = "minecraft_data/reports/blocks.json"; - public static final String ITEMS_PATH = "minecraft_data/reports/registries.json"; - public static final String ENTITIES_PATH = "minecraft_data/reports/registries.json"; - public static final String SOUNDS_PATH = "minecraft_data/reports/registries.json"; - public static final String PARTICLES_PATH = "minecraft_data/reports/registries.json"; - public static final String STATS_PATH = "minecraft_data/reports/registries.json"; - - public static void main(String[] args) { - List blocks = parseBlocks(BLOCKS_PATH); - List items = parseItems(ITEMS_PATH); - List entities = parseEntities(ENTITIES_PATH); - List sounds = parseSounds(SOUNDS_PATH); - List particles = parseParticles(PARTICLES_PATH); - List stats = parseStats(STATS_PATH); - List enchantments = parseEnchantments(STATS_PATH); - List potions = parsePotions(STATS_PATH); - //writeBlocksClass(blocks); - //writeItemsClass(items); - //writeEntitiesClass(entities); - //writeSoundsClass(sounds); - //writeStatsClass(stats); - //writeEnchantmentsClass(enchantments); - writePotionsClass(potions); - } - - public static void registerEntities() { - List registryEntityTypes = parseEntities(ENTITIES_PATH); - - for (RegistryEntityType registryEntityType : registryEntityTypes) { - EntityType entity = EntityType.valueOf(registryEntityType.name); - entity.setIdentifier(registryEntityType.entityId); - } - } - - public static void registerSounds() { - List registrySounds = parseSounds(SOUNDS_PATH); - - for (RegistrySound registrySound : registrySounds) { - Sound sound = Sound.valueOf(registrySound.name); - sound.setIdentifier(registrySound.id); - } - } - - public static void registerParticles() { - List registryParticles = parseParticles(PARTICLES_PATH); - - for (RegistryParticle registryParticle : registryParticles) { - Particle particle = Particle.valueOf(registryParticle.name); - particle.setIdentifier(registryParticle.id); - } - } - - public static void registerStats() { - List registryStats = parseStats(STATS_PATH); - - for (RegistryStat registryStat : registryStats) { - StatisticType stat = StatisticType.valueOf(registryStat.name); - stat.setIdentifier(registryStat.id); - } - } - - public static void registerEnchantments() { - List enchantments = parseEnchantments(STATS_PATH); - - for (RegistryEnchantment registryEnchantment : enchantments) { - Enchantment enchantment = Enchantment.valueOf(registryEnchantment.name); - enchantment.setIdentifier(registryEnchantment.id); - } - } - - public static void registerPotions() { - List potions = parsePotions(STATS_PATH); - - for (RegistryPotion registryPotion : potions) { - PotionType potionType = PotionType.valueOf(registryPotion.name); - potionType.setIdentifier(registryPotion.id); - } - } - - private static void writeBlocksClass(List blocks) { - for (RegistryBlock registryBlock : blocks) { - String line = registryBlock.name + ","; - System.out.println(line); - - } - } - - private static void writeItemsClass(List items) { - for (RegistryItem registryItem : items) { - String line = registryItem.name + ","; - System.out.println(line); - } - } - - private static void writeEntitiesClass(List entities) { - for (RegistryEntityType registryEntityType : entities) { - String line = registryEntityType.name + ","; - System.out.println(line); - } - } - - private static void writeSoundsClass(List sounds) { - for (RegistrySound registrySound : sounds) { - String line = registrySound.name + ","; - System.out.println(line); - } - } - - private static void writeParticlesClass(List particles) { - for (RegistryParticle registryParticle : particles) { - String line = registryParticle.name + ","; - System.out.println(line); - } - } - - private static void writeStatsClass(List stats) { - for (RegistryStat registryStat : stats) { - String line = registryStat.name + ","; - System.out.println(line); - } - } - - private static void writeEnchantmentsClass(List enchantments) { - for (RegistryEnchantment registryEnchantment : enchantments) { - String line = registryEnchantment.name + ","; - System.out.println(line); - } - } - - private static void writePotionsClass(List potions) { - for (RegistryPotion registryPotion : potions) { - String line = registryPotion.name + ","; - System.out.println(line); - } - } - - - private static List parseBlocks(String path) { - List blocks = new ArrayList<>(); - try { - BufferedReader bufferedReader = new BufferedReader(new FileReader(path)); - - Gson gson = new Gson(); - JsonObject obj = gson.fromJson(bufferedReader, JsonObject.class); - Set> entries = obj.entrySet();//will return members of your object - for (Map.Entry entry : entries) { - RegistryBlock registryBlock = new RegistryBlock(); - blocks.add(registryBlock); - - String blockName = entry.getKey(); - - registryBlock.name = blockName.toUpperCase().replace("MINECRAFT:", ""); - - JsonObject blockObject = entry.getValue().getAsJsonObject(); - JsonObject propertiesObject = blockObject.getAsJsonObject("properties"); - - // Get all properties keys - if (propertiesObject != null) { - Set> propertiesEntries = propertiesObject.entrySet();//will return members of your object - for (Map.Entry propertyEntry : propertiesEntries) { - String propertyName = propertyEntry.getKey(); - - registryBlock.propertiesIdentifiers.add(propertyName); - } - } - - // Get states - JsonArray statesArray = blockObject.getAsJsonArray("states"); - for (JsonElement stateElement : statesArray) { - JsonObject stateObject = stateElement.getAsJsonObject(); - RegistryBlock.BlockState blockState = new RegistryBlock.BlockState(); - registryBlock.states.add(blockState); - - short id = stateObject.get("id").getAsShort(); - boolean isDefault = stateObject.has("default"); - - blockState.id = id; - blockState.isDefault = isDefault; - - JsonObject statePropertiesObject = stateObject.getAsJsonObject("properties"); - if (statePropertiesObject != null) { - Set> statePropertiesEntries = statePropertiesObject.entrySet();//will return members of your object - for (Map.Entry propertyEntry : statePropertiesEntries) { - String propertyValue = propertyEntry.getKey() + "=" + propertyEntry.getValue().getAsString(); - - blockState.propertiesValues.add(propertyValue); - } - } - - // Fill the default information - if (isDefault) { - registryBlock.defaultId = blockState.id; - registryBlock.defaultPropertiesValues = blockState.propertiesValues; - } - } - - } - - } catch (FileNotFoundException e) { - e.printStackTrace(); - } - - - return blocks; - } - - private static List parseItems(String path) { - JsonObject entriesObject = parse(path, "minecraft:item"); - List registryItems = new ArrayList<>(); - - Set> entriesEntries = entriesObject.entrySet();//will return members of your object - for (Map.Entry entryEntry : entriesEntries) { - RegistryItem registryItem = new RegistryItem(); - registryItems.add(registryItem); - String item = entryEntry.getKey(); - String itemName = item.toUpperCase().replace("MINECRAFT:", ""); - registryItem.name = itemName; - short id = entryEntry.getValue().getAsJsonObject().get("protocol_id").getAsShort(); - registryItem.itemId = id; - } - - return registryItems; - } - - private static List parseEntities(String path) { - JsonObject entriesObject = parse(path, "minecraft:entity_type"); - List registryEntityTypes = new ArrayList<>(); - - Set> entriesEntries = entriesObject.entrySet();//will return members of your object - for (Map.Entry entryEntry : entriesEntries) { - RegistryEntityType registryEntityType = new RegistryEntityType(); - registryEntityTypes.add(registryEntityType); - String item = entryEntry.getKey(); - String itemName = item.toUpperCase().replace("MINECRAFT:", ""); - registryEntityType.name = itemName; - short id = entryEntry.getValue().getAsJsonObject().get("protocol_id").getAsShort(); - registryEntityType.entityId = id; - } - - return registryEntityTypes; - } - - private static List parseSounds(String path) { - JsonObject entriesObject = parse(path, "minecraft:sound_event"); - List registrySounds = new ArrayList<>(); - - Set> entriesEntries = entriesObject.entrySet();//will return members of your object - for (Map.Entry entryEntry : entriesEntries) { - RegistrySound registrySound = new RegistrySound(); - registrySounds.add(registrySound); - String item = entryEntry.getKey(); - String itemName = item.toUpperCase().replace("MINECRAFT:", "").replace(".", "_"); - registrySound.name = itemName; - short id = entryEntry.getValue().getAsJsonObject().get("protocol_id").getAsShort(); - registrySound.id = id; - } - - return registrySounds; - } - - private static List parseParticles(String path) { - JsonObject entriesObject = parse(path, "minecraft:particle_type"); - List registryParticles = new ArrayList<>(); - - Set> entriesEntries = entriesObject.entrySet();//will return members of your object - for (Map.Entry entryEntry : entriesEntries) { - RegistryParticle registryParticle = new RegistryParticle(); - registryParticles.add(registryParticle); - String item = entryEntry.getKey(); - String itemName = item.toUpperCase().replace("MINECRAFT:", "").replace(".", "_"); - registryParticle.name = itemName; - short id = entryEntry.getValue().getAsJsonObject().get("protocol_id").getAsShort(); - registryParticle.id = id; - } - - return registryParticles; - } - - private static List parseStats(String path) { - JsonObject entriesObject = parse(path, "minecraft:custom_stat"); - List registryStats = new ArrayList<>(); - - Set> entriesEntries = entriesObject.entrySet();//will return members of your object - for (Map.Entry entryEntry : entriesEntries) { - RegistryStat registryStat = new RegistryStat(); - registryStats.add(registryStat); - String item = entryEntry.getKey(); - String itemName = item.toUpperCase().replace("MINECRAFT:", "").replace(".", "_"); - registryStat.name = itemName; - short id = entryEntry.getValue().getAsJsonObject().get("protocol_id").getAsShort(); - registryStat.id = id; - } - - return registryStats; - } - - private static List parseEnchantments(String path) { - JsonObject entriesObject = parse(path, "minecraft:enchantment"); - List registryEnchantments = new ArrayList<>(); - - Set> entriesEntries = entriesObject.entrySet();//will return members of your object - for (Map.Entry entryEntry : entriesEntries) { - RegistryEnchantment registryEnchantment = new RegistryEnchantment(); - registryEnchantments.add(registryEnchantment); - String item = entryEntry.getKey(); - String itemName = item.toUpperCase().replace("MINECRAFT:", "").replace(".", "_"); - registryEnchantment.name = itemName; - short id = entryEntry.getValue().getAsJsonObject().get("protocol_id").getAsShort(); - registryEnchantment.id = id; - } - - return registryEnchantments; - } - - private static List parsePotions(String path) { - JsonObject entriesObject = parse(path, "minecraft:potion"); - List registryPotions = new ArrayList<>(); - - Set> entriesEntries = entriesObject.entrySet();//will return members of your object - for (Map.Entry entryEntry : entriesEntries) { - RegistryPotion registryPotion = new RegistryPotion(); - registryPotions.add(registryPotion); - String item = entryEntry.getKey(); - String itemName = item.toUpperCase().replace("MINECRAFT:", "").replace(".", "_"); - registryPotion.name = itemName; - short id = entryEntry.getValue().getAsJsonObject().get("protocol_id").getAsShort(); - registryPotion.id = id; - } - - return registryPotions; - } - - private static JsonObject parse(String path, String key) { - BufferedReader bufferedReader = null; - try { - bufferedReader = new BufferedReader(new FileReader(path)); - } catch (FileNotFoundException e) { - e.printStackTrace(); - } - - Gson gson = new Gson(); - JsonObject obj = gson.fromJson(bufferedReader, JsonObject.class); - - JsonObject itemsObject = obj.getAsJsonObject(key); - JsonObject entriesObject = itemsObject.getAsJsonObject("entries"); - - return entriesObject; - } - -} diff --git a/src/main/java/net/minestom/server/registry/RegistryParticle.java b/src/main/java/net/minestom/server/registry/RegistryParticle.java deleted file mode 100644 index 80210d40c..000000000 --- a/src/main/java/net/minestom/server/registry/RegistryParticle.java +++ /dev/null @@ -1,8 +0,0 @@ -package net.minestom.server.registry; - -public class RegistryParticle { - - protected String name; - protected int id; - -} diff --git a/src/main/java/net/minestom/server/registry/RegistryPotion.java b/src/main/java/net/minestom/server/registry/RegistryPotion.java deleted file mode 100644 index f097782e4..000000000 --- a/src/main/java/net/minestom/server/registry/RegistryPotion.java +++ /dev/null @@ -1,8 +0,0 @@ -package net.minestom.server.registry; - -public class RegistryPotion { - - protected String name; - protected int id; - -} diff --git a/src/main/java/net/minestom/server/registry/RegistrySound.java b/src/main/java/net/minestom/server/registry/RegistrySound.java deleted file mode 100644 index 823b1bb05..000000000 --- a/src/main/java/net/minestom/server/registry/RegistrySound.java +++ /dev/null @@ -1,8 +0,0 @@ -package net.minestom.server.registry; - -public class RegistrySound { - - protected String name; - protected int id; - -} diff --git a/src/main/java/net/minestom/server/registry/RegistryStat.java b/src/main/java/net/minestom/server/registry/RegistryStat.java deleted file mode 100644 index 878bdb1ae..000000000 --- a/src/main/java/net/minestom/server/registry/RegistryStat.java +++ /dev/null @@ -1,8 +0,0 @@ -package net.minestom.server.registry; - -public class RegistryStat { - - protected String name; - protected int id; - -} diff --git a/src/main/java/net/minestom/server/sound/Sound.java b/src/main/java/net/minestom/server/sound/Sound.java deleted file mode 100644 index cc88a844d..000000000 --- a/src/main/java/net/minestom/server/sound/Sound.java +++ /dev/null @@ -1,835 +0,0 @@ -package net.minestom.server.sound; - -import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap; - -public enum Sound { - - AMBIENT_CAVE, - AMBIENT_UNDERWATER_ENTER, - AMBIENT_UNDERWATER_EXIT, - AMBIENT_UNDERWATER_LOOP, - AMBIENT_UNDERWATER_LOOP_ADDITIONS, - AMBIENT_UNDERWATER_LOOP_ADDITIONS_RARE, - AMBIENT_UNDERWATER_LOOP_ADDITIONS_ULTRA_RARE, - BLOCK_ANVIL_BREAK, - BLOCK_ANVIL_DESTROY, - BLOCK_ANVIL_FALL, - BLOCK_ANVIL_HIT, - BLOCK_ANVIL_LAND, - BLOCK_ANVIL_PLACE, - BLOCK_ANVIL_STEP, - BLOCK_ANVIL_USE, - ITEM_ARMOR_EQUIP_CHAIN, - ITEM_ARMOR_EQUIP_DIAMOND, - ITEM_ARMOR_EQUIP_ELYTRA, - ITEM_ARMOR_EQUIP_GENERIC, - ITEM_ARMOR_EQUIP_GOLD, - ITEM_ARMOR_EQUIP_IRON, - ITEM_ARMOR_EQUIP_LEATHER, - ITEM_ARMOR_EQUIP_TURTLE, - ENTITY_ARMOR_STAND_BREAK, - ENTITY_ARMOR_STAND_FALL, - ENTITY_ARMOR_STAND_HIT, - ENTITY_ARMOR_STAND_PLACE, - ENTITY_ARROW_HIT, - ENTITY_ARROW_HIT_PLAYER, - ENTITY_ARROW_SHOOT, - ITEM_AXE_STRIP, - BLOCK_BAMBOO_BREAK, - BLOCK_BAMBOO_FALL, - BLOCK_BAMBOO_HIT, - BLOCK_BAMBOO_PLACE, - BLOCK_BAMBOO_STEP, - BLOCK_BAMBOO_SAPLING_BREAK, - BLOCK_BAMBOO_SAPLING_HIT, - BLOCK_BAMBOO_SAPLING_PLACE, - BLOCK_BARREL_CLOSE, - BLOCK_BARREL_OPEN, - ENTITY_BAT_AMBIENT, - ENTITY_BAT_DEATH, - ENTITY_BAT_HURT, - ENTITY_BAT_LOOP, - ENTITY_BAT_TAKEOFF, - BLOCK_BEACON_ACTIVATE, - BLOCK_BEACON_AMBIENT, - BLOCK_BEACON_DEACTIVATE, - BLOCK_BEACON_POWER_SELECT, - ENTITY_BEE_DEATH, - ENTITY_BEE_HURT, - ENTITY_BEE_LOOP_AGGRESSIVE, - ENTITY_BEE_LOOP, - ENTITY_BEE_STING, - ENTITY_BEE_POLLINATE, - BLOCK_BEEHIVE_DRIP, - BLOCK_BEEHIVE_ENTER, - BLOCK_BEEHIVE_EXIT, - BLOCK_BEEHIVE_SHEAR, - BLOCK_BEEHIVE_WORK, - BLOCK_BELL_USE, - BLOCK_BELL_RESONATE, - ENTITY_BLAZE_AMBIENT, - ENTITY_BLAZE_BURN, - ENTITY_BLAZE_DEATH, - ENTITY_BLAZE_HURT, - ENTITY_BLAZE_SHOOT, - ENTITY_BOAT_PADDLE_LAND, - ENTITY_BOAT_PADDLE_WATER, - ITEM_BOOK_PAGE_TURN, - ITEM_BOOK_PUT, - ENTITY_FISHING_BOBBER_RETRIEVE, - ENTITY_FISHING_BOBBER_SPLASH, - ENTITY_FISHING_BOBBER_THROW, - BLOCK_BLASTFURNACE_FIRE_CRACKLE, - ITEM_BOTTLE_EMPTY, - ITEM_BOTTLE_FILL, - ITEM_BOTTLE_FILL_DRAGONBREATH, - BLOCK_BREWING_STAND_BREW, - BLOCK_BUBBLE_COLUMN_BUBBLE_POP, - BLOCK_BUBBLE_COLUMN_UPWARDS_AMBIENT, - BLOCK_BUBBLE_COLUMN_UPWARDS_INSIDE, - BLOCK_BUBBLE_COLUMN_WHIRLPOOL_AMBIENT, - BLOCK_BUBBLE_COLUMN_WHIRLPOOL_INSIDE, - ITEM_BUCKET_EMPTY, - ITEM_BUCKET_EMPTY_FISH, - ITEM_BUCKET_EMPTY_LAVA, - ITEM_BUCKET_FILL, - ITEM_BUCKET_FILL_FISH, - ITEM_BUCKET_FILL_LAVA, - BLOCK_CAMPFIRE_CRACKLE, - ENTITY_CAT_AMBIENT, - ENTITY_CAT_STRAY_AMBIENT, - ENTITY_CAT_DEATH, - ENTITY_CAT_EAT, - ENTITY_CAT_HISS, - ENTITY_CAT_BEG_FOR_FOOD, - ENTITY_CAT_HURT, - ENTITY_CAT_PURR, - ENTITY_CAT_PURREOW, - BLOCK_CHEST_CLOSE, - BLOCK_CHEST_LOCKED, - BLOCK_CHEST_OPEN, - ENTITY_CHICKEN_AMBIENT, - ENTITY_CHICKEN_DEATH, - ENTITY_CHICKEN_EGG, - ENTITY_CHICKEN_HURT, - ENTITY_CHICKEN_STEP, - BLOCK_CHORUS_FLOWER_DEATH, - BLOCK_CHORUS_FLOWER_GROW, - ITEM_CHORUS_FRUIT_TELEPORT, - BLOCK_WOOL_BREAK, - BLOCK_WOOL_FALL, - BLOCK_WOOL_HIT, - BLOCK_WOOL_PLACE, - BLOCK_WOOL_STEP, - ENTITY_COD_AMBIENT, - ENTITY_COD_DEATH, - ENTITY_COD_FLOP, - ENTITY_COD_HURT, - BLOCK_COMPARATOR_CLICK, - BLOCK_COMPOSTER_EMPTY, - BLOCK_COMPOSTER_FILL, - BLOCK_COMPOSTER_FILL_SUCCESS, - BLOCK_COMPOSTER_READY, - BLOCK_CONDUIT_ACTIVATE, - BLOCK_CONDUIT_AMBIENT, - BLOCK_CONDUIT_AMBIENT_SHORT, - BLOCK_CONDUIT_ATTACK_TARGET, - BLOCK_CONDUIT_DEACTIVATE, - ENTITY_COW_AMBIENT, - ENTITY_COW_DEATH, - ENTITY_COW_HURT, - ENTITY_COW_MILK, - ENTITY_COW_STEP, - ENTITY_CREEPER_DEATH, - ENTITY_CREEPER_HURT, - ENTITY_CREEPER_PRIMED, - BLOCK_CROP_BREAK, - ITEM_CROP_PLANT, - ITEM_CROSSBOW_HIT, - ITEM_CROSSBOW_LOADING_END, - ITEM_CROSSBOW_LOADING_MIDDLE, - ITEM_CROSSBOW_LOADING_START, - ITEM_CROSSBOW_QUICK_CHARGE_1, - ITEM_CROSSBOW_QUICK_CHARGE_2, - ITEM_CROSSBOW_QUICK_CHARGE_3, - ITEM_CROSSBOW_SHOOT, - BLOCK_DISPENSER_DISPENSE, - BLOCK_DISPENSER_FAIL, - BLOCK_DISPENSER_LAUNCH, - ENTITY_DOLPHIN_AMBIENT, - ENTITY_DOLPHIN_AMBIENT_WATER, - ENTITY_DOLPHIN_ATTACK, - ENTITY_DOLPHIN_DEATH, - ENTITY_DOLPHIN_EAT, - ENTITY_DOLPHIN_HURT, - ENTITY_DOLPHIN_JUMP, - ENTITY_DOLPHIN_PLAY, - ENTITY_DOLPHIN_SPLASH, - ENTITY_DOLPHIN_SWIM, - ENTITY_DONKEY_AMBIENT, - ENTITY_DONKEY_ANGRY, - ENTITY_DONKEY_CHEST, - ENTITY_DONKEY_DEATH, - ENTITY_DONKEY_HURT, - ENTITY_DROWNED_AMBIENT, - ENTITY_DROWNED_AMBIENT_WATER, - ENTITY_DROWNED_DEATH, - ENTITY_DROWNED_DEATH_WATER, - ENTITY_DROWNED_HURT, - ENTITY_DROWNED_HURT_WATER, - ENTITY_DROWNED_SHOOT, - ENTITY_DROWNED_STEP, - ENTITY_DROWNED_SWIM, - ENTITY_EGG_THROW, - ENTITY_ELDER_GUARDIAN_AMBIENT, - ENTITY_ELDER_GUARDIAN_AMBIENT_LAND, - ENTITY_ELDER_GUARDIAN_CURSE, - ENTITY_ELDER_GUARDIAN_DEATH, - ENTITY_ELDER_GUARDIAN_DEATH_LAND, - ENTITY_ELDER_GUARDIAN_FLOP, - ENTITY_ELDER_GUARDIAN_HURT, - ENTITY_ELDER_GUARDIAN_HURT_LAND, - ITEM_ELYTRA_FLYING, - BLOCK_ENCHANTMENT_TABLE_USE, - BLOCK_ENDER_CHEST_CLOSE, - BLOCK_ENDER_CHEST_OPEN, - ENTITY_ENDER_DRAGON_AMBIENT, - ENTITY_ENDER_DRAGON_DEATH, - ENTITY_DRAGON_FIREBALL_EXPLODE, - ENTITY_ENDER_DRAGON_FLAP, - ENTITY_ENDER_DRAGON_GROWL, - ENTITY_ENDER_DRAGON_HURT, - ENTITY_ENDER_DRAGON_SHOOT, - ENTITY_ENDER_EYE_DEATH, - ENTITY_ENDER_EYE_LAUNCH, - ENTITY_ENDERMAN_AMBIENT, - ENTITY_ENDERMAN_DEATH, - ENTITY_ENDERMAN_HURT, - ENTITY_ENDERMAN_SCREAM, - ENTITY_ENDERMAN_STARE, - ENTITY_ENDERMAN_TELEPORT, - ENTITY_ENDERMITE_AMBIENT, - ENTITY_ENDERMITE_DEATH, - ENTITY_ENDERMITE_HURT, - ENTITY_ENDERMITE_STEP, - ENTITY_ENDER_PEARL_THROW, - BLOCK_END_GATEWAY_SPAWN, - BLOCK_END_PORTAL_FRAME_FILL, - BLOCK_END_PORTAL_SPAWN, - ENTITY_EVOKER_AMBIENT, - ENTITY_EVOKER_CAST_SPELL, - ENTITY_EVOKER_CELEBRATE, - ENTITY_EVOKER_DEATH, - ENTITY_EVOKER_FANGS_ATTACK, - ENTITY_EVOKER_HURT, - ENTITY_EVOKER_PREPARE_ATTACK, - ENTITY_EVOKER_PREPARE_SUMMON, - ENTITY_EVOKER_PREPARE_WOLOLO, - ENTITY_EXPERIENCE_BOTTLE_THROW, - ENTITY_EXPERIENCE_ORB_PICKUP, - BLOCK_FENCE_GATE_CLOSE, - BLOCK_FENCE_GATE_OPEN, - ITEM_FIRECHARGE_USE, - ENTITY_FIREWORK_ROCKET_BLAST, - ENTITY_FIREWORK_ROCKET_BLAST_FAR, - ENTITY_FIREWORK_ROCKET_LARGE_BLAST, - ENTITY_FIREWORK_ROCKET_LARGE_BLAST_FAR, - ENTITY_FIREWORK_ROCKET_LAUNCH, - ENTITY_FIREWORK_ROCKET_SHOOT, - ENTITY_FIREWORK_ROCKET_TWINKLE, - ENTITY_FIREWORK_ROCKET_TWINKLE_FAR, - BLOCK_FIRE_AMBIENT, - BLOCK_FIRE_EXTINGUISH, - ENTITY_FISH_SWIM, - ITEM_FLINTANDSTEEL_USE, - ENTITY_FOX_AGGRO, - ENTITY_FOX_AMBIENT, - ENTITY_FOX_BITE, - ENTITY_FOX_DEATH, - ENTITY_FOX_EAT, - ENTITY_FOX_HURT, - ENTITY_FOX_SCREECH, - ENTITY_FOX_SLEEP, - ENTITY_FOX_SNIFF, - ENTITY_FOX_SPIT, - BLOCK_FURNACE_FIRE_CRACKLE, - ENTITY_GENERIC_BIG_FALL, - ENTITY_GENERIC_BURN, - ENTITY_GENERIC_DEATH, - ENTITY_GENERIC_DRINK, - ENTITY_GENERIC_EAT, - ENTITY_GENERIC_EXPLODE, - ENTITY_GENERIC_EXTINGUISH_FIRE, - ENTITY_GENERIC_HURT, - ENTITY_GENERIC_SMALL_FALL, - ENTITY_GENERIC_SPLASH, - ENTITY_GENERIC_SWIM, - ENTITY_GHAST_AMBIENT, - ENTITY_GHAST_DEATH, - ENTITY_GHAST_HURT, - ENTITY_GHAST_SCREAM, - ENTITY_GHAST_SHOOT, - ENTITY_GHAST_WARN, - BLOCK_GLASS_BREAK, - BLOCK_GLASS_FALL, - BLOCK_GLASS_HIT, - BLOCK_GLASS_PLACE, - BLOCK_GLASS_STEP, - BLOCK_GRASS_BREAK, - BLOCK_GRASS_FALL, - BLOCK_GRASS_HIT, - BLOCK_GRASS_PLACE, - BLOCK_GRASS_STEP, - BLOCK_WET_GRASS_BREAK, - BLOCK_WET_GRASS_FALL, - BLOCK_WET_GRASS_HIT, - BLOCK_WET_GRASS_PLACE, - BLOCK_WET_GRASS_STEP, - BLOCK_CORAL_BLOCK_BREAK, - BLOCK_CORAL_BLOCK_FALL, - BLOCK_CORAL_BLOCK_HIT, - BLOCK_CORAL_BLOCK_PLACE, - BLOCK_CORAL_BLOCK_STEP, - BLOCK_GRAVEL_BREAK, - BLOCK_GRAVEL_FALL, - BLOCK_GRAVEL_HIT, - BLOCK_GRAVEL_PLACE, - BLOCK_GRAVEL_STEP, - BLOCK_GRINDSTONE_USE, - ENTITY_GUARDIAN_AMBIENT, - ENTITY_GUARDIAN_AMBIENT_LAND, - ENTITY_GUARDIAN_ATTACK, - ENTITY_GUARDIAN_DEATH, - ENTITY_GUARDIAN_DEATH_LAND, - ENTITY_GUARDIAN_FLOP, - ENTITY_GUARDIAN_HURT, - ENTITY_GUARDIAN_HURT_LAND, - ITEM_HOE_TILL, - BLOCK_HONEY_BLOCK_BREAK, - BLOCK_HONEY_BLOCK_FALL, - BLOCK_HONEY_BLOCK_HIT, - BLOCK_HONEY_BLOCK_PLACE, - BLOCK_HONEY_BLOCK_SLIDE, - BLOCK_HONEY_BLOCK_STEP, - ITEM_HONEY_BOTTLE_DRINK, - ENTITY_HORSE_AMBIENT, - ENTITY_HORSE_ANGRY, - ENTITY_HORSE_ARMOR, - ENTITY_HORSE_BREATHE, - ENTITY_HORSE_DEATH, - ENTITY_HORSE_EAT, - ENTITY_HORSE_GALLOP, - ENTITY_HORSE_HURT, - ENTITY_HORSE_JUMP, - ENTITY_HORSE_LAND, - ENTITY_HORSE_SADDLE, - ENTITY_HORSE_STEP, - ENTITY_HORSE_STEP_WOOD, - ENTITY_HOSTILE_BIG_FALL, - ENTITY_HOSTILE_DEATH, - ENTITY_HOSTILE_HURT, - ENTITY_HOSTILE_SMALL_FALL, - ENTITY_HOSTILE_SPLASH, - ENTITY_HOSTILE_SWIM, - ENTITY_HUSK_AMBIENT, - ENTITY_HUSK_CONVERTED_TO_ZOMBIE, - ENTITY_HUSK_DEATH, - ENTITY_HUSK_HURT, - ENTITY_HUSK_STEP, - ENTITY_RAVAGER_AMBIENT, - ENTITY_RAVAGER_ATTACK, - ENTITY_RAVAGER_CELEBRATE, - ENTITY_RAVAGER_DEATH, - ENTITY_RAVAGER_HURT, - ENTITY_RAVAGER_STEP, - ENTITY_RAVAGER_STUNNED, - ENTITY_RAVAGER_ROAR, - ENTITY_ILLUSIONER_AMBIENT, - ENTITY_ILLUSIONER_CAST_SPELL, - ENTITY_ILLUSIONER_DEATH, - ENTITY_ILLUSIONER_HURT, - ENTITY_ILLUSIONER_MIRROR_MOVE, - ENTITY_ILLUSIONER_PREPARE_BLINDNESS, - ENTITY_ILLUSIONER_PREPARE_MIRROR, - BLOCK_IRON_DOOR_CLOSE, - BLOCK_IRON_DOOR_OPEN, - ENTITY_IRON_GOLEM_ATTACK, - ENTITY_IRON_GOLEM_DAMAGE, - ENTITY_IRON_GOLEM_DEATH, - ENTITY_IRON_GOLEM_HURT, - ENTITY_IRON_GOLEM_REPAIR, - ENTITY_IRON_GOLEM_STEP, - BLOCK_IRON_TRAPDOOR_CLOSE, - BLOCK_IRON_TRAPDOOR_OPEN, - ENTITY_ITEM_FRAME_ADD_ITEM, - ENTITY_ITEM_FRAME_BREAK, - ENTITY_ITEM_FRAME_PLACE, - ENTITY_ITEM_FRAME_REMOVE_ITEM, - ENTITY_ITEM_FRAME_ROTATE_ITEM, - ENTITY_ITEM_BREAK, - ENTITY_ITEM_PICKUP, - BLOCK_LADDER_BREAK, - BLOCK_LADDER_FALL, - BLOCK_LADDER_HIT, - BLOCK_LADDER_PLACE, - BLOCK_LADDER_STEP, - BLOCK_LANTERN_BREAK, - BLOCK_LANTERN_FALL, - BLOCK_LANTERN_HIT, - BLOCK_LANTERN_PLACE, - BLOCK_LANTERN_STEP, - BLOCK_LAVA_AMBIENT, - BLOCK_LAVA_EXTINGUISH, - BLOCK_LAVA_POP, - ENTITY_LEASH_KNOT_BREAK, - ENTITY_LEASH_KNOT_PLACE, - BLOCK_LEVER_CLICK, - ENTITY_LIGHTNING_BOLT_IMPACT, - ENTITY_LIGHTNING_BOLT_THUNDER, - ENTITY_LINGERING_POTION_THROW, - ENTITY_LLAMA_AMBIENT, - ENTITY_LLAMA_ANGRY, - ENTITY_LLAMA_CHEST, - ENTITY_LLAMA_DEATH, - ENTITY_LLAMA_EAT, - ENTITY_LLAMA_HURT, - ENTITY_LLAMA_SPIT, - ENTITY_LLAMA_STEP, - ENTITY_LLAMA_SWAG, - ENTITY_MAGMA_CUBE_DEATH, - ENTITY_MAGMA_CUBE_HURT, - ENTITY_MAGMA_CUBE_JUMP, - ENTITY_MAGMA_CUBE_SQUISH, - BLOCK_METAL_BREAK, - BLOCK_METAL_FALL, - BLOCK_METAL_HIT, - BLOCK_METAL_PLACE, - BLOCK_METAL_PRESSURE_PLATE_CLICK_OFF, - BLOCK_METAL_PRESSURE_PLATE_CLICK_ON, - BLOCK_METAL_STEP, - ENTITY_MINECART_INSIDE, - ENTITY_MINECART_RIDING, - ENTITY_MOOSHROOM_CONVERT, - ENTITY_MOOSHROOM_EAT, - ENTITY_MOOSHROOM_MILK, - ENTITY_MOOSHROOM_SUSPICIOUS_MILK, - ENTITY_MOOSHROOM_SHEAR, - ENTITY_MULE_AMBIENT, - ENTITY_MULE_CHEST, - ENTITY_MULE_DEATH, - ENTITY_MULE_HURT, - MUSIC_CREATIVE, - MUSIC_CREDITS, - MUSIC_DRAGON, - MUSIC_END, - MUSIC_GAME, - MUSIC_MENU, - MUSIC_NETHER, - MUSIC_UNDER_WATER, - BLOCK_NETHER_WART_BREAK, - ITEM_NETHER_WART_PLANT, - BLOCK_NOTE_BLOCK_BASEDRUM, - BLOCK_NOTE_BLOCK_BASS, - BLOCK_NOTE_BLOCK_BELL, - BLOCK_NOTE_BLOCK_CHIME, - BLOCK_NOTE_BLOCK_FLUTE, - BLOCK_NOTE_BLOCK_GUITAR, - BLOCK_NOTE_BLOCK_HARP, - BLOCK_NOTE_BLOCK_HAT, - BLOCK_NOTE_BLOCK_PLING, - BLOCK_NOTE_BLOCK_SNARE, - BLOCK_NOTE_BLOCK_XYLOPHONE, - BLOCK_NOTE_BLOCK_IRON_XYLOPHONE, - BLOCK_NOTE_BLOCK_COW_BELL, - BLOCK_NOTE_BLOCK_DIDGERIDOO, - BLOCK_NOTE_BLOCK_BIT, - BLOCK_NOTE_BLOCK_BANJO, - ENTITY_OCELOT_HURT, - ENTITY_OCELOT_AMBIENT, - ENTITY_OCELOT_DEATH, - ENTITY_PAINTING_BREAK, - ENTITY_PAINTING_PLACE, - ENTITY_PANDA_PRE_SNEEZE, - ENTITY_PANDA_SNEEZE, - ENTITY_PANDA_AMBIENT, - ENTITY_PANDA_DEATH, - ENTITY_PANDA_EAT, - ENTITY_PANDA_STEP, - ENTITY_PANDA_CANT_BREED, - ENTITY_PANDA_AGGRESSIVE_AMBIENT, - ENTITY_PANDA_WORRIED_AMBIENT, - ENTITY_PANDA_HURT, - ENTITY_PANDA_BITE, - ENTITY_PARROT_AMBIENT, - ENTITY_PARROT_DEATH, - ENTITY_PARROT_EAT, - ENTITY_PARROT_FLY, - ENTITY_PARROT_HURT, - ENTITY_PARROT_IMITATE_BLAZE, - ENTITY_PARROT_IMITATE_CREEPER, - ENTITY_PARROT_IMITATE_DROWNED, - ENTITY_PARROT_IMITATE_ELDER_GUARDIAN, - ENTITY_PARROT_IMITATE_ENDER_DRAGON, - ENTITY_PARROT_IMITATE_ENDERMITE, - ENTITY_PARROT_IMITATE_EVOKER, - ENTITY_PARROT_IMITATE_GHAST, - ENTITY_PARROT_IMITATE_GUARDIAN, - ENTITY_PARROT_IMITATE_HUSK, - ENTITY_PARROT_IMITATE_ILLUSIONER, - ENTITY_PARROT_IMITATE_MAGMA_CUBE, - ENTITY_PARROT_IMITATE_PHANTOM, - ENTITY_PARROT_IMITATE_PILLAGER, - ENTITY_PARROT_IMITATE_RAVAGER, - ENTITY_PARROT_IMITATE_SHULKER, - ENTITY_PARROT_IMITATE_SILVERFISH, - ENTITY_PARROT_IMITATE_SKELETON, - ENTITY_PARROT_IMITATE_SLIME, - ENTITY_PARROT_IMITATE_SPIDER, - ENTITY_PARROT_IMITATE_STRAY, - ENTITY_PARROT_IMITATE_VEX, - ENTITY_PARROT_IMITATE_VINDICATOR, - ENTITY_PARROT_IMITATE_WITCH, - ENTITY_PARROT_IMITATE_WITHER, - ENTITY_PARROT_IMITATE_WITHER_SKELETON, - ENTITY_PARROT_IMITATE_ZOMBIE, - ENTITY_PARROT_IMITATE_ZOMBIE_VILLAGER, - ENTITY_PARROT_STEP, - ENTITY_PHANTOM_AMBIENT, - ENTITY_PHANTOM_BITE, - ENTITY_PHANTOM_DEATH, - ENTITY_PHANTOM_FLAP, - ENTITY_PHANTOM_HURT, - ENTITY_PHANTOM_SWOOP, - ENTITY_PIG_AMBIENT, - ENTITY_PIG_DEATH, - ENTITY_PIG_HURT, - ENTITY_PIG_SADDLE, - ENTITY_PIG_STEP, - ENTITY_PILLAGER_AMBIENT, - ENTITY_PILLAGER_CELEBRATE, - ENTITY_PILLAGER_DEATH, - ENTITY_PILLAGER_HURT, - BLOCK_PISTON_CONTRACT, - BLOCK_PISTON_EXTEND, - ENTITY_PLAYER_ATTACK_CRIT, - ENTITY_PLAYER_ATTACK_KNOCKBACK, - ENTITY_PLAYER_ATTACK_NODAMAGE, - ENTITY_PLAYER_ATTACK_STRONG, - ENTITY_PLAYER_ATTACK_SWEEP, - ENTITY_PLAYER_ATTACK_WEAK, - ENTITY_PLAYER_BIG_FALL, - ENTITY_PLAYER_BREATH, - ENTITY_PLAYER_BURP, - ENTITY_PLAYER_DEATH, - ENTITY_PLAYER_HURT, - ENTITY_PLAYER_HURT_DROWN, - ENTITY_PLAYER_HURT_ON_FIRE, - ENTITY_PLAYER_HURT_SWEET_BERRY_BUSH, - ENTITY_PLAYER_LEVELUP, - ENTITY_PLAYER_SMALL_FALL, - ENTITY_PLAYER_SPLASH, - ENTITY_PLAYER_SPLASH_HIGH_SPEED, - ENTITY_PLAYER_SWIM, - ENTITY_POLAR_BEAR_AMBIENT, - ENTITY_POLAR_BEAR_AMBIENT_BABY, - ENTITY_POLAR_BEAR_DEATH, - ENTITY_POLAR_BEAR_HURT, - ENTITY_POLAR_BEAR_STEP, - ENTITY_POLAR_BEAR_WARNING, - BLOCK_PORTAL_AMBIENT, - BLOCK_PORTAL_TRAVEL, - BLOCK_PORTAL_TRIGGER, - ENTITY_PUFFER_FISH_AMBIENT, - ENTITY_PUFFER_FISH_BLOW_OUT, - ENTITY_PUFFER_FISH_BLOW_UP, - ENTITY_PUFFER_FISH_DEATH, - ENTITY_PUFFER_FISH_FLOP, - ENTITY_PUFFER_FISH_HURT, - ENTITY_PUFFER_FISH_STING, - BLOCK_PUMPKIN_CARVE, - ENTITY_RABBIT_AMBIENT, - ENTITY_RABBIT_ATTACK, - ENTITY_RABBIT_DEATH, - ENTITY_RABBIT_HURT, - ENTITY_RABBIT_JUMP, - EVENT_RAID_HORN, - MUSIC_DISC_11, - MUSIC_DISC_13, - MUSIC_DISC_BLOCKS, - MUSIC_DISC_CAT, - MUSIC_DISC_CHIRP, - MUSIC_DISC_FAR, - MUSIC_DISC_MALL, - MUSIC_DISC_MELLOHI, - MUSIC_DISC_STAL, - MUSIC_DISC_STRAD, - MUSIC_DISC_WAIT, - MUSIC_DISC_WARD, - BLOCK_REDSTONE_TORCH_BURNOUT, - ENTITY_SALMON_AMBIENT, - ENTITY_SALMON_DEATH, - ENTITY_SALMON_FLOP, - ENTITY_SALMON_HURT, - BLOCK_SAND_BREAK, - BLOCK_SAND_FALL, - BLOCK_SAND_HIT, - BLOCK_SAND_PLACE, - BLOCK_SAND_STEP, - BLOCK_SCAFFOLDING_BREAK, - BLOCK_SCAFFOLDING_FALL, - BLOCK_SCAFFOLDING_HIT, - BLOCK_SCAFFOLDING_PLACE, - BLOCK_SCAFFOLDING_STEP, - ENTITY_SHEEP_AMBIENT, - ENTITY_SHEEP_DEATH, - ENTITY_SHEEP_HURT, - ENTITY_SHEEP_SHEAR, - ENTITY_SHEEP_STEP, - ITEM_SHIELD_BLOCK, - ITEM_SHIELD_BREAK, - ITEM_SHOVEL_FLATTEN, - ENTITY_SHULKER_AMBIENT, - BLOCK_SHULKER_BOX_CLOSE, - BLOCK_SHULKER_BOX_OPEN, - ENTITY_SHULKER_BULLET_HIT, - ENTITY_SHULKER_BULLET_HURT, - ENTITY_SHULKER_CLOSE, - ENTITY_SHULKER_DEATH, - ENTITY_SHULKER_HURT, - ENTITY_SHULKER_HURT_CLOSED, - ENTITY_SHULKER_OPEN, - ENTITY_SHULKER_SHOOT, - ENTITY_SHULKER_TELEPORT, - ENTITY_SILVERFISH_AMBIENT, - ENTITY_SILVERFISH_DEATH, - ENTITY_SILVERFISH_HURT, - ENTITY_SILVERFISH_STEP, - ENTITY_SKELETON_AMBIENT, - ENTITY_SKELETON_DEATH, - ENTITY_SKELETON_HORSE_AMBIENT, - ENTITY_SKELETON_HORSE_DEATH, - ENTITY_SKELETON_HORSE_HURT, - ENTITY_SKELETON_HORSE_SWIM, - ENTITY_SKELETON_HORSE_AMBIENT_WATER, - ENTITY_SKELETON_HORSE_GALLOP_WATER, - ENTITY_SKELETON_HORSE_JUMP_WATER, - ENTITY_SKELETON_HORSE_STEP_WATER, - ENTITY_SKELETON_HURT, - ENTITY_SKELETON_SHOOT, - ENTITY_SKELETON_STEP, - ENTITY_SLIME_ATTACK, - ENTITY_SLIME_DEATH, - ENTITY_SLIME_HURT, - ENTITY_SLIME_JUMP, - ENTITY_SLIME_SQUISH, - BLOCK_SLIME_BLOCK_BREAK, - BLOCK_SLIME_BLOCK_FALL, - BLOCK_SLIME_BLOCK_HIT, - BLOCK_SLIME_BLOCK_PLACE, - BLOCK_SLIME_BLOCK_STEP, - ENTITY_MAGMA_CUBE_DEATH_SMALL, - ENTITY_MAGMA_CUBE_HURT_SMALL, - ENTITY_MAGMA_CUBE_SQUISH_SMALL, - ENTITY_SLIME_DEATH_SMALL, - ENTITY_SLIME_HURT_SMALL, - ENTITY_SLIME_JUMP_SMALL, - ENTITY_SLIME_SQUISH_SMALL, - BLOCK_SMOKER_SMOKE, - ENTITY_SNOWBALL_THROW, - BLOCK_SNOW_BREAK, - BLOCK_SNOW_FALL, - ENTITY_SNOW_GOLEM_AMBIENT, - ENTITY_SNOW_GOLEM_DEATH, - ENTITY_SNOW_GOLEM_HURT, - ENTITY_SNOW_GOLEM_SHOOT, - BLOCK_SNOW_HIT, - BLOCK_SNOW_PLACE, - BLOCK_SNOW_STEP, - ENTITY_SPIDER_AMBIENT, - ENTITY_SPIDER_DEATH, - ENTITY_SPIDER_HURT, - ENTITY_SPIDER_STEP, - ENTITY_SPLASH_POTION_BREAK, - ENTITY_SPLASH_POTION_THROW, - ENTITY_SQUID_AMBIENT, - ENTITY_SQUID_DEATH, - ENTITY_SQUID_HURT, - ENTITY_SQUID_SQUIRT, - BLOCK_STONE_BREAK, - BLOCK_STONE_BUTTON_CLICK_OFF, - BLOCK_STONE_BUTTON_CLICK_ON, - BLOCK_STONE_FALL, - BLOCK_STONE_HIT, - BLOCK_STONE_PLACE, - BLOCK_STONE_PRESSURE_PLATE_CLICK_OFF, - BLOCK_STONE_PRESSURE_PLATE_CLICK_ON, - BLOCK_STONE_STEP, - ENTITY_STRAY_AMBIENT, - ENTITY_STRAY_DEATH, - ENTITY_STRAY_HURT, - ENTITY_STRAY_STEP, - BLOCK_SWEET_BERRY_BUSH_BREAK, - BLOCK_SWEET_BERRY_BUSH_PLACE, - ITEM_SWEET_BERRIES_PICK_FROM_BUSH, - ENCHANT_THORNS_HIT, - ENTITY_TNT_PRIMED, - ITEM_TOTEM_USE, - ITEM_TRIDENT_HIT, - ITEM_TRIDENT_HIT_GROUND, - ITEM_TRIDENT_RETURN, - ITEM_TRIDENT_RIPTIDE_1, - ITEM_TRIDENT_RIPTIDE_2, - ITEM_TRIDENT_RIPTIDE_3, - ITEM_TRIDENT_THROW, - ITEM_TRIDENT_THUNDER, - BLOCK_TRIPWIRE_ATTACH, - BLOCK_TRIPWIRE_CLICK_OFF, - BLOCK_TRIPWIRE_CLICK_ON, - BLOCK_TRIPWIRE_DETACH, - ENTITY_TROPICAL_FISH_AMBIENT, - ENTITY_TROPICAL_FISH_DEATH, - ENTITY_TROPICAL_FISH_FLOP, - ENTITY_TROPICAL_FISH_HURT, - ENTITY_TURTLE_AMBIENT_LAND, - ENTITY_TURTLE_DEATH, - ENTITY_TURTLE_DEATH_BABY, - ENTITY_TURTLE_EGG_BREAK, - ENTITY_TURTLE_EGG_CRACK, - ENTITY_TURTLE_EGG_HATCH, - ENTITY_TURTLE_HURT, - ENTITY_TURTLE_HURT_BABY, - ENTITY_TURTLE_LAY_EGG, - ENTITY_TURTLE_SHAMBLE, - ENTITY_TURTLE_SHAMBLE_BABY, - ENTITY_TURTLE_SWIM, - UI_BUTTON_CLICK, - UI_LOOM_SELECT_PATTERN, - UI_LOOM_TAKE_RESULT, - UI_CARTOGRAPHY_TABLE_TAKE_RESULT, - UI_STONECUTTER_TAKE_RESULT, - UI_STONECUTTER_SELECT_RECIPE, - UI_TOAST_CHALLENGE_COMPLETE, - UI_TOAST_IN, - UI_TOAST_OUT, - ENTITY_VEX_AMBIENT, - ENTITY_VEX_CHARGE, - ENTITY_VEX_DEATH, - ENTITY_VEX_HURT, - ENTITY_VILLAGER_AMBIENT, - ENTITY_VILLAGER_CELEBRATE, - ENTITY_VILLAGER_DEATH, - ENTITY_VILLAGER_HURT, - ENTITY_VILLAGER_NO, - ENTITY_VILLAGER_TRADE, - ENTITY_VILLAGER_YES, - ENTITY_VILLAGER_WORK_ARMORER, - ENTITY_VILLAGER_WORK_BUTCHER, - ENTITY_VILLAGER_WORK_CARTOGRAPHER, - ENTITY_VILLAGER_WORK_CLERIC, - ENTITY_VILLAGER_WORK_FARMER, - ENTITY_VILLAGER_WORK_FISHERMAN, - ENTITY_VILLAGER_WORK_FLETCHER, - ENTITY_VILLAGER_WORK_LEATHERWORKER, - ENTITY_VILLAGER_WORK_LIBRARIAN, - ENTITY_VILLAGER_WORK_MASON, - ENTITY_VILLAGER_WORK_SHEPHERD, - ENTITY_VILLAGER_WORK_TOOLSMITH, - ENTITY_VILLAGER_WORK_WEAPONSMITH, - ENTITY_VINDICATOR_AMBIENT, - ENTITY_VINDICATOR_CELEBRATE, - ENTITY_VINDICATOR_DEATH, - ENTITY_VINDICATOR_HURT, - BLOCK_LILY_PAD_PLACE, - ENTITY_WANDERING_TRADER_AMBIENT, - ENTITY_WANDERING_TRADER_DEATH, - ENTITY_WANDERING_TRADER_DISAPPEARED, - ENTITY_WANDERING_TRADER_DRINK_MILK, - ENTITY_WANDERING_TRADER_DRINK_POTION, - ENTITY_WANDERING_TRADER_HURT, - ENTITY_WANDERING_TRADER_NO, - ENTITY_WANDERING_TRADER_REAPPEARED, - ENTITY_WANDERING_TRADER_TRADE, - ENTITY_WANDERING_TRADER_YES, - BLOCK_WATER_AMBIENT, - WEATHER_RAIN, - WEATHER_RAIN_ABOVE, - ENTITY_WITCH_AMBIENT, - ENTITY_WITCH_CELEBRATE, - ENTITY_WITCH_DEATH, - ENTITY_WITCH_DRINK, - ENTITY_WITCH_HURT, - ENTITY_WITCH_THROW, - ENTITY_WITHER_AMBIENT, - ENTITY_WITHER_BREAK_BLOCK, - ENTITY_WITHER_DEATH, - ENTITY_WITHER_HURT, - ENTITY_WITHER_SHOOT, - ENTITY_WITHER_SKELETON_AMBIENT, - ENTITY_WITHER_SKELETON_DEATH, - ENTITY_WITHER_SKELETON_HURT, - ENTITY_WITHER_SKELETON_STEP, - ENTITY_WITHER_SPAWN, - ENTITY_WOLF_AMBIENT, - ENTITY_WOLF_DEATH, - ENTITY_WOLF_GROWL, - ENTITY_WOLF_HOWL, - ENTITY_WOLF_HURT, - ENTITY_WOLF_PANT, - ENTITY_WOLF_SHAKE, - ENTITY_WOLF_STEP, - ENTITY_WOLF_WHINE, - BLOCK_WOODEN_DOOR_CLOSE, - BLOCK_WOODEN_DOOR_OPEN, - BLOCK_WOODEN_TRAPDOOR_CLOSE, - BLOCK_WOODEN_TRAPDOOR_OPEN, - BLOCK_WOOD_BREAK, - BLOCK_WOODEN_BUTTON_CLICK_OFF, - BLOCK_WOODEN_BUTTON_CLICK_ON, - BLOCK_WOOD_FALL, - BLOCK_WOOD_HIT, - BLOCK_WOOD_PLACE, - BLOCK_WOODEN_PRESSURE_PLATE_CLICK_OFF, - BLOCK_WOODEN_PRESSURE_PLATE_CLICK_ON, - BLOCK_WOOD_STEP, - ENTITY_ZOMBIE_AMBIENT, - ENTITY_ZOMBIE_ATTACK_WOODEN_DOOR, - ENTITY_ZOMBIE_ATTACK_IRON_DOOR, - ENTITY_ZOMBIE_BREAK_WOODEN_DOOR, - ENTITY_ZOMBIE_CONVERTED_TO_DROWNED, - ENTITY_ZOMBIE_DEATH, - ENTITY_ZOMBIE_DESTROY_EGG, - ENTITY_ZOMBIE_HORSE_AMBIENT, - ENTITY_ZOMBIE_HORSE_DEATH, - ENTITY_ZOMBIE_HORSE_HURT, - ENTITY_ZOMBIE_HURT, - ENTITY_ZOMBIE_INFECT, - ENTITY_ZOMBIE_PIGMAN_AMBIENT, - ENTITY_ZOMBIE_PIGMAN_ANGRY, - ENTITY_ZOMBIE_PIGMAN_DEATH, - ENTITY_ZOMBIE_PIGMAN_HURT, - ENTITY_ZOMBIE_STEP, - ENTITY_ZOMBIE_VILLAGER_AMBIENT, - ENTITY_ZOMBIE_VILLAGER_CONVERTED, - ENTITY_ZOMBIE_VILLAGER_CURE, - ENTITY_ZOMBIE_VILLAGER_DEATH, - ENTITY_ZOMBIE_VILLAGER_HURT, - ENTITY_ZOMBIE_VILLAGER_STEP; - - private static Int2ObjectOpenHashMap map = new Int2ObjectOpenHashMap(); - - private int id; - - public static Sound fromId(int id) { - return map.get(id); - } - - public void setIdentifier(int id) { - this.id = id; - - map.put(id, this); - } - - public int getId() { - return id; - } -} diff --git a/src/main/java/net/minestom/server/stat/StatisticType.java b/src/main/java/net/minestom/server/stat/StatisticType.java deleted file mode 100644 index 47eed7955..000000000 --- a/src/main/java/net/minestom/server/stat/StatisticType.java +++ /dev/null @@ -1,96 +0,0 @@ -package net.minestom.server.stat; - -import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap; - -public enum StatisticType { - - LEAVE_GAME, - PLAY_ONE_MINUTE, - TIME_SINCE_DEATH, - TIME_SINCE_REST, - SNEAK_TIME, - WALK_ONE_CM, - CROUCH_ONE_CM, - SPRINT_ONE_CM, - WALK_ON_WATER_ONE_CM, - FALL_ONE_CM, - CLIMB_ONE_CM, - FLY_ONE_CM, - WALK_UNDER_WATER_ONE_CM, - MINECART_ONE_CM, - BOAT_ONE_CM, - PIG_ONE_CM, - HORSE_ONE_CM, - AVIATE_ONE_CM, - SWIM_ONE_CM, - JUMP, - DROP, - DAMAGE_DEALT, - DAMAGE_DEALT_ABSORBED, - DAMAGE_DEALT_RESISTED, - DAMAGE_TAKEN, - DAMAGE_BLOCKED_BY_SHIELD, - DAMAGE_ABSORBED, - DAMAGE_RESISTED, - DEATHS, - MOB_KILLS, - ANIMALS_BRED, - PLAYER_KILLS, - FISH_CAUGHT, - TALKED_TO_VILLAGER, - TRADED_WITH_VILLAGER, - EAT_CAKE_SLICE, - FILL_CAULDRON, - USE_CAULDRON, - CLEAN_ARMOR, - CLEAN_BANNER, - CLEAN_SHULKER_BOX, - INTERACT_WITH_BREWINGSTAND, - INTERACT_WITH_BEACON, - INSPECT_DROPPER, - INSPECT_HOPPER, - INSPECT_DISPENSER, - PLAY_NOTEBLOCK, - TUNE_NOTEBLOCK, - POT_FLOWER, - TRIGGER_TRAPPED_CHEST, - OPEN_ENDERCHEST, - ENCHANT_ITEM, - PLAY_RECORD, - INTERACT_WITH_FURNACE, - INTERACT_WITH_CRAFTING_TABLE, - OPEN_CHEST, - SLEEP_IN_BED, - OPEN_SHULKER_BOX, - OPEN_BARREL, - INTERACT_WITH_BLAST_FURNACE, - INTERACT_WITH_SMOKER, - INTERACT_WITH_LECTERN, - INTERACT_WITH_CAMPFIRE, - INTERACT_WITH_CARTOGRAPHY_TABLE, - INTERACT_WITH_LOOM, - INTERACT_WITH_STONECUTTER, - BELL_RING, - RAID_TRIGGER, - RAID_WIN, - INTERACT_WITH_ANVIL, - INTERACT_WITH_GRINDSTONE; - - private static Int2ObjectOpenHashMap map = new Int2ObjectOpenHashMap(); - - private int id; - - public static StatisticType fromId(int id) { - return map.get(id); - } - - public void setIdentifier(int id) { - this.id = id; - - map.put(id, this); - } - - public int getId() { - return id; - } -}