LiteLoaderBDS-1.16.40/LiteLoader/Header/MC/EnchantUtils.hpp
2022-09-21 19:47:03 +08:00

59 lines
2.9 KiB
C++

// This Header is auto generated by BDSLiteLoader Toolchain
#pragma once
#define AUTO_GENERATED
#include "../Global.h"
#include "Enchant.hpp"
#define BEFORE_EXTRA
#undef BEFORE_EXTRA
class EnchantUtils {
#define AFTER_EXTRA
#undef AFTER_EXTRA
#ifndef DISABLE_CONSTRUCTOR_PREVENTION_ENCHANTUTILS
public:
class EnchantUtils& operator=(class EnchantUtils const &) = delete;
EnchantUtils(class EnchantUtils const &) = delete;
EnchantUtils() = delete;
#endif
public:
#ifdef ENABLE_VIRTUAL_FAKESYMBOL_ENCHANTUTILS
#endif
MCAPI static int const PROTECTIONFACTOR_SECONDARYCAP;
MCAPI static void appendEnchantToFormattedText(enum Enchant::Type, std::string const &, std::string &);
MCAPI static bool applyEnchant(class ItemStackBase &, class EnchantmentInstance const &, bool);
MCAPI static int applyEnchant(class ItemStackBase &, class ItemEnchants const &, bool);
MCAPI static struct EnchantResult canEnchant(class ItemStackBase const &, enum Enchant::Type, int, bool);
MCAPI static int determineActivation(enum Enchant::Type);
MCAPI static void doPostDamageEffects(class Actor &, class Actor &);
MCAPI static void doPostHurtEffects(class Mob &, class Mob &);
MCAPI static class ItemInstance generateEnchantedBook(class EnchantmentInstance const &);
MCAPI static std::vector<class EnchantmentInstance> getAvailableEnchantmentResults(class Item const *, int, bool);
MCAPI static int getBestEnchantLevel(enum Enchant::Type, class Mob const &, enum EquipmentFilter);
MCAPI static std::vector<class Vec3> getBookCasePositions(class BlockSource &, class Vec3 const &);
MCAPI static float getDamageReduction(class ActorDamageSource const &, class Mob const &);
MCAPI static std::vector<int> getEnchantCosts(class ItemStackBase const &, int);
MCAPI static int getEnchantLevel(enum Enchant::Type, class ItemStackBase const &);
MCAPI static std::string getEnchantNameAndLevel(enum Enchant::Type, int);
MCAPI static std::vector<class Vec3> getEnchantingTablePositions(class BlockSource &, class Vec3 const &);
MCAPI static std::vector<int> getLegalEnchants(class Item const *);
MCAPI static int getLootableRandomEnchantIndex(class Random &);
MCAPI static int getMeleeDamageBonus(class Actor const &, class Actor &);
MCAPI static class ItemStack const & getRandomItemWith(enum Enchant::Type, class Mob const &, enum EquipmentFilter);
MCAPI static class ItemStack const & getRandomItemWithMending(class Mob const &);
MCAPI static bool hasEnchant(enum Enchant::Type, class ItemStackBase const &);
MCAPI static void randomlyEnchant(class ItemStack &, int, int, bool);
MCAPI static void randomlyEnchant(class ItemInstance &, int, int, bool);
MCAPI static class ItemEnchants selectEnchantments(class Item const *, int, int, bool);
//private:
MCAPI static void _convertBookCheck(class ItemStackBase &);
private:
MCAPI static std::vector<std::string> mEnchantmentNames;
};