LeviLamina
Loading...
Searching...
No Matches
Agent.h
1
#pragma once
2
3
#include "mc/_HeaderOutputPredefine.h"
4
5
// auto generated inclusion list
6
#include "mc/world/actor/agent/agent_components/Direction.h"
7
8
// auto generated forward declare list
9
// clang-format off
10
class
AABB
;
11
class
Actor
;
12
class
BlockSource
;
13
class
EntityContext
;
14
class
Vec3
;
15
namespace
AgentComponents {
struct
BlockQueryResult; }
16
namespace
Util::Agent {
struct
SimulatedMoveResult; }
17
// clang-format on
18
19
namespace
Util::Agent {
20
// functions
21
// NOLINTBEGIN
22
MCNAPI ::AgentComponents::BlockQueryResult
23
getNextBlock(
::BlockSource
& source,
::Vec3
curPos,
float
bodyRot, ::AgentComponents::Direction direction);
24
25
MCNAPI ::AgentComponents::BlockQueryResult
26
getNextBlockSweep(
::BlockSource
& source,
::Vec3
curPos,
float
bodyRot, ::AgentComponents::Direction direction);
27
28
MCNAPI ::AgentComponents::BlockQueryResult
29
getNextBlockUnfiltered(
::BlockSource
& source,
::Vec3
curPos,
float
bodyRot, ::AgentComponents::Direction direction);
30
31
MCNAPI ::AgentComponents::BlockQueryResult getNextBlockUnfilteredSweep(
32
::BlockSource
& source,
33
::Vec3
curPos,
34
float
bodyRot,
35
::AgentComponents::Direction direction
36
);
37
38
MCNAPI ::Vec3
39
getNextPosFromDirection(
::Vec3
const
& startPosition,
float
bodyRotation, ::AgentComponents::Direction dir);
40
41
MCNAPI ::Util::Agent::SimulatedMoveResult
42
simulateMove(
::EntityContext
& entity, ::AgentComponents::Direction dir,
::Vec3
destination);
43
44
MCNAPI
void
testForCollidableMobs(
45
::Actor
const
& actor,
46
::BlockSource
& region,
47
::AABB
const
& intersectTestBox,
48
::std::vector<::AABB>& collisionAABBs
49
);
50
// NOLINTEND
51
52
// static variables
53
// NOLINTBEGIN
54
MCNAPI
float
const
& COMMAND_INTERVAL();
55
56
MCNAPI
float
const
& MOVE_EPSILON();
57
// NOLINTEND
58
59
}
// namespace Util::Agent
AABB
Definition
AABB.h:18
Actor
Definition
Actor.h:103
BlockSource
Definition
BlockSource.h:67
EntityContext
Definition
EntityContext.h:16
Vec3
Definition
Vec3.h:10
src
mc
world
actor
agent
utils
Agent.h
Generated on Fri Jun 13 2025 13:06:05 for LeviLamina by
1.12.0