LeviLamina
Loading...
Searching...
No Matches
TridentChannelingEnchant Class Reference
Inheritance diagram for TridentChannelingEnchant:

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 isCompatibleWith (::Enchant::Type type) const
MCFOLD int $getMinCost (int level) const
MCFOLD int $getMaxCost (int level) const
MCFOLD int $getMaxLevel () const
MCAPI bool $isCompatibleWith (::Enchant::Type type) const
virtual int getMinLevel () const
virtual int getDamageProtection (int level, ::ActorDamageSource const &source) const
virtual float getAfterBreachArmorFraction (int level, float armorFraction) 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 &, ::Actor &, int) const
virtual void doPostHurt (::ItemInstance &item, ::Actor &victim, ::Actor &attacker, int level) const
virtual bool isMeleeDamageEnchant () const
virtual bool isProtectionEnchant () const
virtual bool isTreasureOnly () const
virtual bool isDiscoverable () const
virtual bool _isValidEnchantmentTypeForCategory (::Enchant::Type type) const
MCAPI::std::string getDescriptionId () const
MCFOLD::Enchant::Type getEnchantType () const
MCFOLD::HashedString const & getStringId () const
MCAPI bool isAvailable () const
MCFOLD bool isDisabled () const
MCAPI void * $ctor (::Enchant::Type type, ::Enchant::Frequency frequency, ::std::string_view stringId, ::std::string_view scriptStringId, ::std::string_view description, ::Enchant::VillagerTrading isAvailableForVillagerTraining, int primarySlots, int secondarySlots)
MCAPI void $dtor ()
MCFOLD int $getMinLevel () const
MCFOLD int $getDamageProtection (int level, ::ActorDamageSource const &source) const
MCFOLD float $getAfterBreachArmorFraction (int level, float armorFraction) const
MCFOLD float $getDamageBonus (int, ::Actor const &, ::Actor const &) const
MCFOLD void $doPostAttack (::Actor &attacker, ::Actor &victim, int level) const
MCFOLD void $doPostPiercingAttack (::Actor &attacker, int enchantLevel) const
MCFOLD void $doPostItemHurtActor (::Actor &, ::Actor &, int) const
MCFOLD void $doPostHurt (::ItemInstance &item, ::Actor &victim, ::Actor &attacker, int level) const
MCFOLD bool $isMeleeDamageEnchant () const
MCFOLD bool $isProtectionEnchant () const
MCFOLD bool $isTreasureOnly () const
MCFOLD bool $isDiscoverable () const
MCFOLD bool $_isValidEnchantmentTypeForCategory (::Enchant::Type type) const

Static Public Member Functions

static MCAPI void ** $vftable ()
static MCAPI ::SharedTypes::EnchantSlot enchantSlotFromString (::std::string_view str)
static MCAPI ::Enchant const * getEnchant (::Enchant::Type const &type)
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 void shutdownEnchants ()
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 TridentChannelingEnchant::getMinCost ( int level) const
virtual

Reimplemented from Enchant.

◆ getMaxCost()

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

Reimplemented from Enchant.

◆ getMaxLevel()

virtual int TridentChannelingEnchant::getMaxLevel ( ) const
virtual

Reimplemented from Enchant.

◆ isCompatibleWith()

virtual bool TridentChannelingEnchant::isCompatibleWith ( ::Enchant::Type type) const
virtual

Reimplemented from Enchant.


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