32 MCAPI
static void appendEnchantToFormattedText(
34 ::std::string_view enchantName,
38 MCAPI
static bool applyEnchant(
::ItemStackBase& out, ::Enchant::Type type,
int level,
bool allowNonVanilla);
43 calculateAfterBreachArmorFraction(
::ActorUniqueID const& attackerID,
::Mob const& target,
float armorFraction);
48 MCAPI
static void doPostDamageEffects(
::Actor& victim,
::Actor& attacker);
50 MCAPI
static void doPostHurtEffects(
::Mob& victim,
::Mob& attacker);
57 MCAPI static ::std::vector<::std::pair<::EnchantmentInstance, int>>
58 getAvailableEnchantmentResults(
::Item const* item,
int value,
bool treasure);
60 MCAPI static ::std::vector<::Vec3> getBookCasePositions(
::BlockSource& source,
::Vec3 const& pos);
62 MCAPI
static void getCurses(
::ItemStackBase const& item, ::std::vector<::EnchantmentInstance>& outputCurses);
66 MCAPI static ::std::vector<int> getEnchantCosts(
::ItemStackBase const& itemInst,
int bookcaseCount);
68 MCAPI
static int getEnchantLevel(::Enchant::Type enchantType,
::ItemStackBase const& stack);
70 MCAPI static ::std::string getEnchantNameAndLevel(::Enchant::Type
id,
int level);
72 MCAPI static ::std::vector<::Vec3> getEnchantingTablePositions(
::BlockSource& source,
::Vec3 const& pos);
74 MCAPI static ::std::string getLevelString(
int level);
76 MCAPI
static float getMeleeDamageBonus(
::Actor const& victim,
::Actor& attacker);
78 MCAPI static ::ItemStack
const& getRandomDamagedItemWithMending(
::Mob const& equipped);
80 MCAPI static ::ItemStack
const&
81 getRandomItemWith(::Enchant::Type type,
::Mob const& equipped, ::EquipmentFilter filter);
83 MCAPI static ::std::string getRandomName();
85 MCAPI
static bool hasEnchant(::Enchant::Type enchantType,
::ItemStackBase const& item);
87 MCAPI static ::ItemEnchants selectEnchantments(
::Item const* item,
int enchantCost,
int valueBuff,
bool treasure);
93 MCAPI
static int const& MAX_EXP_REPAIR_COST();
95 MCAPI
static int const& PROTECTIONFACTOR_SECONDARYCAP();
97 MCAPI static ::std::vector<::std::string>& mEnchantmentNames();