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/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
13class BlockPos;
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
36 // NOLINTEND
37
38 public:
39 // prevent constructor by default
40 GoHomeDefinition& operator=(GoHomeDefinition const&);
43
44 public:
45 // virtual functions
46 // NOLINTBEGIN
47 // vIndex: 0
48 virtual ~GoHomeDefinition() /*override*/;
49 // NOLINTEND
50
51 public:
52 // static functions
53 // NOLINTBEGIN
54 MCAPI static void buildSchema(
55 ::std::string const& name,
57 root
58 );
59 // NOLINTEND
60
61 public:
62 // destructor thunk
63 // NOLINTBEGIN
64 MCAPI void $dtor();
65 // NOLINTEND
66
67 public:
68 // vftables
69 // NOLINTBEGIN
70 MCAPI static void** $vftable();
71 // NOLINTEND
72 };
73
74public:
75 // member variables
76 // NOLINTBEGIN
77 ::ll::TypedStorage<8, 8, ::Mob&> mMob;
78 ::ll::TypedStorage<4, 4, float> mSpeedMultiplier;
79 ::ll::TypedStorage<4, 4, int> mInterval;
80 ::ll::TypedStorage<4, 4, float> mGoalRadius;
81 ::ll::TypedStorage<4, 4, float> mCalculateNewPathRadius;
82 ::ll::TypedStorage<8, 24, ::std::vector<::ActorDefinitionTrigger>> mOnHomeTriggers;
83 ::ll::TypedStorage<8, 24, ::std::vector<::ActorDefinitionTrigger>> mOnFailedTriggers;
84 ::ll::TypedStorage<4, 12, ::BlockPos> mLastEndPos;
85 ::ll::TypedStorage<4, 4, float> mGoalRadiusSqr;
86 // NOLINTEND
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 ::BlockPos _getHomePos() const;
117
118 MCAPI bool _hasReachedHome() const;
119
120 MCAPI bool _hasRequiredComponents() const;
121
122 MCAPI bool _isInHomeDimension() const;
123
124 MCAPI void _triggerOnFailedEvents();
125 // NOLINTEND
126
127public:
128 // destructor thunk
129 // NOLINTBEGIN
130 MCAPI void $dtor();
131 // NOLINTEND
132
133public:
134 // virtual function thunks
135 // NOLINTBEGIN
136 MCAPI bool $canUse();
137
138 MCAPI bool $canContinueToUse();
139
140 MCAPI void $start();
141
142 MCAPI void $stop();
143
144 MCAPI void $tick();
145
146 MCAPI void $appendDebugInfo(::std::string& str) const;
147 // NOLINTEND
148
149public:
150 // vftables
151 // NOLINTBEGIN
152 MCAPI static void** $vftable();
153 // NOLINTEND
154};
Definition ActorDefinitionTrigger.h:5
Definition BaseGoalDefinition.h:10
Definition BlockPos.h:18
Definition GoHomeGoal.h:26
Definition GoHomeGoal.h:18
Definition Goal.h:14
Definition JsonSchemaObjectNode.h:8
Definition Mob.h:47
Definition Alias.h:14