LeviLamina
Loading...
Searching...
No Matches
BlockComponentGroupDescription.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7class HashedString;
9namespace cereal { class DynamicValue; }
10namespace cereal { class SerializerContext; }
11// clang-format on
12
14public:
15 // BlockComponentGroupDescription inner types declare
16 // clang-format off
17 struct Components;
18 // clang-format on
19
20 // BlockComponentGroupDescription inner types define
21 struct Components {
22 public:
23 // member variables
24 // NOLINTBEGIN
25 ::ll::TypedStorage<8, 64, ::std::unordered_map<::std::string, ::std::shared_ptr<::BlockComponentDescription>>>
26 mMap;
27 // NOLINTEND
28
29 public:
30 // prevent constructor by default
31 Components();
32
33 public:
34 // member functions
35 // NOLINTBEGIN
37
38 MCAPI void _setCustomComponent(
39 ::std::string_view compName,
40 ::std::shared_ptr<::cereal::DynamicValue> const& compData,
41 bool overridePlayerInteract,
42 bool overridePlayerPlacing
43 );
44
45 MCAPI ::std::shared_ptr<::cereal::DynamicValue>
46 getCustomComponent(::cereal::SerializerContext const& context) const;
47
48 MCFOLD ::BlockComponentGroupDescription::Components&
50
51 MCAPI ~Components();
52 // NOLINTEND
53
54 public:
55 // constructor thunks
56 // NOLINTBEGIN
57 MCAPI void* $ctor(::BlockComponentGroupDescription::Components const&);
58 // NOLINTEND
59
60 public:
61 // destructor thunk
62 // NOLINTBEGIN
63 MCFOLD void $dtor();
64 // NOLINTEND
65 };
66
67public:
68 // member variables
69 // NOLINTBEGIN
70 ::ll::TypedStorage<8, 64, ::BlockComponentGroupDescription::Components> mCerealDescriptions;
71 ::ll::TypedStorage<8, 24, ::std::vector<::HashedString>> mTags;
72 ::ll::TypedStorage<8, 24, ::std::vector<::std::shared_ptr<::BlockComponentDescription>>> mDescriptions;
73 // NOLINTEND
74
75public:
76 // prevent constructor by default
78
79public:
80 // member functions
81 // NOLINTBEGIN
83
85
87
88 MCAPI void addComponentDescription(::std::shared_ptr<::BlockComponentDescription> desc);
89
90 MCAPI void foreachDescription(::std::function<void(::BlockComponentDescription const&)> callback) const;
91
92 MCAPI ::BlockComponentGroupDescription& operator=(::BlockComponentGroupDescription&&);
93
95 // NOLINTEND
96
97public:
98 // constructor thunks
99 // NOLINTBEGIN
100 MCAPI void* $ctor();
101
102 MCAPI void* $ctor(::BlockComponentGroupDescription&&);
103
104 MCAPI void* $ctor(::BlockComponentGroupDescription const&);
105 // NOLINTEND
106
107public:
108 // destructor thunk
109 // NOLINTBEGIN
110 MCAPI void $dtor();
111 // NOLINTEND
112};
Definition HashedString.h:5
Definition SerializerContext.h:11
Definition BlockComponentDescription.h:20
Definition BlockComponentGroupDescription.h:21
Definition BlockComponentGroupDescription.h:13
Definition context.h:5