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 BlockPos;
14class BlockType;
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
35 ::ll::TypedStorage<4, 4, float const> mRotationOffset;
36 // NOLINTEND
37
38 public:
39 // virtual functions
40 // NOLINTBEGIN
41 // vIndex: 1
42 virtual ::gsl::not_null<::Block const*> getPlacementBlock(
43 ::gsl::not_null<::Block const*> block,
44 ::Actor const& by,
45 ::BlockPos const&,
46 uchar,
47 ::Vec3 const&,
48 int
49 ) const /*override*/;
50
51 // vIndex: 0
52 virtual ~UpdateCardinalGetPlacementBlockCallback() /*override*/ = default;
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& by,
61 ::BlockPos const&,
62 uchar,
63 ::Vec3 const&,
64 int
65 ) const;
66 // NOLINTEND
67
68 public:
69 // vftables
70 // NOLINTBEGIN
71 MCNAPI static void** $vftable();
72 // NOLINTEND
73 };
74
76 public:
77 // member variables
78 // NOLINTBEGIN
79 ::ll::TypedStorage<4, 4, float const> mRotationOffset;
80 // NOLINTEND
81
82 public:
83 // virtual functions
84 // NOLINTBEGIN
85 // vIndex: 1
86 virtual ::gsl::not_null<::Block const*> getPlacementBlock(
87 ::gsl::not_null<::Block const*> block,
88 ::Actor const& by,
89 ::BlockPos const& pos,
90 uchar,
91 ::Vec3 const&,
92 int
93 ) const /*override*/;
94
95 // vIndex: 0
96 virtual ~UpdateFacingGetPlacementBlockCallback() /*override*/ = default;
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& by,
105 ::BlockPos const& pos,
106 uchar,
107 ::Vec3 const&,
108 int
109 ) const;
110 // NOLINTEND
111
112 public:
113 // vftables
114 // NOLINTBEGIN
115 MCNAPI static void** $vftable();
116 // NOLINTEND
117 };
118
120 public:
121 // member variables
122 // NOLINTBEGIN
123 ::ll::TypedStorage<1, 1, bool> mCardinalDirection;
124 ::ll::TypedStorage<1, 1, bool> mFacingDirection;
125 // NOLINTEND
126
127 public:
128 // member functions
129 // NOLINTBEGIN
130 MCAPI ::std::unique_ptr<::CompoundTag> buildNetworkTag() const;
131 // NOLINTEND
132
133 public:
134 // static functions
135 // NOLINTBEGIN
136 MCAPI static void fromStringVector(
138 ::std::vector<::std::string> const& states
139 );
140 // NOLINTEND
141 };
142
143public:
144 // member variables
145 // NOLINTBEGIN
146 ::ll::TypedStorage<1, 2, ::BlockTrait::PlacementDirection::EnabledStates> mStates;
147 ::ll::TypedStorage<4, 4, float> mRotationOffset;
148 // NOLINTEND
149
150public:
151 // virtual functions
152 // NOLINTBEGIN
153 // vIndex: 2
154 virtual ::std::unique_ptr<::CompoundTag> buildNetworkTag() const /*override*/;
155
156 // vIndex: 3
157 virtual void initializeFromNetwork(::CompoundTag const& tag) /*override*/;
158
159 // vIndex: 1
160 virtual void applyToBlockType(::BlockType& blockType) const /*override*/;
161
162 // vIndex: 0
163 virtual ~PlacementDirection() /*override*/;
164 // NOLINTEND
165
166public:
167 // static functions
168 // NOLINTBEGIN
169 MCAPI static ::BlockTrait::PlacementDirection CardinalDirection(float _yRotationOffset);
170
171 MCAPI static ::BlockTrait::PlacementDirection FacingDirection(float _yRotationOffset);
172
173 MCAPI static ::std::string const& getName();
174 // NOLINTEND
175
176public:
177 // destructor thunk
178 // NOLINTBEGIN
179 MCFOLD void $dtor();
180 // NOLINTEND
181
182public:
183 // virtual function thunks
184 // NOLINTBEGIN
185 MCAPI ::std::unique_ptr<::CompoundTag> $buildNetworkTag() const;
186
187 MCAPI void $initializeFromNetwork(::CompoundTag const& tag);
188
189 MCAPI void $applyToBlockType(::BlockType& blockType) const;
190 // NOLINTEND
191
192public:
193 // vftables
194 // NOLINTBEGIN
195 MCNAPI static void** $vftable();
196 // NOLINTEND
197};
198
199} // namespace BlockTrait
Definition Actor.h:102
Definition BlockPos.h:17
Definition IGetPlacementBlockCallback.h:15
Definition ITrait.h:13
Definition PlacementDirection.h:21
static MCAPI void ** $vftable()
Definition BlockType.h:84
Definition Block.h:37
Definition CompoundTag.h:13
Definition Vec3.h:10
STL namespace.
Definition PlacementDirection.h:119