LeviLamina
Loading...
Searching...
No Matches
BlockCollisionBoxDescription.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
10class AABB;
12class CompoundTag;
13class SemVersion;
14class Vec3;
15namespace cereal { struct ReflectionCtx; }
16// clang-format on
17
18struct BlockCollisionBoxDescription : public ::BlockComponentDescription {
19public:
20 // member variables
21 // NOLINTBEGIN
22 ::ll::TypedStorage<1, 1, bool> mEnabled;
23 ::ll::TypedStorage<8, 24, ::std::vector<::AABB>> mBoxes;
24 // NOLINTEND
25
26public:
27 // prevent constructor by default
28 BlockCollisionBoxDescription();
29
30public:
31 // virtual functions
32 // NOLINTBEGIN
33 virtual ::std::string const& getName() const /*override*/;
34
35 virtual void initializeComponent(::BlockComponentStorage& blockComponentStorage) const /*override*/;
36
37 virtual void initializeComponentFromCode(::BlockComponentStorage& blockComponentStorage) const /*override*/;
38
39 virtual bool isNetworkComponent() const /*override*/;
40
41 virtual ::std::unique_ptr<::CompoundTag> buildNetworkTag(::cereal::ReflectionCtx const&) const /*override*/;
42
43 virtual void initializeFromNetwork(::CompoundTag const& tag, ::cereal::ReflectionCtx const& ctx) /*override*/;
44 // NOLINTEND
45
46public:
47 // member functions
48 // NOLINTBEGIN
49 MCAPI explicit BlockCollisionBoxDescription(bool enabled);
50
51 MCAPI BlockCollisionBoxDescription(::Vec3 const& origin, ::Vec3 const& size);
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
65 MCAPI static ::SemVersion const& Version1_21_130();
66 // NOLINTEND
67
68public:
69 // constructor thunks
70 // NOLINTBEGIN
71 MCAPI void* $ctor(bool enabled);
72
73 MCAPI void* $ctor(::Vec3 const& origin, ::Vec3 const& size);
74 // NOLINTEND
75
76public:
77 // virtual function thunks
78 // NOLINTBEGIN
79 MCAPI ::std::string const& $getName() const;
80
81 MCAPI void $initializeComponent(::BlockComponentStorage& blockComponentStorage) const;
82
83 MCFOLD void $initializeComponentFromCode(::BlockComponentStorage& blockComponentStorage) const;
84
85 MCFOLD bool $isNetworkComponent() const;
86
87 MCAPI ::std::unique_ptr<::CompoundTag> $buildNetworkTag(::cereal::ReflectionCtx const&) const;
88
89 MCAPI void $initializeFromNetwork(::CompoundTag const& tag, ::cereal::ReflectionCtx const& ctx);
90
91
92 // NOLINTEND
93
94public:
95 // vftables
96 // NOLINTBEGIN
97 MCNAPI static void** $vftable();
98 // NOLINTEND
99};
Definition AABB.h:18
Definition BlockComponentStorage.h:63
Definition CompoundTag.h:23
Definition SemVersion.h:15
Definition Vec3.h:10
static MCAPI void ** $vftable()
Definition BlockComponentDescription.h:20
Definition ReflectionCtx.h:11
Definition ctx.h:5