LeviLamina
Loading...
Searching...
No Matches
PlacementPosition.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/block/traits/block_trait/IGetPlacementBlockCallback.h"
7#include "mc/world/level/block/traits/block_trait/ITrait.h"
8
9// auto generated forward declare list
10// clang-format off
11class Actor;
12class Block;
13class BlockLegacy;
14class BlockPos;
15class CompoundTag;
16class Vec3;
17// clang-format on
18
19namespace BlockTrait {
20
22public:
23 // PlacementPosition inner types declare
24 // clang-format off
25 struct EnabledStates;
28 // clang-format on
29
30 // PlacementPosition inner types define
32 public:
33 // virtual functions
34 // NOLINTBEGIN
35 // vIndex: 1
36 virtual ::gsl::not_null<::Block const*> getPlacementBlock(
37 ::gsl::not_null<::Block const*> block,
38 ::Actor const&,
39 ::BlockPos const&,
40 uchar face,
41 ::Vec3 const&,
42 int
43 ) const /*override*/;
44
45 // vIndex: 0
46 virtual ~UpdateBlockFaceGetPlacementBlockCallback() /*override*/ = default;
47 // NOLINTEND
48
49 public:
50 // destructor thunk
51 // NOLINTBEGIN
52
53 // NOLINTEND
54
55 public:
56 // virtual function thunks
57 // NOLINTBEGIN
58 MCAPI ::gsl::not_null<::Block const*> $getPlacementBlock(
59 ::gsl::not_null<::Block const*> block,
60 ::Actor const&,
61 ::BlockPos const&,
62 uchar face,
63 ::Vec3 const&,
64 int
65 ) const;
66 // NOLINTEND
67
68 public:
69 // vftables
70 // NOLINTBEGIN
71 MCAPI static void** $vftable();
72 // NOLINTEND
73 };
74
76 public:
77 // virtual functions
78 // NOLINTBEGIN
79 // vIndex: 1
80 virtual ::gsl::not_null<::Block const*> getPlacementBlock(
81 ::gsl::not_null<::Block const*> block,
82 ::Actor const&,
83 ::BlockPos const&,
84 uchar face,
85 ::Vec3 const& clickPos,
86 int
87 ) const /*override*/;
88
89 // vIndex: 0
90 virtual ~UpdateVerticalHalfGetPlacementBlockCallback() /*override*/ = default;
91 // NOLINTEND
92
93 public:
94 // destructor thunk
95 // NOLINTBEGIN
96
97 // NOLINTEND
98
99 public:
100 // virtual function thunks
101 // NOLINTBEGIN
102 MCAPI ::gsl::not_null<::Block const*> $getPlacementBlock(
103 ::gsl::not_null<::Block const*> block,
104 ::Actor const&,
105 ::BlockPos const&,
106 uchar face,
107 ::Vec3 const& clickPos,
108 int
109 ) const;
110 // NOLINTEND
111
112 public:
113 // vftables
114 // NOLINTBEGIN
115 MCAPI static void** $vftable();
116 // NOLINTEND
117 };
118
120 public:
121 // member variables
122 // NOLINTBEGIN
125 // NOLINTEND
126
127 public:
128 // prevent constructor by default
129 EnabledStates& operator=(EnabledStates const&);
132
133 public:
134 // member functions
135 // NOLINTBEGIN
136 MCAPI ::std::unique_ptr<::CompoundTag> buildNetworkTag() const;
137 // NOLINTEND
138
139 public:
140 // static functions
141 // NOLINTBEGIN
142 MCAPI static void fromStringVector(
144 ::std::vector<::std::string> const& states
145 );
146 // NOLINTEND
147 };
148
149public:
150 // member variables
151 // NOLINTBEGIN
153 // NOLINTEND
154
155public:
156 // prevent constructor by default
157 PlacementPosition& operator=(PlacementPosition const&);
160
161public:
162 // virtual functions
163 // NOLINTBEGIN
164 // vIndex: 2
165 virtual ::std::unique_ptr<::CompoundTag> buildNetworkTag() const /*override*/;
166
167 // vIndex: 3
168 virtual void initializeFromNetwork(::CompoundTag const& tag) /*override*/;
169
170 // vIndex: 1
171 virtual void applyToBlockLegacy(::BlockLegacy& blockLegacy) const /*override*/;
172
173 // vIndex: 0
174 virtual ~PlacementPosition() /*override*/;
175 // NOLINTEND
176
177public:
178 // member functions
179 // NOLINTBEGIN
180 MCAPI PlacementPosition(bool blockFace, bool verticalHalf);
181 // NOLINTEND
182
183public:
184 // static functions
185 // NOLINTBEGIN
186 MCAPI static ::BlockTrait::PlacementPosition BlockFace();
187
188 MCAPI static ::BlockTrait::PlacementPosition VerticalHalf();
189
190 MCAPI static ::std::string const& getName();
191 // NOLINTEND
192
193public:
194 // constructor thunks
195 // NOLINTBEGIN
196 MCAPI void* $ctor(bool blockFace, bool verticalHalf);
197 // NOLINTEND
198
199public:
200 // destructor thunk
201 // NOLINTBEGIN
202 MCFOLD void $dtor();
203 // NOLINTEND
204
205public:
206 // virtual function thunks
207 // NOLINTBEGIN
208 MCAPI ::std::unique_ptr<::CompoundTag> $buildNetworkTag() const;
209
210 MCAPI void $initializeFromNetwork(::CompoundTag const& tag);
211
212 MCAPI void $applyToBlockLegacy(::BlockLegacy& blockLegacy) const;
213 // NOLINTEND
214
215public:
216 // vftables
217 // NOLINTBEGIN
218 MCAPI static void** $vftable();
219 // NOLINTEND
220};
221
222} // namespace BlockTrait
Definition Actor.h:104
Definition BlockLegacy.h:88
Definition BlockPos.h:18
Definition IGetPlacementBlockCallback.h:15
Definition ITrait.h:13
Definition PlacementPosition.h:21
Definition Block.h:36
Definition CompoundTag.h:13
Definition Vec3.h:10
STL namespace.
Definition PlacementPosition.h:119
Definition Alias.h:14