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 // vIndex: 0
42 virtual ~GoHomeDefinition() /*override*/;
43 // NOLINTEND
44
45 public:
46 // static functions
47 // NOLINTBEGIN
48 MCAPI static void buildSchema(
49 ::std::string const& name,
51 root
52 );
53 // NOLINTEND
54
55 public:
56 // destructor thunk
57 // NOLINTBEGIN
58 MCAPI void $dtor();
59 // NOLINTEND
60
61 public:
62 // vftables
63 // NOLINTBEGIN
64 MCNAPI static void** $vftable();
65 // NOLINTEND
66 };
67
68public:
69 // member variables
70 // NOLINTBEGIN
71 ::ll::TypedStorage<8, 8, ::Mob&> mMob;
72 ::ll::TypedStorage<4, 4, float> mSpeedMultiplier;
73 ::ll::TypedStorage<4, 4, int> mInterval;
74 ::ll::TypedStorage<4, 4, float> mGoalRadius;
75 ::ll::TypedStorage<4, 4, float> mCalculateNewPathRadius;
76 ::ll::TypedStorage<8, 24, ::std::vector<::ActorDefinitionTrigger>> mOnHomeTriggers;
77 ::ll::TypedStorage<8, 24, ::std::vector<::ActorDefinitionTrigger>> mOnFailedTriggers;
78 ::ll::TypedStorage<4, 12, ::BlockPos> mLastEndPos;
79 ::ll::TypedStorage<4, 4, float> mGoalRadiusSqr;
80 // NOLINTEND
81
82public:
83 // prevent constructor by default
84 GoHomeGoal& operator=(GoHomeGoal const&);
85 GoHomeGoal(GoHomeGoal const&);
86 GoHomeGoal();
87
88public:
89 // virtual functions
90 // NOLINTBEGIN
91 // vIndex: 1
92 virtual bool canUse() /*override*/;
93
94 // vIndex: 2
95 virtual bool canContinueToUse() /*override*/;
96
97 // vIndex: 4
98 virtual void start() /*override*/;
99
100 // vIndex: 5
101 virtual void stop() /*override*/;
102
103 // vIndex: 6
104 virtual void tick() /*override*/;
105
106 // vIndex: 7
107 virtual void appendDebugInfo(::std::string& str) const /*override*/;
108
109 // vIndex: 0
110 virtual ~GoHomeGoal() /*override*/;
111 // NOLINTEND
112
113public:
114 // member functions
115 // NOLINTBEGIN
116 MCAPI bool _hasReachedHome() const;
117
118 MCAPI bool _hasRequiredComponents() const;
119
120 MCAPI void _triggerOnFailedEvents();
121 // NOLINTEND
122
123public:
124 // destructor thunk
125 // NOLINTBEGIN
126 MCAPI void $dtor();
127 // NOLINTEND
128
129public:
130 // virtual function thunks
131 // NOLINTBEGIN
132 MCAPI bool $canUse();
133
134 MCAPI bool $canContinueToUse();
135
136 MCAPI void $start();
137
138 MCAPI void $stop();
139
140 MCAPI void $tick();
141
142 MCAPI void $appendDebugInfo(::std::string& str) const;
143 // NOLINTEND
144
145public:
146 // vftables
147 // NOLINTBEGIN
148 MCNAPI static void** $vftable();
149 // NOLINTEND
150};
Definition ActorDefinitionTrigger.h:5
Definition BaseGoalDefinition.h:10
Definition GoHomeGoal.h:26
static MCAPI void ** $vftable()
Definition GoHomeGoal.h:18
static MCAPI void ** $vftable()
Definition Goal.h:14
Definition JsonSchemaObjectNode.h:8
Definition Mob.h:47