diff --git a/src/main/java/com/mohistmc/banner/fabric/BukkitRegistry.java b/src/main/java/com/mohistmc/banner/fabric/BukkitRegistry.java index 21f909c49..34696583e 100644 --- a/src/main/java/com/mohistmc/banner/fabric/BukkitRegistry.java +++ b/src/main/java/com/mohistmc/banner/fabric/BukkitRegistry.java @@ -27,6 +27,7 @@ import net.minecraft.world.effect.MobEffect; import net.minecraft.world.effect.MobEffectInstance; import net.minecraft.world.entity.MobCategory; +import net.minecraft.world.entity.Pose; import net.minecraft.world.entity.boss.enderdragon.phases.EnderDragonPhase; import net.minecraft.world.entity.npc.VillagerProfession; import net.minecraft.world.item.Item; @@ -99,6 +100,7 @@ public static void registerAll(DedicatedServer console) { loadEntities(); loadVillagerProfessions(); loadBiomes(console); + loadPoses(); loadArts(); loadStats(); loadSpawnCategory(); @@ -230,6 +232,18 @@ private static void loadStats() { } } + private static void loadPoses() { + var newTypes = new ArrayList(); + for (Pose pose : Pose.values()) { + if (pose.ordinal() > 14) { + org.bukkit.entity.Pose bukkit = MohistDynamEnum.addEnum(org.bukkit.entity.Pose.class, pose.name()); + newTypes.add(bukkit); + BannerServer.LOGGER.debug("Registered mod Pose as Poses(Bukkit) {}", bukkit); + } + } + BannerServer.LOGGER.info("Registered {} new Poses", newTypes.size()); + } + private static void loadArts() { int i = Art.values().length; var registry = BuiltInRegistries.PAINTING_VARIANT;