LeviLamina
Loading...
Searching...
No Matches
PropertyContainer.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/actor/state/PropertyValues.h"
7
8// auto generated forward declare list
9// clang-format off
10class CompoundTag;
11class HashedString;
12class PropertyGroup;
14class RenderParams;
15class Tag;
16struct MolangScriptArg;
17struct PropertySyncData;
18struct PropertyValues;
19// clang-format on
20
22public:
23 // member variables
24 // NOLINTBEGIN
25 ::ll::TypedStorage<8, 16, ::gsl::not_null<::std::shared_ptr<::PropertyGroup const>>> mPropertyGroup;
26 ::ll::TypedStorage<8, 104, ::PropertyValues> mValues;
27 // NOLINTEND
28
29public:
30 // prevent constructor by default
32
33public:
34 // member functions
35 // NOLINTBEGIN
37 ::gsl::not_null<::std::shared_ptr<::PropertyGroup const>> propertyGroup,
38 ::RenderParams& renderParams
39 );
40
41 MCNAPI void _addDataToCompoundTag(::CompoundTag& compoundTag, ::PropertyMetadata const& propertyMetadata) const;
42
43 MCNAPI bool _readValueFromTag(::PropertyMetadata const& propertyMetadata, ::Tag const& tag);
44
45 MCNAPI void addEntryToSyncData(::PropertyMetadata const& propMetadata, ::PropertySyncData& syncData) const;
46
47 MCNAPI bool getMolangValue(uint64 propertyNameHash, ::MolangScriptArg& out) const;
48
49 MCNAPI ::std::optional<::std::variant<int, float, bool, ::std::string>>
50 getValueVariant(uint64 propertyNameHash) const;
51
52 MCNAPI void readLoadedProperties(::CompoundTag const& loadedPropertyTag);
53
54 MCNAPI void setAliasProperties(
55 ::std::unordered_map<::HashedString, ::std::shared_ptr<::Tag>> const& aliasProperties,
56 ::std::string const& aliasName,
57 ::std::string const& canonicalName
58 );
59
60 MCNAPI void setFloatValue(uint64 floatArrayIndex, float value);
61
62 MCNAPI void setIntValue(uint64 intArrayIndex, int value);
63 // NOLINTEND
64
65public:
66 // constructor thunks
67 // NOLINTBEGIN
68 MCNAPI void*
69 $ctor(::gsl::not_null<::std::shared_ptr<::PropertyGroup const>> propertyGroup, ::RenderParams& renderParams);
70 // NOLINTEND
71};
Definition CompoundTag.h:13
Definition HashedString.h:5
Definition PropertyContainer.h:21
MCAPI void _addDataToCompoundTag(::CompoundTag &compoundTag, ::PropertyMetadata const &propertyMetadata) const
MCAPI void addEntryToSyncData(::PropertyMetadata const &propMetadata, ::PropertySyncData &syncData) const
MCAPI bool getMolangValue(uint64 propertyNameHash, ::MolangScriptArg &out) const
MCAPI ::std::optional<::std::variant< int, float, bool, ::std::string > > getValueVariant(uint64 propertyNameHash) const
MCAPI PropertyContainer(::gsl::not_null<::std::shared_ptr<::PropertyGroup const > > propertyGroup, ::RenderParams &renderParams)
MCAPI void * $ctor(::gsl::not_null<::std::shared_ptr<::PropertyGroup const > > propertyGroup, ::RenderParams &renderParams)
MCAPI void setAliasProperties(::std::unordered_map<::HashedString, ::std::shared_ptr<::Tag > > const &aliasProperties, ::std::string const &aliasName, ::std::string const &canonicalName)
MCAPI void readLoadedProperties(::CompoundTag const &loadedPropertyTag)
MCAPI bool _readValueFromTag(::PropertyMetadata const &propertyMetadata, ::Tag const &tag)
MCAPI void setFloatValue(uint64 floatArrayIndex, float value)
MCAPI void setIntValue(uint64 intArrayIndex, int value)
Definition PropertyGroup.h:19
Definition PropertyMetadata.h:5
Definition RenderParams.h:30
Definition Tag.h:39
Definition MolangScriptArg.h:33
Definition PropertySyncData.h:5
Definition PropertyValues.h:5