Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
ItemEnchants Class Reference

Public Member Functions

MCAPI void _fromList (::ListTag const &tag)
MCAPI ::std::unique_ptr<::ListTag > _toList () const
MCAPI int addEnchants (::ItemEnchants const &enchants, bool allowNonVanilla)
MCAPI::EnchantResult canEnchant (::EnchantmentInstance enchant, bool allowNonVanilla)
MCAPI ::std::vector<::EnchantmentInstance > getAllEnchants () const
MCAPI ::std::array<::std::vector<::EnchantmentInstance >, 3 > getEnchantInstances () const
MCAPI ::std::vector<::std::string > getEnchantNames () const
MCAPI int getTotalValue (bool bookModifier) const
MCAPI bool operator== (::ItemEnchants const &rhs) const
MCAPI void setEnchantInstances (::std::array<::std::vector<::EnchantmentInstance >, 3 > enchants)

Public Attributes

::ll::TypedStorage< 4, 4, int > mSlot
::ll::TypedStorage< 8, 72, ::std::array<::std::vector<::EnchantmentInstance >, 3 > > mItemEnchants

Member Function Documentation

◆ _fromList()

MCAPI void ItemEnchants::_fromList ( ::ListTag const & tag)
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.

◆ _toList()

MCAPI ::std::unique_ptr<::ListTag > ItemEnchants::_toList ( ) 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.

◆ getTotalValue()

MCAPI int ItemEnchants::getTotalValue ( bool bookModifier) 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.

◆ operator==()

MCAPI bool ItemEnchants::operator== ( ::ItemEnchants const & rhs) 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.

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