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/util/json_util/JsonSchemaObjectNode.h"
7#include "mc/world/actor/ai/goal/BaseGoalDefinition.h"
8#include "mc/world/actor/ai/goal/Goal.h"
9#include "mc/world/level/BlockPos.h"
10
11// auto generated forward declare list
12// clang-format off
14class Mob;
15namespace JsonUtil { class EmptyClass; }
16// clang-format on
17
18class GoHomeGoal : public ::Goal {
19public:
20 // GoHomeGoal inner types declare
21 // clang-format off
22 class GoHomeDefinition;
23 // clang-format on
24
25 // GoHomeGoal inner types define
27 public:
28 // member variables
29 // NOLINTBEGIN
30 ::ll::TypedStorage<4, 4, float> mSpeedMultiplier;
31 ::ll::TypedStorage<4, 4, int> mInterval;
32 ::ll::TypedStorage<4, 4, float> mGoalRadius;
33 ::ll::TypedStorage<4, 4, float> mCalculateNewPathRadius;
34 ::ll::TypedStorage<8, 24, ::std::vector<::ActorDefinitionTrigger>> mOnHomeTriggers;
35 ::ll::TypedStorage<8, 24, ::std::vector<::ActorDefinitionTrigger>> mOnFailedTriggers;
36 // NOLINTEND
37
38 public:
39 // virtual functions
40 // NOLINTBEGIN
41 virtual ~GoHomeDefinition() /*override*/;
42 // NOLINTEND
43
44 public:
45 // static functions
46 // NOLINTBEGIN
47 MCAPI static void buildSchema(
48 ::std::string const& name,
50 root
51 );
52 // NOLINTEND
53
54 public:
55 // destructor thunk
56 // NOLINTBEGIN
57 MCAPI void $dtor();
58 // NOLINTEND
59
60 public:
61 // vftables
62 // NOLINTBEGIN
63 MCNAPI static void** $vftable();
64 // NOLINTEND
65 };
66
67public:
68 // member variables
69 // NOLINTBEGIN
70 ::ll::TypedStorage<8, 8, ::Mob&> mMob;
71 ::ll::TypedStorage<4, 4, float> mSpeedMultiplier;
72 ::ll::TypedStorage<4, 4, int> mInterval;
73 ::ll::TypedStorage<4, 4, float> mGoalRadius;
74 ::ll::TypedStorage<4, 4, float> mCalculateNewPathRadius;
75 ::ll::TypedStorage<8, 24, ::std::vector<::ActorDefinitionTrigger>> mOnHomeTriggers;
76 ::ll::TypedStorage<8, 24, ::std::vector<::ActorDefinitionTrigger>> mOnFailedTriggers;
77 ::ll::TypedStorage<4, 12, ::BlockPos> mLastEndPos;
78 ::ll::TypedStorage<4, 4, float> mGoalRadiusSqr;
79 // NOLINTEND
80
81public:
82 // prevent constructor by default
83 GoHomeGoal& operator=(GoHomeGoal const&);
84 GoHomeGoal(GoHomeGoal const&);
85 GoHomeGoal();
86
87public:
88 // virtual functions
89 // NOLINTBEGIN
90 virtual bool canUse() /*override*/;
91
92 virtual bool canContinueToUse() /*override*/;
93
94 virtual void start() /*override*/;
95
96 virtual void stop() /*override*/;
97
98 virtual void tick() /*override*/;
99
100 virtual void appendDebugInfo(::std::string& str) const /*override*/;
101
102 virtual ~GoHomeGoal() /*override*/;
103 // NOLINTEND
104
105public:
106 // member functions
107 // NOLINTBEGIN
108 MCAPI bool _hasReachedHome() const;
109
110 MCAPI bool _hasRequiredComponents() const;
111
112 MCAPI void _triggerOnFailedEvents();
113 // NOLINTEND
114
115public:
116 // destructor thunk
117 // NOLINTBEGIN
118 MCAPI void $dtor();
119 // NOLINTEND
120
121public:
122 // virtual function thunks
123 // NOLINTBEGIN
124 MCAPI bool $canUse();
125
126 MCAPI bool $canContinueToUse();
127
128 MCAPI void $start();
129
130 MCAPI void $stop();
131
132 MCAPI void $tick();
133
134 MCAPI void $appendDebugInfo(::std::string& str) const;
135
136
137 // NOLINTEND
138
139public:
140 // vftables
141 // NOLINTBEGIN
142 MCNAPI static void** $vftable();
143 // NOLINTEND
144};
Definition ActorDefinitionTrigger.h:9
Definition BaseGoalDefinition.h:10
Definition GoHomeGoal.h:26
static MCAPI void ** $vftable()
static MCAPI void ** $vftable()
Definition Goal.h:14
Definition EmptyClass.h:7
Definition JsonSchemaObjectNode.h:8
Definition Mob.h:50