Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
SwiftSneakEnchant Class Reference
Inheritance diagram for SwiftSneakEnchant:

Public Types

enum class  Activation : int {
  Equipped = 0 , Held = 1 , Self = 2 , NumActivations = 3 ,
  Invalid = 4
}
enum class  CompatibilityID : int {
  NonConflict = 0 , Damage = 1 , Gathering = 2 , Protection = 3 ,
  FrostStrider = 4 , MendingInfinity = 5 , LoyaltyRiptide = 6
}
enum class  Frequency : int { Common = 30 , Uncommon = 10 , Rare = 3 , VeryRare = 1 }
enum class  Type : uchar {
  Protection = 0 , FireProtection = 1 , FeatherFalling = 2 , BlastProtection = 3 ,
  ProjectileProtection = 4 , Thorns = 5 , Respiration = 6 , DepthStrider = 7 ,
  AquaAffinity = 8 , Sharpness = 9 , Smite = 10 , BaneOfArthropods = 11 ,
  Knockback = 12 , FireAspect = 13 , Looting = 14 , Efficiency = 15 ,
  SilkTouch = 16 , Unbreaking = 17 , Fortune = 18 , Power = 19 ,
  Punch = 20 , Flame = 21 , Infinity = 22 , LuckOfTheSea = 23 ,
  Lure = 24 , FrostWalker = 25 , Mending = 26 , CurseOfBinding = 27 ,
  CurseOfVanishing = 28 , Impaling = 29 , Riptide = 30 , Loyalty = 31 ,
  Channeling = 32 , Multishot = 33 , Piercing = 34 , QuickCharge = 35 ,
  SoulSpeed = 36 , SwiftSneak = 37 , WindBurst = 38 , Density = 39 ,
  Breach = 40 , Lunge = 41 , NumEnchantments = 42 , InvalidEnchantment = 43
}
enum class  VillagerTrading : int { NotAvailable = 0 , Available = 1 }
using Slot = ::SharedTypes::EnchantSlot

Public Member Functions

virtual int getMinCost (int level) const
virtual int getMaxCost (int level) const
virtual int getMaxLevel () const
virtual bool isTreasureOnly () const
virtual bool isDiscoverable () const
MCAPI int $getMinCost (int level) const
MCAPI int $getMaxCost (int level) const
MCFOLD int $getMaxLevel () const
MCAPI bool $isTreasureOnly () const
MCAPI bool $isDiscoverable () const
virtual bool isCompatibleWith (::Enchant::Type type) const
virtual int getMinLevel () const
virtual int getDamageProtection (int level, ::ActorDamageSource const &source) const
virtual float getAfterBreachArmorFraction (int, float) const
virtual float getDamageBonus (int, ::Actor const &, ::Actor const &) const
virtual void doPostAttack (::Actor &attacker, ::Actor &victim, int level) const
virtual void doPostPiercingAttack (::Actor &attacker, int enchantLevel) const
virtual void doPostItemHurtActor (::Actor &attacker, ::Actor &victim, int enchantLevel) const
virtual void doPostHurt (::ItemInstance &item, ::Actor &victim, ::Actor &attacker, int level) const
virtual bool isMeleeDamageEnchant () const
virtual bool isProtectionEnchant () const
virtual bool _isValidEnchantmentTypeForCategory (::Enchant::Type type) const
MCAPI::std::string getDescriptionId () const
MCAPI void * $ctor (::Enchant::Type type, ::Enchant::Frequency frequency, ::std::string_view const stringId, ::std::string_view const scriptStringId, ::std::string_view const description, ::Enchant::VillagerTrading isAvailableForVillagerTraining, int primarySlots, int secondarySlots)
MCAPI bool $isCompatibleWith (::Enchant::Type type) const
MCFOLD int $getMinLevel () const
MCAPI int $getDamageProtection (int level, ::ActorDamageSource const &source) const
MCAPI float $getAfterBreachArmorFraction (int, float) const
MCFOLD float $getDamageBonus (int, ::Actor const &, ::Actor const &) const
MCAPI void $doPostAttack (::Actor &attacker, ::Actor &victim, int level) const
MCAPI void $doPostPiercingAttack (::Actor &attacker, int enchantLevel) const
MCAPI void $doPostItemHurtActor (::Actor &attacker, ::Actor &victim, int enchantLevel) const
MCAPI void $doPostHurt (::ItemInstance &item, ::Actor &victim, ::Actor &attacker, int level) const
MCAPI bool $isMeleeDamageEnchant () const
MCAPI bool $isProtectionEnchant () const
MCAPI bool $_isValidEnchantmentTypeForCategory (::Enchant::Type type) const

Static Public Member Functions

static MCAPI ::SharedTypes::EnchantSlot enchantSlotFromString (::std::string_view str)
static MCAPI ::Enchant const * getEnchantFromName (::HashedString const &name)
static MCAPI ::Enchant::Type getEnchantTypeFromName (::HashedString const &name)
static MCAPI void initEnchants (::BaseGameVersion const &baseGameVersion, ::Experiments const &experiments)
static MCAPI ::std::string stringFromEnchantSlot (::SharedTypes::EnchantSlot const &enchantSlot)
static MCAPI ::std::unordered_map<::HashedString, ::Enchant::Type > & mEnchantNameToType ()
static MCAPI ::std::unordered_map< ::SharedTypes::EnchantSlot, ::std::string, ::EnchantSlotEnumHasher, ::std::equal_to<::SharedTypes::EnchantSlot > > & mEnchantSlotTypeEnumToStringMap ()
static MCAPI ::std::unordered_map<::std::string, ::SharedTypes::EnchantSlot > & mEnchantSlotTypeNameToEnumMap ()
static MCAPI ::std::vector<::std::unique_ptr<::Enchant > > & mEnchants ()

Public Attributes

::ll::TypedStorage< 1, 1, ::Enchant::Type const > mEnchantType
::ll::TypedStorage< 4, 4, ::Enchant::Frequency const > mFrequency
::ll::TypedStorage< 1, 1, bool const > mIsAvailableInVillagerTrading
::ll::TypedStorage< 4, 4, int const > mPrimarySlots
::ll::TypedStorage< 4, 4, int const > mSecondarySlots
::ll::TypedStorage< 4, 4, int const > mCompatibility
::ll::TypedStorage< 8, 32, ::std::string const > mDescription
::ll::TypedStorage< 8, 48, ::HashedString const > mStringId
::ll::TypedStorage< 8, 48, ::HashedString const > mScriptStringId
::ll::TypedStorage< 1, 1, bool > mIsDisabled

Member Function Documentation

◆ getMinCost()

virtual int SwiftSneakEnchant::getMinCost ( int level) const
virtual

Reimplemented from Enchant.

◆ getMaxCost()

virtual int SwiftSneakEnchant::getMaxCost ( int level) const
virtual

Reimplemented from Enchant.

◆ getMaxLevel()

virtual int SwiftSneakEnchant::getMaxLevel ( ) const
virtual

Reimplemented from Enchant.

◆ isTreasureOnly()

virtual bool SwiftSneakEnchant::isTreasureOnly ( ) const
virtual

Reimplemented from Enchant.

◆ isDiscoverable()

virtual bool SwiftSneakEnchant::isDiscoverable ( ) const
virtual

Reimplemented from Enchant.

◆ $getMinCost()

MCAPI int SwiftSneakEnchant::$getMinCost ( int level) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $getMaxCost()

MCAPI int SwiftSneakEnchant::$getMaxCost ( int level) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $isTreasureOnly()

MCAPI bool SwiftSneakEnchant::$isTreasureOnly ( ) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $isDiscoverable()

MCAPI bool SwiftSneakEnchant::$isDiscoverable ( ) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ getDescriptionId()

MCAPI::std::string Enchant::getDescriptionId ( ) const
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ enchantSlotFromString()

MCAPI ::SharedTypes::EnchantSlot Enchant::enchantSlotFromString ( ::std::string_view str)
staticinherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ initEnchants()

MCAPI void Enchant::initEnchants ( ::BaseGameVersion const & baseGameVersion,
::Experiments const & experiments )
staticinherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ stringFromEnchantSlot()

MCAPI ::std::string Enchant::stringFromEnchantSlot ( ::SharedTypes::EnchantSlot const & enchantSlot)
staticinherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ mEnchantSlotTypeEnumToStringMap()

MCAPI ::std::unordered_map< ::SharedTypes::EnchantSlot, ::std::string, ::EnchantSlotEnumHasher, ::std::equal_to<::SharedTypes::EnchantSlot > > & Enchant::mEnchantSlotTypeEnumToStringMap ( )
staticinherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ mEnchantSlotTypeNameToEnumMap()

MCAPI ::std::unordered_map<::std::string, ::SharedTypes::EnchantSlot > & Enchant::mEnchantSlotTypeNameToEnumMap ( )
staticinherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $ctor()

MCAPI void * Enchant::$ctor ( ::Enchant::Type type,
::Enchant::Frequency frequency,
::std::string_view const stringId,
::std::string_view const scriptStringId,
::std::string_view const description,
::Enchant::VillagerTrading isAvailableForVillagerTraining,
int primarySlots,
int secondarySlots )
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $getDamageProtection()

MCAPI int Enchant::$getDamageProtection ( int level,
::ActorDamageSource const & source ) const
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $getAfterBreachArmorFraction()

MCAPI float Enchant::$getAfterBreachArmorFraction ( int ,
float  ) const
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $doPostAttack()

MCAPI void Enchant::$doPostAttack ( ::Actor & attacker,
::Actor & victim,
int level ) const
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $doPostPiercingAttack()

MCAPI void Enchant::$doPostPiercingAttack ( ::Actor & attacker,
int enchantLevel ) const
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $doPostItemHurtActor()

MCAPI void Enchant::$doPostItemHurtActor ( ::Actor & attacker,
::Actor & victim,
int enchantLevel ) const
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $doPostHurt()

MCAPI void Enchant::$doPostHurt ( ::ItemInstance & item,
::Actor & victim,
::Actor & attacker,
int level ) const
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $isMeleeDamageEnchant()

MCAPI bool Enchant::$isMeleeDamageEnchant ( ) const
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $isProtectionEnchant()

MCAPI bool Enchant::$isProtectionEnchant ( ) const
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $_isValidEnchantmentTypeForCategory()

MCAPI bool Enchant::$_isValidEnchantmentTypeForCategory ( ::Enchant::Type type) const
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

The documentation for this class was generated from the following file: