LeviLamina
Loading...
Searching...
No Matches
PlacementDirection.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 // PlacementDirection inner types declare
24 // clang-format off
25 struct EnabledStates;
28 // clang-format on
29
30 // PlacementDirection inner types define
32 public:
33 // member variables
34 // NOLINTBEGIN
36 // NOLINTEND
37
38 public:
39 // prevent constructor by default
43
44 public:
45 // virtual functions
46 // NOLINTBEGIN
47 // vIndex: 1
48 virtual ::gsl::not_null<::Block const*> getPlacementBlock(
49 ::gsl::not_null<::Block const*> block,
50 ::Actor const& by,
51 ::BlockPos const&,
52 uchar,
53 ::Vec3 const&,
54 int
55 ) const /*override*/;
56
57 // vIndex: 0
58 virtual ~UpdateCardinalGetPlacementBlockCallback() /*override*/ = default;
59 // NOLINTEND
60
61 public:
62 // destructor thunk
63 // NOLINTBEGIN
64
65 // NOLINTEND
66
67 public:
68 // virtual function thunks
69 // NOLINTBEGIN
70 MCAPI ::gsl::not_null<::Block const*> $getPlacementBlock(
71 ::gsl::not_null<::Block const*> block,
72 ::Actor const& by,
73 ::BlockPos const&,
74 uchar,
75 ::Vec3 const&,
76 int
77 ) const;
78 // NOLINTEND
79
80 public:
81 // vftables
82 // NOLINTBEGIN
83 MCAPI static void** $vftable();
84 // NOLINTEND
85 };
86
88 public:
89 // member variables
90 // NOLINTBEGIN
92 // NOLINTEND
93
94 public:
95 // prevent constructor by default
99
100 public:
101 // virtual functions
102 // NOLINTBEGIN
103 // vIndex: 1
104 virtual ::gsl::not_null<::Block const*> getPlacementBlock(
105 ::gsl::not_null<::Block const*> block,
106 ::Actor const& by,
107 ::BlockPos const& pos,
108 uchar,
109 ::Vec3 const&,
110 int
111 ) const /*override*/;
112
113 // vIndex: 0
114 virtual ~UpdateFacingGetPlacementBlockCallback() /*override*/ = default;
115 // NOLINTEND
116
117 public:
118 // destructor thunk
119 // NOLINTBEGIN
120
121 // NOLINTEND
122
123 public:
124 // virtual function thunks
125 // NOLINTBEGIN
126 MCAPI ::gsl::not_null<::Block const*> $getPlacementBlock(
127 ::gsl::not_null<::Block const*> block,
128 ::Actor const& by,
129 ::BlockPos const& pos,
130 uchar,
131 ::Vec3 const&,
132 int
133 ) const;
134 // NOLINTEND
135
136 public:
137 // vftables
138 // NOLINTBEGIN
139 MCAPI static void** $vftable();
140 // NOLINTEND
141 };
142
144 public:
145 // member variables
146 // NOLINTBEGIN
149 // NOLINTEND
150
151 public:
152 // prevent constructor by default
153 EnabledStates& operator=(EnabledStates const&);
156
157 public:
158 // member functions
159 // NOLINTBEGIN
160 MCAPI ::std::unique_ptr<::CompoundTag> buildNetworkTag() const;
161 // NOLINTEND
162
163 public:
164 // static functions
165 // NOLINTBEGIN
166 MCAPI static void fromStringVector(
168 ::std::vector<::std::string> const& states
169 );
170 // NOLINTEND
171 };
172
173public:
174 // member variables
175 // NOLINTBEGIN
178 // NOLINTEND
179
180public:
181 // prevent constructor by default
182 PlacementDirection& operator=(PlacementDirection const&);
185
186public:
187 // virtual functions
188 // NOLINTBEGIN
189 // vIndex: 2
190 virtual ::std::unique_ptr<::CompoundTag> buildNetworkTag() const /*override*/;
191
192 // vIndex: 3
193 virtual void initializeFromNetwork(::CompoundTag const& tag) /*override*/;
194
195 // vIndex: 1
196 virtual void applyToBlockLegacy(::BlockLegacy& blockLegacy) const /*override*/;
197
198 // vIndex: 0
199 virtual ~PlacementDirection() /*override*/;
200 // NOLINTEND
201
202public:
203 // member functions
204 // NOLINTBEGIN
205 MCAPI void setRotationOffset(float const& rotation);
206 // NOLINTEND
207
208public:
209 // static functions
210 // NOLINTBEGIN
211 MCAPI static ::BlockTrait::PlacementDirection CardinalDirection(float _yRotationOffset);
212
213 MCAPI static ::BlockTrait::PlacementDirection FacingDirection(float _yRotationOffset);
214
215 MCAPI static ::std::string const& getName();
216 // NOLINTEND
217
218public:
219 // destructor thunk
220 // NOLINTBEGIN
221 MCFOLD void $dtor();
222 // NOLINTEND
223
224public:
225 // virtual function thunks
226 // NOLINTBEGIN
227 MCAPI ::std::unique_ptr<::CompoundTag> $buildNetworkTag() const;
228
229 MCAPI void $initializeFromNetwork(::CompoundTag const& tag);
230
231 MCAPI void $applyToBlockLegacy(::BlockLegacy& blockLegacy) const;
232 // NOLINTEND
233
234public:
235 // vftables
236 // NOLINTBEGIN
237 MCAPI static void** $vftable();
238 // NOLINTEND
239};
240
241} // namespace BlockTrait
Definition Actor.h:104
Definition BlockLegacy.h:88
Definition BlockPos.h:18
Definition IGetPlacementBlockCallback.h:15
Definition ITrait.h:13
Definition PlacementDirection.h:21
Definition Block.h:36
Definition CompoundTag.h:13
Definition Vec3.h:10
STL namespace.
Definition PlacementDirection.h:143
Definition Alias.h:14