LeviLamina
Loading...
Searching...
No Matches
AvoidBlockGoal.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/math/Vec3.h"
7#include "mc/deps/shared_types/legacy/LevelSoundEvent.h"
8#include "mc/deps/shared_types/shared_types/FloatRange.h"
9#include "mc/util/TargetSelectionMethod.h"
10#include "mc/world/actor/ai/goal/Goal.h"
11#include "mc/world/level/BlockPos.h"
12#include "mc/world/level/Tick.h"
13
14// auto generated forward declare list
15// clang-format off
17class ItemDescriptor;
18class Mob;
19class Path;
20// clang-format on
21
22class AvoidBlockGoal : public ::Goal {
23public:
24 // member variables
25 // NOLINTBEGIN
26 ::ll::TypedStorage<4, 12, ::Vec3> mTargetPos;
27 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::Path>> mPath;
28 ::ll::TypedStorage<8, 8, ::Mob&> mMob;
29 ::ll::TypedStorage<8, 8, ::Tick> mNextStartTick;
30 ::ll::TypedStorage<4, 12, ::BlockPos> mTargetBlockToAvoidPos;
31 ::ll::TypedStorage<4, 4, float> mWalkSpeedModifier;
32 ::ll::TypedStorage<4, 4, float> mSprintSpeedModifier;
33 ::ll::TypedStorage<4, 4, int> mSearchRange;
34 ::ll::TypedStorage<4, 4, int> mSearchHeight;
35 ::ll::TypedStorage<4, 4, int> mInterval;
36 ::ll::TypedStorage<1, 1, ::TargetSelectionMethod> mMethod;
37 ::ll::TypedStorage<8, 24, ::std::vector<::ItemDescriptor>> mTargetBlockDescriptors;
38 ::ll::TypedStorage<8, 24, ::std::vector<::ActorDefinitionTrigger>> mOnEscapedTriggers;
39 ::ll::TypedStorage<4, 4, ::SharedTypes::Legacy::LevelSoundEvent> mSoundEvent;
40 ::ll::TypedStorage<4, 8, ::SharedTypes::FloatRange> mSoundIntervalRange;
41 ::ll::TypedStorage<8, 8, ::Tick> mNextSoundEventTick;
42 // NOLINTEND
43
44public:
45 // prevent constructor by default
46 AvoidBlockGoal& operator=(AvoidBlockGoal const&);
47 AvoidBlockGoal(AvoidBlockGoal const&);
48 AvoidBlockGoal();
49
50public:
51 // virtual functions
52 // NOLINTBEGIN
53 virtual bool canUse() /*override*/;
54
55 virtual bool canContinueToUse() /*override*/;
56
57 virtual void tick() /*override*/;
58
59 virtual void appendDebugInfo(::std::string& str) const /*override*/;
60
61 virtual void start() /*override*/;
62
63 virtual void stop() /*override*/;
64
65 virtual ~AvoidBlockGoal() /*override*/;
66 // NOLINTEND
67
68public:
69 // member functions
70 // NOLINTBEGIN
71 MCAPI bool _findTargetBlock();
72 // NOLINTEND
73
74public:
75 // destructor thunk
76 // NOLINTBEGIN
77 MCAPI void $dtor();
78 // NOLINTEND
79
80public:
81 // virtual function thunks
82 // NOLINTBEGIN
83 MCAPI bool $canUse();
84
85 MCAPI bool $canContinueToUse();
86
87 MCAPI void $tick();
88
89 MCAPI void $appendDebugInfo(::std::string& str) const;
90
91 MCAPI void $start();
92
93 MCAPI void $stop();
94
95
96 // NOLINTEND
97
98public:
99 // vftables
100 // NOLINTBEGIN
101 MCNAPI static void** $vftable();
102 // NOLINTEND
103};
Definition ActorDefinitionTrigger.h:9
static MCAPI void ** $vftable()
Definition Goal.h:14
Definition ItemDescriptor.h:23
Definition Mob.h:50
Definition Path.h:16