feat: add missing metadata converters for entities
``` - Implemented converters for ALLAY, CREAKING, ENDER_PEARL, EVOKER_FANGS, GHAST, HAPPY_GHAST, ITEM, MOOSHROOM, PHANTOM, POTION, SNOWBALL, and SQUID. - Verified and updated converters for COW, and added TODO notes for correctness checks on certain entities. ```
This commit is contained in:
parent
d69eeb3932
commit
3d803fd4d7
1 changed files with 14 additions and 8 deletions
|
@ -49,9 +49,9 @@ final class MetaConverterRegistry {
|
|||
MetaConverterRegistry() {
|
||||
put(ABSTRACT_WIND_CHARGE, SmallFireballMeta.class, SmallFireballMeta::new); // TODO: Verify correctness
|
||||
put(AREA_EFFECT_CLOUD, AreaEffectCloudMeta.class, AreaEffectCloudMeta::new);
|
||||
put(ALLAY, LivingEntityMeta.class, LivingEntityMeta::new); // TODO: Implement
|
||||
put(ARMADILLO, ArmadilloMeta.class, ArmadilloMeta::new); // TODO: Verify correctness
|
||||
put(ARMOR_STAND, ArmorStandMeta.class, ArmorStandMeta::new);
|
||||
put(ALLAY, LivingEntityMeta.class, LivingEntityMeta::new); // TODO: Implement
|
||||
put(ARROW, ArrowMeta.class, ArrowMeta::new);
|
||||
put(AXOLOTL, AxolotlMeta.class, AxolotlMeta::new);
|
||||
put(BAT, BatMeta.class, BatMeta::new);
|
||||
|
@ -68,8 +68,9 @@ final class MetaConverterRegistry {
|
|||
put(CHEST_MINECART, ChestMinecartMeta.class, ChestMinecartMeta::new);
|
||||
put(CHICKEN, ChickenMeta.class, ChickenMeta::new);
|
||||
put(COD, CodMeta.class, CodMeta::new);
|
||||
put(COW, CowMeta.class, CowMeta::new);
|
||||
put(COMMAND_BLOCK_MINECART, CommandBlockMinecartMeta.class, CommandBlockMinecartMeta::new);
|
||||
put(COW, CowMeta.class, CowMeta::new);
|
||||
put(CREAKING, LivingEntityMeta.class, LivingEntityMeta::new); // TODO: Implement
|
||||
put(CREEPER, CreeperMeta.class, CreeperMeta::new);
|
||||
put(DOLPHIN, DolphinMeta.class, DolphinMeta::new);
|
||||
put(DONKEY, DonkeyMeta.class, DonkeyMeta::new);
|
||||
|
@ -79,11 +80,12 @@ final class MetaConverterRegistry {
|
|||
put(ELDER_GUARDIAN, ElderGuardianMeta.class, ElderGuardianMeta::new);
|
||||
put(END_CRYSTAL, EndCrystalMeta.class, EndCrystalMeta::new);
|
||||
put(ENDER_DRAGON, EnderDragonMeta.class, EnderDragonMeta::new);
|
||||
put(ENDER_PEARL, ThrownEnderPearlMeta.class, ThrownEnderPearlMeta::new);
|
||||
put(ENDERMAN, EndermanMeta.class, EndermanMeta::new);
|
||||
put(ENDERMITE, EndermiteMeta.class, EndermiteMeta::new);
|
||||
put(EVOKER, EvokerMeta.class, EvokerMeta::new);
|
||||
put(EYE_OF_ENDER, EyeOfEnderMeta.class, EyeOfEnderMeta::new);
|
||||
put(EVOKER_FANGS, EvokerFangsMeta.class, EvokerFangsMeta::new);
|
||||
put(EYE_OF_ENDER, EyeOfEnderMeta.class, EyeOfEnderMeta::new);
|
||||
put(FALLING_BLOCK, FallingBlockMeta.class, FallingBlockMeta::new);
|
||||
put(FIREBALL, LargeFireballMeta.class, LargeFireballMeta::new); // TODO: Verify correctness
|
||||
put(FIREWORK_ROCKET, FireworkRocketMeta.class, FireworkRocketMeta::new);
|
||||
|
@ -91,11 +93,13 @@ final class MetaConverterRegistry {
|
|||
put(FOX, FoxMeta.class, FoxMeta::new);
|
||||
put(FROG, FrogMeta.class, FrogMeta::new);
|
||||
put(FURNACE_MINECART, FurnaceMinecartMeta.class, FurnaceMinecartMeta::new);
|
||||
put(GHAST, GhastMeta.class, GhastMeta::new);
|
||||
put(GIANT, GiantMeta.class, GiantMeta::new);
|
||||
put(GLOW_ITEM_FRAME, GlowItemFrameMeta.class, GlowItemFrameMeta::new);
|
||||
put(GLOW_SQUID, GlowSquidMeta.class, GlowSquidMeta::new);
|
||||
put(GOAT, GoatMeta.class, GoatMeta::new);
|
||||
put(GUARDIAN, GuardianMeta.class, GuardianMeta::new);
|
||||
put(HAPPY_GHAST, GhastMeta.class, GhastMeta::new); // TODO: Implement
|
||||
put(HOGLIN, HoglinMeta.class, HoglinMeta::new);
|
||||
put(HOPPER_MINECART, FurnaceMinecartMeta.class, FurnaceMinecartMeta::new);
|
||||
put(HORSE, HorseMeta.class, HorseMeta::new);
|
||||
|
@ -103,34 +107,35 @@ final class MetaConverterRegistry {
|
|||
put(ILLUSIONER, IllusionerMeta.class, IllusionerMeta::new);
|
||||
put(INTERACTION, InteractionMeta.class, InteractionMeta::new);
|
||||
put(IRON_GOLEM, IronGolemMeta.class, IronGolemMeta::new);
|
||||
put(ITEM, ItemEntityMeta.class, ItemEntityMeta::new);
|
||||
put(ITEM_DISPLAY, ItemDisplayMeta.class, ItemDisplayMeta::new);
|
||||
put(ITEM_FRAME, ItemFrameMeta.class, ItemFrameMeta::new);
|
||||
put(ITEM, ItemEntityMeta.class, ItemEntityMeta::new);
|
||||
put(LEASH_KNOT, LeashKnotMeta.class, LeashKnotMeta::new);
|
||||
put(LIGHTNING_BOLT, LightningBoltMeta.class, LightningBoltMeta::new);
|
||||
put(LLAMA, LlamaMeta.class, LlamaMeta::new);
|
||||
put(LLAMA_SPIT, LlamaSpitMeta.class, LlamaSpitMeta::new);
|
||||
put(MAGMA_CUBE, MagmaCubeMeta.class, MagmaCubeMeta::new);
|
||||
put(MARKER, MarkerMeta.class, MarkerMeta::new);
|
||||
put(MOOSHROOM, MooshroomMeta.class, MooshroomMeta::new);
|
||||
put(MULE, MuleMeta.class, MuleMeta::new);
|
||||
put(OCELOT, OcelotMeta.class, OcelotMeta::new);
|
||||
put(PAINTING, PaintingMeta.class, PaintingMeta::new);
|
||||
put(PANDA, PandaMeta.class, PandaMeta::new);
|
||||
put(POTION, ThrownPotionMeta.class, ThrownPotionMeta::new);
|
||||
put(PARROT, ParrotMeta.class, ParrotMeta::new);
|
||||
put(PHANTOM, PhantomMeta.class, PhantomMeta::new);
|
||||
put(PIG, PigMeta.class, PigMeta::new);
|
||||
put(PIGLIN, PiglinMeta.class, PiglinMeta::new);
|
||||
put(PIGLIN_BRUTE, PiglinBruteMeta.class, PiglinBruteMeta::new);
|
||||
put(PILLAGER, PillagerMeta.class, PillagerMeta::new);
|
||||
put(PLAYER, PlayerMeta.class, PlayerMeta::new);
|
||||
put(POLAR_BEAR, PolarBearMeta.class, PolarBearMeta::new);
|
||||
put(POTION, ThrownPotionMeta.class, ThrownPotionMeta::new);
|
||||
put(PRIMED_TNT, PrimedTntMeta.class, PrimedTntMeta::new);
|
||||
put(PUFFERFISH, PufferFishMeta.class, PufferFishMeta::new);
|
||||
put(RABBIT, RabbitMeta.class, RabbitMeta::new);
|
||||
put(RAVAGER, RavagerMeta.class, RavagerMeta::new);
|
||||
put(SALMON, SalmonMeta.class, SalmonMeta::new);
|
||||
put(SHEEP, SheepMeta.class, SheepMeta::new);
|
||||
put(SNOWBALL, SnowballMeta.class, SnowballMeta::new);
|
||||
put(SHULKER, ShulkerMeta.class, ShulkerMeta::new);
|
||||
put(SHULKER_BULLET, ShulkerBulletMeta.class, ShulkerBulletMeta::new);
|
||||
put(SILVERFISH, SilverfishMeta.class, SilverfishMeta::new);
|
||||
|
@ -140,14 +145,15 @@ final class MetaConverterRegistry {
|
|||
put(SMALL_FIREBALL, SmallFireballMeta.class, SmallFireballMeta::new);
|
||||
put(SNIFFER, SnifferMeta.class, SnifferMeta::new);
|
||||
put(SNOW_GOLEM, SnowGolemMeta.class, SnowGolemMeta::new);
|
||||
put(SNOWBALL, SnowballMeta.class, SnowballMeta::new);
|
||||
put(SPAWNER_MINECART, SpawnerMinecartMeta.class, SpawnerMinecartMeta::new);
|
||||
put(SPIDER, SpiderMeta.class, SpiderMeta::new);
|
||||
put(SQUID, SquidMeta.class, SquidMeta::new);
|
||||
put(STRAY, StrayMeta.class, StrayMeta::new);
|
||||
put(STRIDER, StriderMeta.class, StriderMeta::new);
|
||||
put(TADPOLE, LivingEntityMeta.class, LivingEntityMeta::new); // TODO: Implement
|
||||
put(TEXT_DISPLAY, TextDisplayMeta.class, TextDisplayMeta::new);
|
||||
put(THROWN_EXP_BOTTLE, ThrownExpBottleMeta.class, ThrownExpBottleMeta::new);
|
||||
put(ENDER_PEARL, ThrownEnderPearlMeta.class, ThrownEnderPearlMeta::new);
|
||||
put(TNT, TntMeta.class, TntMeta::new);
|
||||
put(TNT_MINECART, TntMinecartMeta.class, TntMinecartMeta::new);
|
||||
put(TRADER_LLAMA, TraderLlamaMeta.class, TraderLlamaMeta::new);
|
||||
|
@ -185,4 +191,4 @@ final class MetaConverterRegistry {
|
|||
return converters.getOrDefault(entityType, EntityMeta::new);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue