LeviLamina
Loading...
Searching...
No Matches
BlockCustomComponentsComponentDescription.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/block/components/BlockComponentDescription.h"
7
8// auto generated forward declare list
9// clang-format off
11class CompoundTag;
13namespace cereal { class DynamicValue; }
14namespace cereal { struct ReflectionCtx; }
15// clang-format on
16
18public:
19 // BlockCustomComponentsComponentDescription inner types declare
20 // clang-format off
21 struct ComponentOverrides;
22 // clang-format on
23
24 // BlockCustomComponentsComponentDescription inner types define
26 public:
27 // member variables
28 // NOLINTBEGIN
29 ::ll::TypedStorage<1, 1, bool> overridePlayerInteract;
30 ::ll::TypedStorage<1, 1, bool> overridePlayerPlacing;
31 // NOLINTEND
32 };
33
34public:
35 // member variables
36 // NOLINTBEGIN
37 ::ll::TypedStorage<8, 24, ::std::vector<::BlockCustomComponentData>> mCustomComponentData;
38 ::ll::TypedStorage<
39 8,
40 64,
41 ::std::unordered_map<::std::string, ::BlockCustomComponentsComponentDescription::ComponentOverrides>>
42 mComponentOverrides;
43 ::ll::TypedStorage<1, 1, bool> mIsCustomComponentsV1;
44 ::ll::TypedStorage<1, 1, bool> mHasPlayerInteractEvent;
45 ::ll::TypedStorage<1, 1, bool> mHasPlayerPlacingEvent;
46 // NOLINTEND
47
48public:
49 // virtual functions
50 // NOLINTBEGIN
51 virtual ::std::string const& getName() const /*override*/;
52
53 virtual void initializeComponent(::BlockComponentStorage& blockComponentStorage) const /*override*/;
54
55 virtual bool isNetworkComponent() const /*override*/;
56
57 virtual ::std::unique_ptr<::CompoundTag> buildNetworkTag(::cereal::ReflectionCtx const& ctx) const /*override*/;
58
59 virtual void initializeFromNetwork(::CompoundTag const& tag, ::cereal::ReflectionCtx const& ctx) /*override*/;
60 // NOLINTEND
61
62public:
63 // member functions
64 // NOLINTBEGIN
65 MCAPI void addCustomComponent(
66 ::std::string_view compName,
67 ::cereal::DynamicValue compData,
68 bool overridePlayerInteract,
69 bool overridePlayerPlacing
70 );
71 // NOLINTEND
72
73public:
74 // static variables
75 // NOLINTBEGIN
76 MCAPI static ::std::string const& NameID();
77 // NOLINTEND
78
79public:
80 // virtual function thunks
81 // NOLINTBEGIN
82 MCAPI ::std::string const& $getName() const;
83
84 MCAPI void $initializeComponent(::BlockComponentStorage& blockComponentStorage) const;
85
86 MCFOLD bool $isNetworkComponent() const;
87
88 MCAPI ::std::unique_ptr<::CompoundTag> $buildNetworkTag(::cereal::ReflectionCtx const& ctx) const;
89
90 MCAPI void $initializeFromNetwork(::CompoundTag const& tag, ::cereal::ReflectionCtx const& ctx);
91
92
93 // NOLINTEND
94
95public:
96 // vftables
97 // NOLINTBEGIN
98 MCNAPI static void** $vftable();
99 // NOLINTEND
100};
Definition BlockComponentStorage.h:67
Definition BlockCustomComponentsComponentDescription.h:17
Definition CompoundTag.h:18
Definition DynamicValue.h:14
STL namespace.
Definition BlockComponentDescription.h:20
Definition BlockCustomComponentData.h:10
Definition BlockCustomComponentsComponentDescription.h:25
Definition ReflectionCtx.h:11
Definition ctx.h:5