diff --git a/plugin/src/main/java/com/denizenscript/denizen/objects/properties/entity/EntityArmorPose.java b/plugin/src/main/java/com/denizenscript/denizen/objects/properties/entity/EntityArmorPose.java index 4167203ba7..0acd3fb333 100644 --- a/plugin/src/main/java/com/denizenscript/denizen/objects/properties/entity/EntityArmorPose.java +++ b/plugin/src/main/java/com/denizenscript/denizen/objects/properties/entity/EntityArmorPose.java @@ -89,11 +89,29 @@ public static void registerTags() { return entity.getPoseMap(); }); + // <--[tag] + // @attribute + // @returns ListTag + // @mechanism EntityTag.armor_pose + // @Deprecated Use 'armor_pose_map' + // @group attributes + // @description + // Deprecated in favor of <@link tag EntityTag.armor_pose_map> + // --> PropertyParser.registerTag(ListTag.class, "armor_pose_list", (attribute, entity) -> { Deprecations.entityArmorPose.warn(attribute.context); return entity.getPoseList(); }); + // <--[tag] + // @attribute + // @returns LocationTag + // @mechanism EntityTag.armor_pose + // @Deprecated Use 'armor_pose_map' + // @group attributes + // @description + // Deprecated in favor of <@link tag EntityTag.armor_pose_map> + // --> PropertyParser.registerTag(LocationTag.class, "armor_pose", (attribute, entity) -> { Deprecations.entityArmorPose.warn(attribute.context); if (!attribute.hasContext(1)) { diff --git a/plugin/src/main/java/com/denizenscript/denizen/objects/properties/item/ItemEnchantments.java b/plugin/src/main/java/com/denizenscript/denizen/objects/properties/item/ItemEnchantments.java index 2138afff6b..d6f6eb9864 100644 --- a/plugin/src/main/java/com/denizenscript/denizen/objects/properties/item/ItemEnchantments.java +++ b/plugin/src/main/java/com/denizenscript/denizen/objects/properties/item/ItemEnchantments.java @@ -119,6 +119,15 @@ public ObjectTag getObjectAttribute(Attribute attribute) { return enchants.getObjectAttribute(attribute.fulfill(1)); } + // <--[tag] + // @attribute + // @returns ListTag + // @mechanism ItemTag.enchantments + // @group properties + // @Deprecated Use 'enchantment_types' or 'enchantment_map' + // @description + // Deprecated in favor of <@link tag ItemTag.enchantment_types> or <@link tag ItemTag.enchantment_map> + // --> if (attribute.startsWith("enchantments")) { Deprecations.itemEnchantmentsLegacy.warn(attribute.context); Set> enchantments = getEnchantments();