LeviLamina
Loading...
Searching...
No Matches
CommandPosition.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4#include "mc/world/level/BlockPos.h"
5
6// auto generated inclusion list
7#include "mc/deps/core/math/Vec3.h"
8
9// auto generated forward declare list
10// clang-format off
11class CommandOrigin;
12class CompoundTag;
13// clang-format on
14
16public:
17 // member variables
18 // NOLINTBEGIN
19 ::ll::TypedStorage<4, 12, ::Vec3> mOffset;
20 ::ll::TypedStorage<1, 1, bool> mRelativeX;
21 ::ll::TypedStorage<1, 1, bool> mRelativeY;
22 ::ll::TypedStorage<1, 1, bool> mRelativeZ;
23 ::ll::TypedStorage<1, 1, bool> mLocal;
24 // NOLINTEND
25
26public:
27 BlockPos getBlockPos(int version, CommandOrigin const& origin, Vec3 const& offset) const {
28 BlockPos result;
29 auto pos = getPosition(version, origin, offset);
30 result.x = pos.x + 0.001f;
31 result.y = pos.y + 0.001f;
32 result.z = pos.z + 0.001f;
33 return result;
34 }
35
36public:
37 // member functions
38 // NOLINTBEGIN
39 MCAPI ::Vec3 getPosition(int version, ::CommandOrigin const& origin, ::Vec3 const& offsetFromBase) const;
40
41 MCAPI void load(::CompoundTag const& tag);
42 // NOLINTEND
43};
44
45// clang-format off
46template <>
47MCAPI ::ll::type_id_ref Bedrock::typeid_storage_impl<class CommandRegistry, ::CommandPosition>();
48// clang-format on
Definition BlockPos.h:21
Definition CommandOrigin.h:31
Definition CommandPosition.h:15
Definition CompoundTag.h:18
Definition Vec3.h:10