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 // virtual function thunks
51 // NOLINTBEGIN
52 MCNAPI ::gsl::not_null<::Block const*> $getPlacementBlock(
53 ::gsl::not_null<::Block const*> block,
54 ::Actor const&,
55 ::BlockPos const&,
56 uchar face,
57 ::Vec3 const&,
58 int
59 ) const;
60 // NOLINTEND
61
62 public:
63 // vftables
64 // NOLINTBEGIN
65 MCNAPI static void** $vftable();
66 // NOLINTEND
67 };
68
70 public:
71 // virtual functions
72 // NOLINTBEGIN
73 // vIndex: 1
74 virtual ::gsl::not_null<::Block const*> getPlacementBlock(
75 ::gsl::not_null<::Block const*> block,
76 ::Actor const&,
77 ::BlockPos const&,
78 uchar face,
79 ::Vec3 const& clickPos,
80 int
81 ) const /*override*/;
82
83 // vIndex: 0
84 virtual ~UpdateVerticalHalfGetPlacementBlockCallback() /*override*/ = default;
85 // NOLINTEND
86
87 public:
88 // virtual function thunks
89 // NOLINTBEGIN
90 MCNAPI ::gsl::not_null<::Block const*> $getPlacementBlock(
91 ::gsl::not_null<::Block const*> block,
92 ::Actor const&,
93 ::BlockPos const&,
94 uchar face,
95 ::Vec3 const& clickPos,
96 int
97 ) const;
98 // NOLINTEND
99
100 public:
101 // vftables
102 // NOLINTBEGIN
103 MCNAPI static void** $vftable();
104 // NOLINTEND
105 };
106
108 public:
109 // member variables
110 // NOLINTBEGIN
113 // NOLINTEND
114
115 public:
116 // prevent constructor by default
117 EnabledStates& operator=(EnabledStates const&);
120
121 public:
122 // member functions
123 // NOLINTBEGIN
124 MCNAPI ::std::unique_ptr<::CompoundTag> buildNetworkTag() const;
125 // NOLINTEND
126
127 public:
128 // static functions
129 // NOLINTBEGIN
130 MCNAPI static void fromStringVector(
132 ::std::vector<::std::string> const& states
133 );
134 // NOLINTEND
135 };
136
137public:
138 // member variables
139 // NOLINTBEGIN
141 // NOLINTEND
142
143public:
144 // prevent constructor by default
145 PlacementPosition& operator=(PlacementPosition const&);
148
149public:
150 // virtual functions
151 // NOLINTBEGIN
152 // vIndex: 2
153 virtual ::std::unique_ptr<::CompoundTag> buildNetworkTag() const /*override*/;
154
155 // vIndex: 3
156 virtual void initializeFromNetwork(::CompoundTag const& tag) /*override*/;
157
158 // vIndex: 1
159 virtual void applyToBlockLegacy(::BlockLegacy& blockLegacy) const /*override*/;
160
161 // vIndex: 0
162 virtual ~PlacementPosition() /*override*/;
163 // NOLINTEND
164
165public:
166 // member functions
167 // NOLINTBEGIN
168 MCNAPI PlacementPosition(bool blockFace, bool verticalHalf);
169 // NOLINTEND
170
171public:
172 // static functions
173 // NOLINTBEGIN
174 MCNAPI static ::BlockTrait::PlacementPosition BlockFace();
175
176 MCNAPI static ::BlockTrait::PlacementPosition VerticalHalf();
177
178 MCNAPI static ::std::string const& getName();
179 // NOLINTEND
180
181public:
182 // constructor thunks
183 // NOLINTBEGIN
184 MCNAPI void* $ctor(bool blockFace, bool verticalHalf);
185 // NOLINTEND
186
187public:
188 // destructor thunk
189 // NOLINTBEGIN
190 MCNAPI void $dtor();
191 // NOLINTEND
192
193public:
194 // virtual function thunks
195 // NOLINTBEGIN
196 MCNAPI ::std::unique_ptr<::CompoundTag> $buildNetworkTag() const;
197
198 MCNAPI void $initializeFromNetwork(::CompoundTag const& tag);
199
200 MCNAPI void $applyToBlockLegacy(::BlockLegacy& blockLegacy) const;
201 // NOLINTEND
202
203public:
204 // vftables
205 // NOLINTBEGIN
206 MCNAPI static void** $vftable();
207 // NOLINTEND
208};
209
210} // 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 &, ::BlockPos const &, uchar face, ::Vec3 const &, int) const
MCAPI ::gsl::not_null<::Block const * > $getPlacementBlock(::gsl::not_null<::Block const * > block, ::Actor const &, ::BlockPos const &, uchar face, ::Vec3 const &clickPos, int) const
Definition PlacementPosition.h:21
MCAPI void $applyToBlockLegacy(::BlockLegacy &blockLegacy) const
static MCAPI ::BlockTrait::PlacementPosition BlockFace()
MCAPI void $initializeFromNetwork(::CompoundTag const &tag)
MCAPI void * $ctor(bool blockFace, bool verticalHalf)
static MCAPI ::BlockTrait::PlacementPosition VerticalHalf()
static MCAPI ::std::string const & getName()
static MCAPI void ** $vftable()
MCAPI ::std::unique_ptr<::CompoundTag > $buildNetworkTag() const
Definition Block.h:38
Definition CompoundTag.h:13
Definition Vec3.h:10
STL namespace.
Definition PlacementPosition.h:107
MCAPI ::std::unique_ptr<::CompoundTag > buildNetworkTag() const
static MCAPI void fromStringVector(::BlockTrait::PlacementPosition::EnabledStates &instance, ::std::vector<::std::string > const &states)
Definition Alias.h:14