LeviLamina
Loading...
Searching...
No Matches
SwimWithEntityGoal.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/actor/TempEPtr.h"
7#include "mc/world/actor/ai/goal/BaseGoal.h"
8
9// auto generated forward declare list
10// clang-format off
11class Actor;
12class Mob;
13struct MobDescriptor;
14// clang-format on
15
16class SwimWithEntityGoal : public ::BaseGoal {
17public:
18 // SwimWithEntityGoal inner types define
19 enum class EntityGoals : int {
20 CatchUpToEntity = 0,
21 MatchEntityDirection = 1,
22 };
23
24public:
25 // member variables
26 // NOLINTBEGIN
27 ::ll::TypedStorage<8, 8, ::Mob&> mMob;
28 ::ll::TypedStorage<8, 40, ::TempEPtr<::Actor>> mFollowing;
29 ::ll::TypedStorage<4, 4, int> mIntervalRefreshTicks;
30 ::ll::TypedStorage<4, 4, int> mIntervalTicks;
31 ::ll::TypedStorage<4, 4, float> mChanceToStop;
32 ::ll::TypedStorage<4, 4, float> mSuccessRate;
33 ::ll::TypedStorage<4, 4, float> mCatchUpThreshold;
34 ::ll::TypedStorage<4, 4, float> mMatchDirectionThreshold;
35 ::ll::TypedStorage<4, 4, float> mCatchUpMultiplier;
36 ::ll::TypedStorage<4, 4, float> mSpeedMultiplier;
37 ::ll::TypedStorage<4, 4, float> mSearchRange;
38 ::ll::TypedStorage<4, 4, float> mStopDistance;
39 ::ll::TypedStorage<4, 4, ::SwimWithEntityGoal::EntityGoals> mCurrentGoal;
40 ::ll::TypedStorage<8, 24, ::std::vector<::MobDescriptor>> mTargetTypes;
41 // NOLINTEND
42
43public:
44 // prevent constructor by default
45 SwimWithEntityGoal& operator=(SwimWithEntityGoal const&);
46 SwimWithEntityGoal(SwimWithEntityGoal const&);
47 SwimWithEntityGoal();
48
49public:
50 // virtual functions
51 // NOLINTBEGIN
52 virtual bool canUse() /*override*/;
53
54 virtual bool canContinueToUse() /*override*/;
55
56 virtual bool canBeInterrupted() /*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 // NOLINTEND
66
67public:
68 // member functions
69 // NOLINTBEGIN
70 MCAPI bool _setWantedMob();
71 // NOLINTEND
72
73public:
74 // virtual function thunks
75 // NOLINTBEGIN
76 MCAPI bool $canUse();
77
78 MCAPI bool $canContinueToUse();
79
80 MCFOLD bool $canBeInterrupted();
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};
Definition Actor.h:113
Definition BaseGoal.h:12
Definition Mob.h:56
Definition MobDescriptor.h:8