LeviLamina
Loading...
Searching...
No Matches
EatMobGoal.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/legacy/ActorUniqueID.h"
8#include "mc/world/actor/ai/goal/Goal.h"
9#include "mc/world/level/Tick.h"
10
11// auto generated forward declare list
12// clang-format off
13class Mob;
14class Path;
15// clang-format on
16
17class EatMobGoal : public ::Goal {
18public:
19 // EatMobGoal inner types define
20 enum class State : int {
21 MoveToTarget = 0,
22 EatAnimation = 1,
23 Done = 2,
24 };
25
26public:
27 // member variables
28 // NOLINTBEGIN
29 ::ll::TypedStorage<8, 8, ::Mob&> mMob;
30 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mTargetId;
31 ::ll::TypedStorage<4, 4, float> mRunSpeed;
32 ::ll::TypedStorage<4, 4, float> mEatAnimationTime;
33 ::ll::TypedStorage<4, 4, float> mPullInForce;
34 ::ll::TypedStorage<4, 4, float> mReachMobDistance;
35 ::ll::TypedStorage<8, 32, ::std::string> mEatMobSound;
36 ::ll::TypedStorage<8, 32, ::std::string> mLootTable;
37 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::Path>> mPath;
38 ::ll::TypedStorage<4, 4, ::EatMobGoal::State> mState;
39 ::ll::TypedStorage<8, 8, ::Tick> mEatAnimationTimer;
40 ::ll::TypedStorage<8, 8, ::Tick> mLastPathCalculationTick;
41 ::ll::TypedStorage<1, 1, bool> mShouldKillTarget;
42 ::ll::TypedStorage<4, 12, ::Vec3> mDropPos;
43 // NOLINTEND
44
45public:
46 // prevent constructor by default
47 EatMobGoal& operator=(EatMobGoal const&);
48 EatMobGoal(EatMobGoal const&);
49 EatMobGoal();
50
51public:
52 // virtual functions
53 // NOLINTBEGIN
54 virtual bool canUse() /*override*/;
55
56 virtual bool canContinueToUse() /*override*/;
57
58 virtual void start() /*override*/;
59
60 virtual void stop() /*override*/;
61
62 virtual void tick() /*override*/;
63
64 virtual void appendDebugInfo(::std::string& str) const /*override*/;
65
66 virtual ~EatMobGoal() /*override*/;
67 // NOLINTEND
68
69public:
70 // destructor thunk
71 // NOLINTBEGIN
72 MCAPI void $dtor();
73 // NOLINTEND
74
75public:
76 // virtual function thunks
77 // NOLINTBEGIN
78 MCAPI bool $canUse();
79
80 MCAPI bool $canContinueToUse();
81
82 MCAPI void $start();
83
84 MCAPI void $stop();
85
86 MCAPI void $tick();
87
88 MCAPI void $appendDebugInfo(::std::string& str) const;
89
90
91 // NOLINTEND
92
93public:
94 // vftables
95 // NOLINTBEGIN
96 MCNAPI static void** $vftable();
97 // NOLINTEND
98};
static MCAPI void ** $vftable()
Definition Goal.h:14
Definition Mob.h:50
Definition Path.h:16