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 ChunkPos;
12class Vec3;
13// clang-format on
14
15class AABB;
16class BoundingBox;
17
18class BlockPos : public ll::math::intN3<BlockPos> {
19public:
20 using intN3::intN3;
21
22 LLNDAPI operator AABB() const;
23 LLNDAPI operator BoundingBox() const;
24
25 LLNDAPI Vec3 bottomCenter() const;
26 LLNDAPI Vec3 center() const;
27
28public:
29 // member functions
30 // NOLINTBEGIN
31 MCAPI BlockPos(::Vec3 const& v);
32
33 MCAPI BlockPos(::ChunkPos const& cp, int y);
34
35 MCAPI BlockPos(int _x, int _y, int _z);
36
37 MCAPI BlockPos(float x, float y, float z);
38
39 MCAPI ::BlockPos above() const;
40
41 MCAPI uint64 hashCode() const;
42
43 MCAPI operator ::Vec3() const;
44
45 MCAPI ::BlockPos operator-(::BlockPos const& rhs) const;
46
47 MCAPI ::BlockPos relative(uchar facing, int steps) const;
48
49 MCAPI ::BlockPos transform(::Rotation rotation, ::Mirror mirror, ::Vec3 const& pivot) const;
50 // NOLINTEND
51
52public:
53 // static variables
54 // NOLINTBEGIN
55 MCAPI static ::BlockPos const& MAX();
56
57 MCAPI static ::BlockPos const& MIN();
58
59 MCAPI static ::BlockPos const& ONE();
60
61 MCAPI static ::BlockPos const& ZERO();
62 // NOLINTEND
63
64public:
65 // constructor thunks
66 // NOLINTBEGIN
67 MCAPI void* $ctor(::Vec3 const& v);
68
69 MCAPI void* $ctor(::ChunkPos const& cp, int y);
70
71 MCAPI void* $ctor(int _x, int _y, int _z);
72
73 MCAPI void* $ctor(float x, float y, float z);
74 // NOLINTEND
75};
Definition AABB.h:16
Definition BlockPos.h:18
Definition BoundingBox.h:18
Definition ChunkPos.h:11
Definition Vec3.h:10