LeviLamina
Loading...
Searching...
No Matches
BlockPos.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/util/Mirror.h"
7#include "mc/util/Rotation.h"
8
9// auto generated forward declare list
10// clang-format off
11class Vec3;
12// clang-format on
13
14class AABB;
15class BoundingBox;
16
17class BlockPos : public ll::math::intN3<BlockPos> {
18public:
19 using intN3::intN3;
20
21 LLNDAPI operator AABB() const;
22 LLNDAPI operator BoundingBox() const;
23
24 LLNDAPI Vec3 bottomCenter() const;
25 LLNDAPI Vec3 center() const;
26
27public:
28 // member functions
29 // NOLINTBEGIN
30 MCAPI BlockPos(::Vec3 const& v);
31
32 MCAPI BlockPos(float x, float y, float z);
33
34 MCAPI ::BlockPos above() const;
35
36 MCAPI ::BlockPos relative(uchar facing, int steps) const;
37
38 MCAPI ::std::string toCommandString() const;
39
40 MCAPI ::BlockPos transform(::Rotation rotation, ::Mirror mirror, ::Vec3 const& pivot) const;
41 // NOLINTEND
42
43public:
44 // static variables
45 // NOLINTBEGIN
46 MCAPI static ::BlockPos const& MAX();
47
48 MCAPI static ::BlockPos const& MIN();
49
50 MCAPI static ::BlockPos const& ONE();
51
52 MCAPI static ::BlockPos const& ZERO();
53 // NOLINTEND
54
55public:
56 // constructor thunks
57 // NOLINTBEGIN
58 MCAPI void* $ctor(::Vec3 const& v);
59
60 MCAPI void* $ctor(float x, float y, float z);
61 // NOLINTEND
62};
Definition AABB.h:18
Definition BlockPos.h:17
Definition BoundingBox.h:13
Definition Vec3.h:10