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;
12namespace cereal { class DynamicValue; }
13namespace cereal { struct ReflectionCtx; }
14// clang-format on
15
17public:
18 // member variables
19 // NOLINTBEGIN
24 // NOLINTEND
25
26public:
27 // prevent constructor by default
31
32public:
33 // virtual functions
34 // NOLINTBEGIN
35 // vIndex: 1
36 virtual ::std::string const& getName() const /*override*/;
37
38 // vIndex: 2
39 virtual void initializeComponent(::BlockComponentStorage& blockComponentStorage) const /*override*/;
40
41 // vIndex: 7
42 virtual bool isNetworkComponent() const /*override*/;
43
44 // vIndex: 8
45 virtual ::std::unique_ptr<::CompoundTag> buildNetworkTag(::cereal::ReflectionCtx const& ctx) const /*override*/;
46
47 // vIndex: 9
48 virtual void initializeFromNetwork(::CompoundTag const& tag, ::cereal::ReflectionCtx const& ctx) /*override*/;
49
50 // vIndex: 0
51 virtual ~BlockCustomComponentsComponentDescription() /*override*/ = default;
52 // NOLINTEND
53
54public:
55 // member functions
56 // NOLINTBEGIN
57 MCAPI void addCustomComponent(
58 ::std::string_view compName,
60 bool overridePlayerInteract,
61 bool overridePlayerPlacing
62 );
63 // NOLINTEND
64
65public:
66 // static functions
67 // NOLINTBEGIN
68 MCAPI static void bindType(::cereal::ReflectionCtx& ctx);
69 // NOLINTEND
70
71public:
72 // static variables
73 // NOLINTBEGIN
74 MCAPI static ::std::string const& NameID();
75 // NOLINTEND
76
77public:
78 // destructor thunk
79 // NOLINTBEGIN
80
81 // NOLINTEND
82
83public:
84 // virtual function thunks
85 // NOLINTBEGIN
86 MCAPI ::std::string const& $getName() const;
87
88 MCAPI void $initializeComponent(::BlockComponentStorage& blockComponentStorage) const;
89
90 MCFOLD bool $isNetworkComponent() const;
91
92 MCAPI ::std::unique_ptr<::CompoundTag> $buildNetworkTag(::cereal::ReflectionCtx const& ctx) const;
93
94 MCAPI void $initializeFromNetwork(::CompoundTag const& tag, ::cereal::ReflectionCtx const& ctx);
95 // NOLINTEND
96
97public:
98 // vftables
99 // NOLINTBEGIN
100 MCAPI static void** $vftable();
101 // NOLINTEND
102};
Definition BlockComponentStorage.h:8
Definition BlockCustomComponentsComponentDescription.h:16
Definition CompoundTag.h:13
Definition DynamicValue.h:12
Definition BlockComponentDescription.h:20
Definition ReflectionCtx.h:11
Definition ctx.h:5
Definition Alias.h:14