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