LeviLamina
Loading...
Searching...
No Matches
ItemDynamicPropertiesHelper.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7class ItemStackBase;
8class Vec3;
9namespace cereal { struct ReflectionCtx; }
10// clang-format on
11
12namespace ItemDynamicPropertiesHelper {
13// functions
14// NOLINTBEGIN
15MCAPI bool clearAllDynamicProperties(::ItemStackBase& item, ::std::string const& collection);
16
17MCAPI ::std::optional<::std::variant<double, float, bool, ::std::string, ::Vec3>> getDynamicProperty(
18 ::ItemStackBase const& item,
19 ::std::string const& key,
20 ::std::string const& collectionName,
22);
23
24MCAPI bool removeDynamicProperty(::ItemStackBase& item, ::std::string const& key, ::std::string const& collectionName);
25
26MCAPI void setDynamicProperty(
27 ::ItemStackBase& item,
28 ::std::string const& key,
29 ::std::variant<double, float, bool, ::std::string, ::Vec3> const& value,
30 ::std::string const& collectionName,
32);
33// NOLINTEND
34
35} // namespace ItemDynamicPropertiesHelper
Definition ItemStackBase.h:35
Definition Vec3.h:10
Definition ReflectionCtx.h:11
Definition ctx.h:5