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/utility/json_utils/JsonSchemaObjectNode.h"
7#include "mc/world/actor/ai/goal/BaseGoalDefinition.h"
8#include "mc/world/actor/ai/goal/Goal.h"
9
10// auto generated forward declare list
11// clang-format off
12class Mob;
13class Path;
14class Vec3;
15struct ActorUniqueID;
16struct Tick;
17namespace JsonUtil { class EmptyClass; }
18// clang-format on
19
20class EatMobGoal : public ::Goal {
21public:
22 // EatMobGoal inner types declare
23 // clang-format off
24 class Definition;
25 // clang-format on
26
27 // EatMobGoal inner types define
29 public:
30 // member variables
31 // NOLINTBEGIN
38 // NOLINTEND
39
40 public:
41 // prevent constructor by default
42 Definition(Definition const&);
43 Definition();
44
45 public:
46 // virtual functions
47 // NOLINTBEGIN
48 // vIndex: 0
49 virtual ~Definition() /*override*/;
50 // NOLINTEND
51
52 public:
53 // member functions
54 // NOLINTBEGIN
55 MCAPI ::EatMobGoal::Definition& operator=(::EatMobGoal::Definition const&);
56 // NOLINTEND
57
58 public:
59 // static functions
60 // NOLINTBEGIN
61 MCAPI static void buildSchema(
62 ::std::string const& name,
64 );
65 // NOLINTEND
66
67 public:
68 // destructor thunk
69 // NOLINTBEGIN
70 MCAPI void $dtor();
71 // NOLINTEND
72
73 public:
74 // vftables
75 // NOLINTBEGIN
76 MCAPI static void** $vftable();
77 // NOLINTEND
78 };
79
80 enum class State : int {
81 MoveToTarget = 0,
82 EatAnimation = 1,
83 Done = 2,
84 };
85
86public:
87 // member variables
88 // NOLINTBEGIN
89 ::ll::TypedStorage<8, 8, ::Mob&> mMob;
90 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mTargetId;
91 ::ll::TypedStorage<8, 128, ::EatMobGoal::Definition> mDefinition;
92 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::Path>> mPath;
93 ::ll::TypedStorage<4, 4, ::EatMobGoal::State> mState;
94 ::ll::TypedStorage<8, 8, ::Tick> mEatAnimationTimer;
95 ::ll::TypedStorage<8, 8, ::Tick> mLastPathCalculationTick;
96 ::ll::TypedStorage<1, 1, bool> mShouldKillTarget;
97 ::ll::TypedStorage<4, 12, ::Vec3> mDropPos;
98 // NOLINTEND
99
100public:
101 // virtual functions
102 // NOLINTBEGIN
103 // vIndex: 1
104 virtual bool canUse() /*override*/;
105
106 // vIndex: 2
107 virtual bool canContinueToUse() /*override*/;
108
109 // vIndex: 4
110 virtual void start() /*override*/;
111
112 // vIndex: 5
113 virtual void stop() /*override*/;
114
115 // vIndex: 6
116 virtual void tick() /*override*/;
117
118 // vIndex: 7
119 virtual void appendDebugInfo(::std::string& str) const /*override*/;
120
121 // vIndex: 0
122 virtual ~EatMobGoal() /*override*/ = default;
123 // NOLINTEND
124
125public:
126 // destructor thunk
127 // NOLINTBEGIN
128
129 // NOLINTEND
130
131public:
132 // virtual function thunks
133 // NOLINTBEGIN
134 MCAPI bool $canUse();
135
136 MCAPI bool $canContinueToUse();
137
138 MCAPI void $start();
139
140 MCAPI void $stop();
141
142 MCAPI void $tick();
143
144 MCAPI void $appendDebugInfo(::std::string& str) const;
145 // NOLINTEND
146
147public:
148 // vftables
149 // NOLINTBEGIN
150 MCAPI static void** $vftable();
151 // NOLINTEND
152};
Definition BaseGoalDefinition.h:10
Definition EatMobGoal.h:28
Definition EatMobGoal.h:20
Definition Goal.h:14
Definition JsonSchemaObjectNode.h:8
Definition Mob.h:47
Definition Path.h:16
Definition Vec3.h:10
Definition ActorUniqueID.h:5
Definition Tick.h:5
Definition Alias.h:14