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