26 ::ll::TypedStorage<4, 4, ::ItemContextType> mItemContextType;
27 ::ll::TypedStorage<8, 8, ::Container*> mContainer;
28 ::ll::TypedStorage<4, 4, int> mSlot;
29 ::ll::TypedStorage<4, 4, ::SharedTypes::Legacy::EquipmentSlot> mEquipmentSlot;
30 ::ll::TypedStorage<8, 8, ::BlockSource*> mBlockSource;
31 ::ll::TypedStorage<4, 12, ::BlockPos> mBlockPos;
32 ::ll::TypedStorage<8, 24, ::WeakEntityRef> mEntityRef;
33 ::ll::TypedStorage<8, 160, ::std::optional<::ItemStack>> mItemStackContainer;
47 MCAPI ::ItemStack
const& _getItem()
const;
51 MCAPI ::Container* _tryGetChestContainer()
const;
53 MCAPI ::Container* _tryGetContainerFromEntity()
const;
55 MCAPI ::Container* _tryGetContainerFromItem()
const;
57 MCAPI
bool clearAllDynamicProperties(::std::string
const& collection);
59 MCAPI ::std::optional<int> getAmount()
const;
61 MCAPI ::std::optional<::std::vector<::std::string>> getCanDestroy()
const;
63 MCAPI ::std::optional<::std::vector<::std::string>> getCanPlaceOn()
const;
65 MCAPI ::std::optional<::std::variant<double, float, bool, ::std::string, ::Vec3>>
66 getDynamicProperty(::std::string
const& collection, ::std::string
const& key)
const;
68 MCAPI ::std::optional<::std::vector<::std::string>> getDynamicPropertyIds(::std::string
const& collection)
const;
70 MCAPI ::std::optional<uint64> getDynamicPropertyTotalByteCount(::std::string
const& collection)
const;
72 MCAPI ::std::optional<::std::string> getId()
const;
74 MCAPI ::std::optional<::ItemStack> getItem()
const;
76 MCAPI ::std::optional<::std::vector<::std::string>> getLore()
const;
78 MCAPI ::std::optional<::std::string> getNameTag()
const;
80 MCAPI ::std::optional<::std::vector<::ItemTag>> getTags()
const;
82 MCAPI ::std::optional<bool> hasTag(
::ItemTag const& tag)
const;
84 MCAPI ::std::optional<bool> isStackable()
const;
86 MCAPI
bool setAmount(
int amount);
88 MCAPI ::std::optional<bool> setCanDestroy(::std::vector<::std::string>
const& blockIdentifiers);
90 MCAPI ::std::optional<bool> setCanPlaceOn(::std::vector<::std::string>
const& blockIdentifiers);
92 MCAPI
bool setDynamicProperty(
93 ::std::string
const& collection,
94 ::std::string
const& key,
95 ::std::optional<::std::variant<double, float, bool, ::std::string, ::Vec3>>
const& optionalValue
98 MCAPI
bool setKeepOnDeath(
bool value);
100 MCAPI
bool setLockMode(::ItemLockMode lockMode);
102 MCAPI
bool setLore(::std::optional<::std::vector<::std::string>>
const& loreList);
104 MCAPI
bool setNameTag(::std::optional<::std::string> nameTag);
113 setEquipment(
::ItemStack const& item, ::SharedTypes::Legacy::EquipmentSlot equipmentSlot,
::Mob& mob);
Definition ItemContext.h:22