LeviLamina
Loading...
Searching...
No Matches
BlockComponentDescription.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/util/json_util/JsonSchemaObjectNode.h"
7
8// auto generated forward declare list
9// clang-format off
12class CompoundTag;
13class EntityContext;
14class SemVersion;
16namespace JsonUtil { class EmptyClass; }
17namespace cereal { struct ReflectionCtx; }
18// clang-format on
19
21public:
22 // member variables
23 // NOLINTBEGIN
24 ::ll::TypedStorage<1, 1, bool> mInitializedFromCode;
25 // NOLINTEND
26
27public:
28 // virtual functions
29 // NOLINTBEGIN
30 // vIndex: 0
32
33 // vIndex: 1
34 virtual ::std::string const& getName() const;
35
36 // vIndex: 3
37 virtual void initializeComponent(::EntityContext& entity) const;
38
39 // vIndex: 2
40 virtual void initializeComponent(::BlockComponentStorage& blockComponentStorage) const;
41
42 // vIndex: 5
43 virtual void initializeComponentFromCode(::EntityContext& entity) const;
44
45 // vIndex: 4
46 virtual void initializeComponentFromCode(::BlockComponentStorage& blockComponentStorage) const;
47
48 // vIndex: 6
49 virtual void buildSchema(
51 componentSchema,
52 ::BlockComponentFactory const& factory
53 ) const;
54
55 // vIndex: 7
56 virtual bool isNetworkComponent() const;
57
58 // vIndex: 8
59 virtual ::std::unique_ptr<::CompoundTag> buildNetworkTag(::cereal::ReflectionCtx const& ctx) const;
60
61 // vIndex: 9
62 virtual void initializeFromNetwork(::CompoundTag const& tag, ::cereal::ReflectionCtx const& ctx);
63
64 // vIndex: 10
65 virtual void handleVersionBasedInitialization(::SemVersion const& originalJsonVersion);
66 // NOLINTEND
67
68public:
69 // destructor thunk
70 // NOLINTBEGIN
71 MCFOLD void $dtor();
72 // NOLINTEND
73
74public:
75 // virtual function thunks
76 // NOLINTBEGIN
77 MCFOLD ::std::string const& $getName() const;
78
79 MCFOLD void $initializeComponent(::EntityContext& entity) const;
80
81 MCFOLD void $initializeComponent(::BlockComponentStorage& blockComponentStorage) const;
82
83 MCFOLD void $initializeComponentFromCode(::EntityContext& entity) const;
84
85 MCFOLD void $initializeComponentFromCode(::BlockComponentStorage& blockComponentStorage) const;
86
87 MCFOLD void $buildSchema(
89 componentSchema,
90 ::BlockComponentFactory const& factory
91 ) const;
92
93 MCFOLD bool $isNetworkComponent() const;
94
95 MCFOLD ::std::unique_ptr<::CompoundTag> $buildNetworkTag(::cereal::ReflectionCtx const& ctx) const;
96
97 MCFOLD void $initializeFromNetwork(::CompoundTag const& tag, ::cereal::ReflectionCtx const& ctx);
98
99 MCFOLD void $handleVersionBasedInitialization(::SemVersion const& originalJsonVersion);
100 // NOLINTEND
101
102public:
103 // vftables
104 // NOLINTBEGIN
105 MCNAPI static void** $vftable();
106 // NOLINTEND
107};
Definition BlockComponentFactory.h:24
Definition BlockComponentStorage.h:56
Definition CompoundTag.h:13
Definition EntityContext.h:16
Definition JsonSchemaObjectNode.h:8
Definition SemVersion.h:16
Definition BlockComponentDescription.h:20
static MCAPI void ** $vftable()
Definition BlockComponentGroupDescription.h:13
Definition ReflectionCtx.h:11
Definition ctx.h:5