LeviLamina
Loading...
Searching...
No Matches
PropertyComponent.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/actor/state/PropertyContainer.h"
7#include "mc/world/actor/state/PropertyMetadata.h"
8
9// auto generated forward declare list
10// clang-format off
11class CompoundTag;
12class HashedString;
14class PropertyGroup;
15class RenderParams;
16struct PropertySyncData;
17// clang-format on
18
20public:
21 // member variables
22 // NOLINTBEGIN
23 ::ll::TypedStorage<8, 16, ::gsl::not_null<::std::shared_ptr<::PropertyGroup const>>> mPropertyGroup;
24 ::ll::TypedStorage<4, 4, ::std::bitset<32>> mDirtyIntProperties;
25 ::ll::TypedStorage<4, 4, ::std::bitset<32>> mDirtyFloatProperties;
26 ::ll::TypedStorage<4, 4, ::std::bitset<32>> mDirtyBoolProperties;
27 ::ll::TypedStorage<4, 4, ::std::bitset<32>> mDirtyEnumIndexProperties;
28 ::ll::TypedStorage<1, 1, bool> mEverythingDirty;
29 ::ll::TypedStorage<8, 120, ::PropertyContainer> mPropertyContainer;
30 // NOLINTEND
31
32public:
33 // prevent constructor by default
34 PropertyComponent& operator=(PropertyComponent const&);
37
38public:
39 // member functions
40 // NOLINTBEGIN
42
44 ::gsl::not_null<::std::shared_ptr<::PropertyGroup const>> propertyGroup,
45 ::RenderParams& renderParams
46 );
47
48 MCNAPI void addAdditionalSaveData(::CompoundTag& tag) const;
49
50 MCNAPI void
51 applyPendingChanges(::std::unordered_map<uint64, ::std::variant<int, float, bool, uint64>> const& pendingChanges);
52
53 MCNAPI bool getBool(uint64 h) const;
54
55 MCNAPI float getFloat(uint64 h) const;
56
57 MCNAPI int getInt(uint64 h) const;
58
59 MCNAPI ::PropertyMetadata::ContainedType getPropertyType(uint64 h) const;
60
61 MCNAPI ::PropertyMetadata::ContainedType getPropertyType(::HashedString const& h) const;
62
63 MCNAPI ::HashedString const& getString(uint64 h) const;
64
65 MCNAPI ::PropertyComponent& operator=(::PropertyComponent&&);
66
67 MCNAPI ::PropertySyncData packDirtySyncData();
68
69 MCNAPI ::HashedString const* tryGetString(uint64 h) const;
70 // NOLINTEND
71
72public:
73 // constructor thunks
74 // NOLINTBEGIN
75 MCNAPI void* $ctor(::PropertyComponent&&);
76
77 MCNAPI void*
78 $ctor(::gsl::not_null<::std::shared_ptr<::PropertyGroup const>> propertyGroup, ::RenderParams& renderParams);
79 // NOLINTEND
80};
Definition CompoundTag.h:13
Definition HashedString.h:5
Definition PropertyComponent.h:19
MCAPI::HashedString const * tryGetString(uint64 h) const
MCAPI::HashedString const & getString(uint64 h) const
MCAPI::PropertySyncData packDirtySyncData()
MCAPI void * $ctor(::gsl::not_null<::std::shared_ptr<::PropertyGroup const > > propertyGroup, ::RenderParams &renderParams)
MCAPI PropertyComponent(::PropertyComponent &&)
MCAPI::PropertyComponent & operator=(::PropertyComponent &&)
MCAPI::PropertyMetadata::ContainedType getPropertyType(::HashedString const &h) const
MCAPI void * $ctor(::PropertyComponent &&)
MCAPI bool getBool(uint64 h) const
MCAPI int getInt(uint64 h) const
MCAPI void applyPendingChanges(::std::unordered_map< uint64, ::std::variant< int, float, bool, uint64 > > const &pendingChanges)
MCAPI PropertyComponent(::gsl::not_null<::std::shared_ptr<::PropertyGroup const > > propertyGroup, ::RenderParams &renderParams)
MCAPI void addAdditionalSaveData(::CompoundTag &tag) const
MCAPI float getFloat(uint64 h) const
MCAPI::PropertyMetadata::ContainedType getPropertyType(uint64 h) const
Definition PropertyContainer.h:21
Definition PropertyGroup.h:19
Definition RenderParams.h:30
Definition PropertySyncData.h:5