LeviLamina
Loading...
Searching...
No Matches
GoHomeGoal.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/actor/ai/goal/BaseGoal.h"
7#include "mc/world/level/BlockPos.h"
8
9// auto generated forward declare list
10// clang-format off
12class Mob;
13// clang-format on
14
15class GoHomeGoal : public ::BaseGoal {
16public:
17 // member variables
18 // NOLINTBEGIN
19 ::ll::TypedStorage<8, 8, ::Mob&> mMob;
20 ::ll::TypedStorage<4, 4, float> mSpeedMultiplier;
21 ::ll::TypedStorage<4, 4, int> mInterval;
22 ::ll::TypedStorage<4, 4, float> mGoalRadius;
23 ::ll::TypedStorage<4, 4, float> mCalculateNewPathRadius;
24 ::ll::TypedStorage<8, 24, ::std::vector<::ActorDefinitionTrigger>> mOnHomeTriggers;
25 ::ll::TypedStorage<8, 24, ::std::vector<::ActorDefinitionTrigger>> mOnFailedTriggers;
26 ::ll::TypedStorage<4, 12, ::BlockPos> mLastEndPos;
27 ::ll::TypedStorage<4, 4, float> mGoalRadiusSqr;
28 // NOLINTEND
29
30public:
31 // prevent constructor by default
32 GoHomeGoal& operator=(GoHomeGoal const&);
33 GoHomeGoal(GoHomeGoal const&);
34 GoHomeGoal();
35
36public:
37 // virtual functions
38 // NOLINTBEGIN
39 virtual bool canUse() /*override*/;
40
41 virtual bool canContinueToUse() /*override*/;
42
43 virtual void start() /*override*/;
44
45 virtual void stop() /*override*/;
46
47 virtual void tick() /*override*/;
48
49 virtual void appendDebugInfo(::std::string& str) const /*override*/;
50 // NOLINTEND
51
52public:
53 // member functions
54 // NOLINTBEGIN
55 MCAPI ::BlockPos _getHomePos() const;
56
57 MCAPI bool _hasRequiredComponents() const;
58
59 MCAPI bool _isInHomeDimension() const;
60 // NOLINTEND
61
62public:
63 // virtual function thunks
64 // NOLINTBEGIN
65 MCAPI bool $canUse();
66
67 MCAPI bool $canContinueToUse();
68
69 MCAPI void $start();
70
71 MCAPI void $stop();
72
73 MCAPI void $tick();
74
75 MCAPI void $appendDebugInfo(::std::string& str) const;
76
77
78 // NOLINTEND
79
80public:
81 // vftables
82 // NOLINTBEGIN
83 MCNAPI static void** $vftable();
84 // NOLINTEND
85};
Definition ActorDefinitionTrigger.h:14
Definition BaseGoal.h:12
static MCAPI void ** $vftable()
Definition Mob.h:55