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

Public Member Functions

 ItemContext (ItemContext const &)
MCAPI ItemContext (::ItemStack const &item, int slot)
MCAPI ItemContext (::BlockSource &region, ::BlockPos const &containerPos, int slot)
MCAPI void _setItem (::ItemStack const &item)
MCAPI::Container * _tryGetContainerFromEntity () const
MCAPI::Container * _tryGetContainerFromItem () const
MCAPI bool clearAllDynamicProperties (::std::string const &collection)
MCAPI ::std::optional< int > getAmount () const
MCAPI ::std::optional<::std::vector<::std::string > > getCanDestroy () const
MCAPI ::std::optional<::std::vector<::std::string > > getCanPlaceOn () const
MCAPI ::std::optional<::std::variant< double, float, bool, ::std::string, ::Vec3 > > getDynamicProperty (::std::string const &collection, ::std::string const &key) const
MCAPI ::std::optional<::std::vector<::std::string > > getDynamicPropertyIds (::std::string const &collection) const
MCAPI ::std::optional< uint64 > getDynamicPropertyTotalByteCount (::std::string const &collection) const
MCAPI ::std::optional<::std::string > getId () const
MCAPI ::std::optional<::ItemStack > getItem () const
MCAPI ::std::optional< bool > getKeepOnDeath () const
MCAPI ::std::optional<::ItemLockMode > getLockMode () const
MCAPI ::std::optional<::std::vector<::std::string > > getLore () const
MCAPI ::std::optional< int > getMaxAmount () const
MCAPI ::std::optional<::std::string > getNameTag () const
MCAPI ::std::optional<::std::vector<::ItemTag > > getTags () const
MCAPI ::std::optional< bool > hasItem () const
MCAPI ::std::optional< bool > hasTag (::ItemTag const &tag) const
MCAPI ::std::optional< bool > isStackable () const
MCAPI ::std::optional< bool > isStackableWith (::ItemStackBase const &other) const
MCAPI bool isValid () const
MCAPI::ItemContext & operator= (::ItemContext const &)
MCAPI bool setAmount (int amount)
MCAPI ::std::optional< bool > setCanDestroy (::std::vector<::std::string > const &blockIdentifiers)
MCAPI ::std::optional< bool > setCanPlaceOn (::std::vector<::std::string > const &blockIdentifiers)
MCAPI bool setDynamicProperty (::std::string const &collection, ::std::string const &key, ::std::optional<::std::variant< double, float, bool, ::std::string, ::Vec3 > > const &optionalValue)
MCAPI bool setKeepOnDeath (bool value)
MCAPI bool setLockMode (::ItemLockMode lockMode)
MCAPI bool setLore (::std::optional<::std::vector<::std::string > > const &loreList)
MCAPI bool setNameTag (::std::optional<::std::string > nameTag)
MCAPI ~ItemContext ()
MCAPI void * $ctor (::ItemStack const &item, int slot)
MCAPI void * $ctor (::BlockSource &region, ::BlockPos const &containerPos, int slot)
MCAPI void $dtor ()

Static Public Member Functions

static MCAPI bool setEquipment (::ItemStack const &item, ::SharedTypes::Legacy::EquipmentSlot equipmentSlot, ::Mob &mob)

Public Attributes

::ll::TypedStorage< 4, 4, ::ItemContextType > mItemContextType
::ll::TypedStorage< 8, 8, ::Container * > mContainer
::ll::TypedStorage< 4, 4, int > mSlot
::ll::TypedStorage< 4, 4, ::SharedTypes::Legacy::EquipmentSlot > mEquipmentSlot
::ll::TypedStorage< 8, 8, ::BlockSource * > mBlockSource
::ll::TypedStorage< 4, 12, ::BlockPos > mBlockPos
::ll::TypedStorage< 8, 24, ::WeakEntityRef > mEntityRef
::ll::TypedStorage< 8, 160, ::std::optional<::ItemStack > > mItemStackContainer

Constructor & Destructor Documentation

◆ ItemContext() [1/2]

MCAPI ItemContext::ItemContext ( ::ItemStack const & item,
int slot )
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.

◆ ItemContext() [2/2]

MCAPI ItemContext::ItemContext ( ::BlockSource & region,
::BlockPos const & containerPos,
int slot )
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.

◆ ~ItemContext()

MCAPI ItemContext::~ItemContext ( )
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.

Member Function Documentation

◆ _setItem()

MCAPI void ItemContext::_setItem ( ::ItemStack const & item)
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.

◆ _tryGetContainerFromEntity()

MCAPI::Container * ItemContext::_tryGetContainerFromEntity ( ) 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.

◆ _tryGetContainerFromItem()

MCAPI::Container * ItemContext::_tryGetContainerFromItem ( ) 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.

◆ clearAllDynamicProperties()

MCAPI bool ItemContext::clearAllDynamicProperties ( ::std::string const & collection)
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.

◆ getAmount()

MCAPI ::std::optional< int > ItemContext::getAmount ( ) 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.

◆ getCanDestroy()

MCAPI ::std::optional<::std::vector<::std::string > > ItemContext::getCanDestroy ( ) 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.

◆ getCanPlaceOn()

MCAPI ::std::optional<::std::vector<::std::string > > ItemContext::getCanPlaceOn ( ) 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.

◆ getDynamicProperty()

MCAPI ::std::optional<::std::variant< double, float, bool, ::std::string, ::Vec3 > > ItemContext::getDynamicProperty ( ::std::string const & collection,
::std::string const & key ) 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.

◆ getDynamicPropertyIds()

MCAPI ::std::optional<::std::vector<::std::string > > ItemContext::getDynamicPropertyIds ( ::std::string const & collection) 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.

◆ getDynamicPropertyTotalByteCount()

MCAPI ::std::optional< uint64 > ItemContext::getDynamicPropertyTotalByteCount ( ::std::string const & collection) 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.

◆ getId()

MCAPI ::std::optional<::std::string > ItemContext::getId ( ) 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.

◆ getItem()

MCAPI ::std::optional<::ItemStack > ItemContext::getItem ( ) 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.

◆ getKeepOnDeath()

MCAPI ::std::optional< bool > ItemContext::getKeepOnDeath ( ) 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.

◆ getLockMode()

MCAPI ::std::optional<::ItemLockMode > ItemContext::getLockMode ( ) 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.

◆ getLore()

MCAPI ::std::optional<::std::vector<::std::string > > ItemContext::getLore ( ) 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.

◆ getMaxAmount()

MCAPI ::std::optional< int > ItemContext::getMaxAmount ( ) 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.

◆ getNameTag()

MCAPI ::std::optional<::std::string > ItemContext::getNameTag ( ) 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.

◆ getTags()

MCAPI ::std::optional<::std::vector<::ItemTag > > ItemContext::getTags ( ) 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.

◆ hasItem()

MCAPI ::std::optional< bool > ItemContext::hasItem ( ) 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.

◆ hasTag()

MCAPI ::std::optional< bool > ItemContext::hasTag ( ::ItemTag const & tag) 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.

◆ isStackable()

MCAPI ::std::optional< bool > ItemContext::isStackable ( ) 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.

◆ isStackableWith()

MCAPI ::std::optional< bool > ItemContext::isStackableWith ( ::ItemStackBase const & other) 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.

◆ isValid()

MCAPI bool ItemContext::isValid ( ) 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::ItemContext & ItemContext::operator= ( ::ItemContext 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.

◆ setAmount()

MCAPI bool ItemContext::setAmount ( int amount)
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.

◆ setCanDestroy()

MCAPI ::std::optional< bool > ItemContext::setCanDestroy ( ::std::vector<::std::string > const & blockIdentifiers)
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.

◆ setCanPlaceOn()

MCAPI ::std::optional< bool > ItemContext::setCanPlaceOn ( ::std::vector<::std::string > const & blockIdentifiers)
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.

◆ setDynamicProperty()

MCAPI bool ItemContext::setDynamicProperty ( ::std::string const & collection,
::std::string const & key,
::std::optional<::std::variant< double, float, bool, ::std::string, ::Vec3 > > const & optionalValue )
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.

◆ setKeepOnDeath()

MCAPI bool ItemContext::setKeepOnDeath ( bool value)
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.

◆ setLockMode()

MCAPI bool ItemContext::setLockMode ( ::ItemLockMode lockMode)
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.

◆ setLore()

MCAPI bool ItemContext::setLore ( ::std::optional<::std::vector<::std::string > > const & loreList)
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.

◆ setNameTag()

MCAPI bool ItemContext::setNameTag ( ::std::optional<::std::string > nameTag)
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.

◆ setEquipment()

MCAPI bool ItemContext::setEquipment ( ::ItemStack const & item,
::SharedTypes::Legacy::EquipmentSlot equipmentSlot,
::Mob & mob )
static
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() [1/2]

MCAPI void * ItemContext::$ctor ( ::ItemStack const & item,
int slot )
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() [2/2]

MCAPI void * ItemContext::$ctor ( ::BlockSource & region,
::BlockPos const & containerPos,
int slot )
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.

◆ $dtor()

MCAPI void ItemContext::$dtor ( )
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: