27 ::ll::TypedStorage<4, 4, ::ItemContextType> mItemContextType;
28 ::ll::TypedStorage<8, 8, ::Container*> mContainer;
29 ::ll::TypedStorage<4, 4, int> mSlot;
30 ::ll::TypedStorage<4, 4, ::SharedTypes::Legacy::EquipmentSlot> mEquipmentSlot;
31 ::ll::TypedStorage<8, 8, ::BlockSource*> mBlockSource;
32 ::ll::TypedStorage<4, 12, ::BlockPos> mBlockPos;
33 ::ll::TypedStorage<8, 24, ::WeakEntityRef> mEntityRef;
34 ::ll::TypedStorage<8, 160, ::std::optional<::ItemStack>> mItemStackContainer;
39 ItemContext(ItemContext
const&);
45 MCAPI ItemContext(
::ItemStack const& item,
int slot);
51 MCAPI ::Container* _tryGetContainerFromEntity()
const;
53 MCAPI ::Container* _tryGetContainerFromItem()
const;
55 MCAPI
bool clearAllDynamicProperties(::std::string
const& collection);
57 MCAPI ::std::optional<int> getAmount()
const;
59 MCAPI ::std::optional<::std::vector<::std::string>> getCanDestroy()
const;
61 MCAPI ::std::optional<::std::vector<::std::string>> getCanPlaceOn()
const;
63 MCAPI ::std::optional<::std::variant<double, float, bool, ::std::string, ::Vec3>>
64 getDynamicProperty(::std::string
const& collection, ::std::string
const& key)
const;
66 MCAPI ::std::optional<::std::vector<::std::string>> getDynamicPropertyIds(::std::string
const& collection)
const;
68 MCAPI ::std::optional<uint64> getDynamicPropertyTotalByteCount(::std::string
const& collection)
const;
70 MCAPI ::std::optional<::std::string> getId()
const;
72 MCAPI ::std::optional<::ItemStack> getItem()
const;
74 MCAPI ::std::optional<bool> getKeepOnDeath()
const;
76 MCAPI ::std::optional<::ItemLockMode> getLockMode()
const;
78 MCAPI ::std::optional<::std::vector<::std::string>> getLore()
const;
80 MCAPI ::std::optional<int> getMaxAmount()
const;
82 MCAPI ::std::optional<::std::string> getNameTag()
const;
84 MCAPI ::std::optional<::std::vector<::ItemTag>> getTags()
const;
86 MCAPI ::std::optional<bool> hasItem()
const;
88 MCAPI ::std::optional<bool> hasTag(
::ItemTag const& tag)
const;
90 MCAPI ::std::optional<bool> isStackable()
const;
92 MCAPI ::std::optional<bool> isStackableWith(
::ItemStackBase const& other)
const;
94 MCAPI
bool isValid()
const;
96 MCAPI ::ItemContext& operator=(::ItemContext&&);
98 MCAPI ::ItemContext& operator=(::ItemContext
const&);
100 MCAPI
bool setAmount(
int amount);
102 MCAPI ::std::optional<bool> setCanDestroy(::std::vector<::std::string>
const& blockIdentifiers);
104 MCAPI ::std::optional<bool> setCanPlaceOn(::std::vector<::std::string>
const& blockIdentifiers);
106 MCAPI
bool setDynamicProperty(
107 ::std::string
const& collection,
108 ::std::string
const& key,
109 ::std::optional<::std::variant<double, float, bool, ::std::string, ::Vec3>>
const& optionalValue
112 MCAPI
bool setKeepOnDeath(
bool value);
114 MCAPI
bool setLockMode(::ItemLockMode lockMode);
116 MCAPI
bool setLore(::std::optional<::std::vector<::std::string>>
const& loreList);
118 MCAPI
bool setNameTag(::std::optional<::std::string> nameTag);
120 MCAPI ~ItemContext();
127 setEquipment(
::ItemStack const& item, ::SharedTypes::Legacy::EquipmentSlot equipmentSlot,
::Mob& mob);
133 MCAPI
void* $ctor(
::ItemStack const& item,
int slot);