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 // member variables
20 // NOLINTBEGIN
21 ::ll::TypedStorage<8, 24, ::std::vector<::BlockCustomComponentData>> mCustomComponentData;
22 ::ll::TypedStorage<1, 1, bool> mIsCustomComponentsV1;
23 ::ll::TypedStorage<1, 1, bool> mHasPlayerInteractEvent;
24 ::ll::TypedStorage<1, 1, bool> mHasPlayerPlacingEvent;
25 // NOLINTEND
26
27public:
28 // virtual functions
29 // NOLINTBEGIN
30 virtual ::std::string const& getName() const /*override*/;
31
32 virtual void initializeComponent(::BlockComponentStorage& blockComponentStorage) const /*override*/;
33
34 virtual bool isNetworkComponent() const /*override*/;
35
36 virtual ::std::unique_ptr<::CompoundTag> buildNetworkTag(::cereal::ReflectionCtx const& ctx) const /*override*/;
37
38 virtual void initializeFromNetwork(::CompoundTag const& tag, ::cereal::ReflectionCtx const& ctx) /*override*/;
39
40 virtual ~BlockCustomComponentsComponentDescription() /*override*/ = default;
41 // NOLINTEND
42
43public:
44 // member functions
45 // NOLINTBEGIN
46 MCAPI void addCustomComponent(
47 ::std::string_view compName,
49 bool overridePlayerInteract,
50 bool overridePlayerPlacing
51 );
52 // NOLINTEND
53
54public:
55 // static functions
56 // NOLINTBEGIN
57 MCAPI static void bindType(::cereal::ReflectionCtx& ctx);
58 // NOLINTEND
59
60public:
61 // static variables
62 // NOLINTBEGIN
63 MCAPI static ::std::string const& NameID();
64 // NOLINTEND
65
66public:
67 // virtual function thunks
68 // NOLINTBEGIN
69 MCAPI ::std::string const& $getName() const;
70
71 MCAPI void $initializeComponent(::BlockComponentStorage& blockComponentStorage) const;
72
73 MCFOLD bool $isNetworkComponent() const;
74
75 MCAPI ::std::unique_ptr<::CompoundTag> $buildNetworkTag(::cereal::ReflectionCtx const& ctx) const;
76
77 MCAPI void $initializeFromNetwork(::CompoundTag const& tag, ::cereal::ReflectionCtx const& ctx);
78
79
80 // NOLINTEND
81
82public:
83 // vftables
84 // NOLINTBEGIN
85 MCNAPI static void** $vftable();
86 // NOLINTEND
87};
Definition BlockComponentStorage.h:61
Definition BlockCustomComponentsComponentDescription.h:17
Definition CompoundTag.h:23
Definition DynamicValue.h:12
Definition BlockComponentDescription.h:20
Definition BlockCustomComponentData.h:10
Definition ReflectionCtx.h:11
Definition ctx.h:5