LeviLamina
Loading...
Searching...
No Matches
ItemContext Class Reference

Public Member Functions

ItemContextoperator= (ItemContext const &)
 ItemContext (ItemContext const &)
MCAPI ItemContext (::ItemContext &&)
MCAPI ItemContext (::WeakEntityRef const &entityRef, int slot)
MCAPI::ItemStack const & _getItem () const
MCAPI void _setItem (::ItemStack const &item)
MCAPI::Container * _tryGetChestContainer () const
MCAPI::Container * _tryGetContainerFromEntity () const
MCAPI::Container * _tryGetContainerFromItem () const
MCAPI bool clearAllDynamicProperties (::std::string const &collection)
MCAPI ::std::optional<::std::vector<::std::string > > getDynamicPropertyIds (::std::string const &collection) const
MCAPI ::std::optional<::std::vector<::std::string > > getLore () const
MCAPI bool isValid () 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 void * $ctor (::ItemContext &&)
MCAPI void * $ctor (::WeakEntityRef const &entityRef, int slot)
MCAPI void $dtor ()

Static Public Member Functions

static MCAPI bool _trySetEquippedSlot (::ItemStack const &item, ::SharedTypes::Legacy::EquipmentSlot equipmentSlot, ::Mob &mob)
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, ::BlockPosmBlockPos
::ll::TypedStorage< 8, 24, ::WeakEntityRefmEntityRef
::ll::TypedStorage< 8, 160, ::std::optional<::ItemStack > > mItemStackContainer

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