LeviLamina
Loading...
Searching...
No Matches
Path.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/pathfinder/NodeType.h"
7#include "mc/world/level/pathfinder/PathCompletionType.h"
8
9// auto generated forward declare list
10// clang-format off
11class Actor;
12class BlockPos;
13class Vec3;
14// clang-format on
15
16class Path {
17public:
18 // Path inner types declare
19 // clang-format off
20 class Node;
21 // clang-format on
22
23 // Path inner types define
24 class Node {
25 public:
26 // member variables
27 // NOLINTBEGIN
28 ::ll::TypedStorage<4, 12, ::BlockPos> pos;
29 ::ll::TypedStorage<4, 4, ::NodeType> type;
30 // NOLINTEND
31 };
32
33 using NodeArray = ::std::vector<::Path::Node>;
34
35public:
36 // member variables
37 // NOLINTBEGIN
38 ::ll::TypedStorage<8, 24, ::std::vector<::Path::Node>> mNodes;
39 ::ll::TypedStorage<8, 8, uint64> mIndex;
40 ::ll::TypedStorage<1, 1, ::PathCompletionType> mCompletionType;
41 // NOLINTEND
42
43public:
44 // member functions
45 // NOLINTBEGIN
46 MCAPI ::BlockPos const& currentPos() const;
47
48 MCAPI ::Vec3 currentPos(::Actor const* actor) const;
49
50 MCAPI bool endsInXZ(::Vec3 const& pos);
51
52 MCAPI ::Vec3 getPos(::Actor const* actor, uint64 index) const;
53 // NOLINTEND
54};
Definition Actor.h:104
Definition BlockPos.h:18
Definition Path.h:24
Definition Path.h:16
Definition Vec3.h:10