LeviLamina
Loading...
Searching...
No Matches
PathNavigation.h
1
#pragma once
2
3
#include "mc/_HeaderOutputPredefine.h"
4
5
// auto generated forward declare list
6
// clang-format off
7
class
Actor
;
8
class
BlockSource
;
9
class
Mob
;
10
class
NavigationComponent
;
11
class
Path
;
12
class
Vec2
;
13
class
Vec3
;
14
struct
NavigationDescription
;
15
// clang-format on
16
17
class
PathNavigation
{
18
public
:
19
// virtual functions
20
// NOLINTBEGIN
21
// vIndex: 0
22
virtual
~PathNavigation
() =
default
;
23
24
// vIndex: 1
25
virtual
void
initializeInternal(
::Mob
& mob,
::NavigationDescription
* description);
26
27
// vIndex: 2
28
virtual
void
tick(
::NavigationComponent
& parent,
::Mob
& mob);
29
30
// vIndex: 3
31
virtual ::Vec3 getTempMobPos(
::Mob
const
& mob)
const
;
32
33
// vIndex: 5
34
virtual ::std::unique_ptr<::Path> createPath(
::NavigationComponent
& parent,
::Mob
& mob,
::Vec3
const
& pos);
35
36
// vIndex: 4
37
virtual ::std::unique_ptr<::Path> createPath(
::NavigationComponent
& parent,
::Mob
& mob,
::Actor
const
& target);
38
39
// vIndex: 8
40
virtual
bool
moveTo(
::NavigationComponent
& parent,
::Mob
& mob,
::Vec3
const
& pos,
float
speed);
41
42
// vIndex: 7
43
virtual
bool
moveTo(
::NavigationComponent
& parent,
::Mob
& mob,
::Actor
const
& target,
float
speed);
44
45
// vIndex: 6
46
virtual
bool
moveTo(
::NavigationComponent
& parent,
::Mob
& mob, ::std::unique_ptr<::Path> newPath,
float
speed);
47
48
// vIndex: 9
49
virtual
void
stop(
::NavigationComponent
& parent,
::Mob
& mob);
50
51
// vIndex: 10
52
virtual
bool
travel(
::NavigationComponent
& parent,
::Mob
& mob,
float
& xa,
float
& ya,
float
& za);
53
54
// vIndex: 11
55
virtual
bool
canUpdatePath(
::Mob
const
& mob)
const
;
56
57
// vIndex: 12
58
virtual
void
updatePath(
::NavigationComponent
& parent,
::Mob
& mob);
59
// NOLINTEND
60
61
public
:
62
// member functions
63
// NOLINTBEGIN
64
MCAPI
float
_getHighestBlockHeight(
::BlockSource
& region,
::Mob
& mob,
::Vec3
const
& pos,
::Vec2
const
& aabb)
const
;
65
66
MCAPI
bool
_isPositionOnlyInAir(
::BlockSource
const
& region,
::Vec3
const
& pos,
::Vec2
const
& aabb)
const
;
67
// NOLINTEND
68
69
public
:
70
// virtual function thunks
71
// NOLINTBEGIN
72
MCAPI
void
$initializeInternal(
::Mob
& mob,
::NavigationDescription
* description);
73
74
MCAPI
void
$tick(
::NavigationComponent
& parent,
::Mob
& mob);
75
76
MCAPI ::Vec3 $getTempMobPos(
::Mob
const
& mob)
const
;
77
78
MCAPI ::std::unique_ptr<::Path> $createPath(
::NavigationComponent
& parent,
::Mob
& mob,
::Vec3
const
& pos);
79
80
MCFOLD ::std::unique_ptr<::Path> $createPath(
::NavigationComponent
& parent,
::Mob
& mob,
::Actor
const
& target);
81
82
MCAPI
bool
$moveTo(
::NavigationComponent
& parent,
::Mob
& mob,
::Vec3
const
& pos,
float
speed);
83
84
MCAPI
bool
$moveTo(
::NavigationComponent
& parent,
::Mob
& mob,
::Actor
const
& target,
float
speed);
85
86
MCAPI
bool
$moveTo(
::NavigationComponent
& parent,
::Mob
& mob, ::std::unique_ptr<::Path> newPath,
float
speed);
87
88
MCFOLD
void
$stop(
::NavigationComponent
& parent,
::Mob
& mob);
89
90
MCFOLD
bool
$travel(
::NavigationComponent
& parent,
::Mob
& mob,
float
& xa,
float
& ya,
float
& za);
91
92
MCAPI
bool
$canUpdatePath(
::Mob
const
& mob)
const
;
93
94
MCAPI
void
$updatePath(
::NavigationComponent
& parent,
::Mob
& mob);
95
// NOLINTEND
96
97
public
:
98
// vftables
99
// NOLINTBEGIN
100
MCNAPI
static
void
**
$vftable
();
101
// NOLINTEND
102
};
Actor
Definition
Actor.h:102
BlockSource
Definition
BlockSource.h:66
Mob
Definition
Mob.h:47
NavigationComponent
Definition
NavigationComponent.h:22
PathNavigation
Definition
PathNavigation.h:17
PathNavigation::$vftable
static MCAPI void ** $vftable()
Path
Definition
Path.h:16
Vec2
Definition
Vec2.h:5
Vec3
Definition
Vec3.h:10
NavigationDescription
Definition
NavigationDescription.h:13
src-server
mc
world
actor
ai
navigation
PathNavigation.h
Generated on Tue Nov 25 2025 04:01:37 for LeviLamina by
1.12.0