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
13struct BlockComponentGroupDescription {
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 // member functions
31 // NOLINTBEGIN
32 MCAPI void _setCustomComponent(
33 ::std::string_view compName,
34 ::std::shared_ptr<::cereal::DynamicValue> const& compData,
35 bool overridePlayerInteract,
36 bool overridePlayerPlacing
37 );
38
39 MCAPI ::std::shared_ptr<::cereal::DynamicValue>
40 getCustomComponent(::cereal::SerializerContext const& context) const;
41
42 MCAPI ~Components();
43 // NOLINTEND
44
45 public:
46 // destructor thunk
47 // NOLINTBEGIN
48 MCFOLD void $dtor();
49 // NOLINTEND
50 };
51
52public:
53 // member variables
54 // NOLINTBEGIN
55 ::ll::TypedStorage<8, 64, ::BlockComponentGroupDescription::Components> mCerealDescriptions;
56 ::ll::TypedStorage<8, 24, ::std::vector<::HashedString>> mTags;
57 ::ll::TypedStorage<8, 24, ::std::vector<::std::shared_ptr<::BlockComponentDescription>>> mDescriptions;
58 // NOLINTEND
59
60public:
61 // prevent constructor by default
62 BlockComponentGroupDescription(BlockComponentGroupDescription const&);
63 BlockComponentGroupDescription();
64
65public:
66 // member functions
67 // NOLINTBEGIN
68 MCAPI ::BlockComponentDescription* getComponentDescription(::std::string const& name) const;
69
70 MCAPI ::BlockComponentGroupDescription& operator=(::BlockComponentGroupDescription const&);
71
72 MCAPI ~BlockComponentGroupDescription();
73 // NOLINTEND
74
75public:
76 // destructor thunk
77 // NOLINTBEGIN
78 MCAPI void $dtor();
79 // NOLINTEND
80};
Definition HashedString.h:5
Definition DynamicValue.h:10
Definition SerializerContext.h:17
Definition BlockComponentDescription.h:20
Definition BlockComponentGroupDescription.h:21
Definition context.h:5