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