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 // virtual function thunks
63 // NOLINTBEGIN
64 MCNAPI ::gsl::not_null<::Block const*> $getPlacementBlock(
65 ::gsl::not_null<::Block const*> block,
66 ::Actor const& by,
67 ::BlockPos const&,
68 uchar,
69 ::Vec3 const&,
70 int
71 ) const;
72 // NOLINTEND
73
74 public:
75 // vftables
76 // NOLINTBEGIN
77 MCNAPI static void** $vftable();
78 // NOLINTEND
79 };
80
82 public:
83 // member variables
84 // NOLINTBEGIN
86 // NOLINTEND
87
88 public:
89 // prevent constructor by default
93
94 public:
95 // virtual functions
96 // NOLINTBEGIN
97 // vIndex: 1
98 virtual ::gsl::not_null<::Block const*> getPlacementBlock(
99 ::gsl::not_null<::Block const*> block,
100 ::Actor const& by,
101 ::BlockPos const& pos,
102 uchar,
103 ::Vec3 const&,
104 int
105 ) const /*override*/;
106
107 // vIndex: 0
108 virtual ~UpdateFacingGetPlacementBlockCallback() /*override*/ = default;
109 // NOLINTEND
110
111 public:
112 // virtual function thunks
113 // NOLINTBEGIN
114 MCNAPI ::gsl::not_null<::Block const*> $getPlacementBlock(
115 ::gsl::not_null<::Block const*> block,
116 ::Actor const& by,
117 ::BlockPos const& pos,
118 uchar,
119 ::Vec3 const&,
120 int
121 ) const;
122 // NOLINTEND
123
124 public:
125 // vftables
126 // NOLINTBEGIN
127 MCNAPI static void** $vftable();
128 // NOLINTEND
129 };
130
132 public:
133 // member variables
134 // NOLINTBEGIN
137 // NOLINTEND
138
139 public:
140 // prevent constructor by default
141 EnabledStates& operator=(EnabledStates const&);
144
145 public:
146 // member functions
147 // NOLINTBEGIN
148 MCNAPI ::std::unique_ptr<::CompoundTag> buildNetworkTag() const;
149 // NOLINTEND
150
151 public:
152 // static functions
153 // NOLINTBEGIN
154 MCNAPI static void fromStringVector(
156 ::std::vector<::std::string> const& states
157 );
158 // NOLINTEND
159 };
160
161public:
162 // member variables
163 // NOLINTBEGIN
166 // NOLINTEND
167
168public:
169 // prevent constructor by default
170 PlacementDirection& operator=(PlacementDirection const&);
173
174public:
175 // virtual functions
176 // NOLINTBEGIN
177 // vIndex: 2
178 virtual ::std::unique_ptr<::CompoundTag> buildNetworkTag() const /*override*/;
179
180 // vIndex: 3
181 virtual void initializeFromNetwork(::CompoundTag const& tag) /*override*/;
182
183 // vIndex: 1
184 virtual void applyToBlockLegacy(::BlockLegacy& blockLegacy) const /*override*/;
185
186 // vIndex: 0
187 virtual ~PlacementDirection() /*override*/;
188 // NOLINTEND
189
190public:
191 // member functions
192 // NOLINTBEGIN
193 MCNAPI void setRotationOffset(float const& rotation);
194 // NOLINTEND
195
196public:
197 // static functions
198 // NOLINTBEGIN
199 MCNAPI static ::BlockTrait::PlacementDirection CardinalDirection(float _yRotationOffset);
200
201 MCNAPI static ::BlockTrait::PlacementDirection FacingDirection(float _yRotationOffset);
202
203 MCNAPI static ::std::string const& getName();
204 // NOLINTEND
205
206public:
207 // destructor thunk
208 // NOLINTBEGIN
209 MCNAPI void $dtor();
210 // NOLINTEND
211
212public:
213 // virtual function thunks
214 // NOLINTBEGIN
215 MCNAPI ::std::unique_ptr<::CompoundTag> $buildNetworkTag() const;
216
217 MCNAPI void $initializeFromNetwork(::CompoundTag const& tag);
218
219 MCNAPI void $applyToBlockLegacy(::BlockLegacy& blockLegacy) const;
220 // NOLINTEND
221
222public:
223 // vftables
224 // NOLINTBEGIN
225 MCNAPI static void** $vftable();
226 // NOLINTEND
227};
228
229} // namespace BlockTrait
Definition Actor.h:103
Definition BlockLegacy.h:88
Definition BlockPos.h:18
Definition IGetPlacementBlockCallback.h:15
Definition ITrait.h:13
MCAPI ::gsl::not_null<::Block const * > $getPlacementBlock(::gsl::not_null<::Block const * > block, ::Actor const &by, ::BlockPos const &, uchar, ::Vec3 const &, int) const
MCAPI ::gsl::not_null<::Block const * > $getPlacementBlock(::gsl::not_null<::Block const * > block, ::Actor const &by, ::BlockPos const &pos, uchar, ::Vec3 const &, int) const
Definition PlacementDirection.h:21
static MCAPI ::BlockTrait::PlacementDirection FacingDirection(float _yRotationOffset)
static MCAPI void ** $vftable()
MCAPI void setRotationOffset(float const &rotation)
MCAPI void $initializeFromNetwork(::CompoundTag const &tag)
static MCAPI ::BlockTrait::PlacementDirection CardinalDirection(float _yRotationOffset)
MCAPI ::std::unique_ptr<::CompoundTag > $buildNetworkTag() const
static MCAPI ::std::string const & getName()
MCAPI void $applyToBlockLegacy(::BlockLegacy &blockLegacy) const
Definition Block.h:38
Definition CompoundTag.h:13
Definition Vec3.h:10
STL namespace.
Definition PlacementDirection.h:131
static MCAPI void fromStringVector(::BlockTrait::PlacementDirection::EnabledStates &instance, ::std::vector<::std::string > const &states)
MCAPI ::std::unique_ptr<::CompoundTag > buildNetworkTag() const
Definition Alias.h:14