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
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 MCNAPI static void buildSchema(
55 ::std::string const& name,
57 root
58 );
59 // NOLINTEND
60
61 public:
62 // destructor thunk
63 // NOLINTBEGIN
64 MCNAPI void $dtor();
65 // NOLINTEND
66
67 public:
68 // vftables
69 // NOLINTBEGIN
70 MCNAPI 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 // prevent constructor by default
90 GoHomeGoal& operator=(GoHomeGoal const&);
91 GoHomeGoal(GoHomeGoal const&);
92 GoHomeGoal();
93
94public:
95 // virtual functions
96 // NOLINTBEGIN
97 // vIndex: 1
98 virtual bool canUse() /*override*/;
99
100 // vIndex: 2
101 virtual bool canContinueToUse() /*override*/;
102
103 // vIndex: 4
104 virtual void start() /*override*/;
105
106 // vIndex: 5
107 virtual void stop() /*override*/;
108
109 // vIndex: 6
110 virtual void tick() /*override*/;
111
112 // vIndex: 7
113 virtual void appendDebugInfo(::std::string& str) const /*override*/;
114
115 // vIndex: 0
116 virtual ~GoHomeGoal() /*override*/;
117 // NOLINTEND
118
119public:
120 // member functions
121 // NOLINTBEGIN
122 MCNAPI ::BlockPos _getHomePos() const;
123
124 MCNAPI bool _hasReachedHome() const;
125
126 MCNAPI bool _hasRequiredComponents() const;
127
128 MCNAPI bool _isInHomeDimension() const;
129
131 // NOLINTEND
132
133public:
134 // destructor thunk
135 // NOLINTBEGIN
136 MCNAPI void $dtor();
137 // NOLINTEND
138
139public:
140 // virtual function thunks
141 // NOLINTBEGIN
142 MCNAPI bool $canUse();
143
144 MCNAPI bool $canContinueToUse();
145
146 MCNAPI void $start();
147
148 MCNAPI void $stop();
149
150 MCNAPI void $tick();
151
152 MCNAPI void $appendDebugInfo(::std::string& str) const;
153 // NOLINTEND
154
155public:
156 // vftables
157 // NOLINTBEGIN
158 MCNAPI static void** $vftable();
159 // NOLINTEND
160};
Definition ActorDefinitionTrigger.h:5
Definition BaseGoalDefinition.h:10
Definition GoHomeGoal.h:26
static MCAPI void ** $vftable()
static MCAPI void buildSchema(::std::string const &name, ::std::shared_ptr<::JsonUtil::JsonSchemaObjectNode<::JsonUtil::EmptyClass, ::GoHomeGoal::GoHomeDefinition > > &root)
Definition GoHomeGoal.h:18
MCAPI bool _hasRequiredComponents() const
MCAPI bool $canContinueToUse()
MCAPI void _triggerOnFailedEvents()
MCAPI void $appendDebugInfo(::std::string &str) const
MCAPI void $start()
MCAPI bool _isInHomeDimension() const
MCAPI void $stop()
MCAPI void $dtor()
MCAPI bool _hasReachedHome() const
MCAPI::BlockPos _getHomePos() const
MCAPI bool $canUse()
static MCAPI void ** $vftable()
MCAPI void $tick()
Definition Goal.h:14
Definition JsonSchemaObjectNode.h:8
Definition Mob.h:47
Definition Alias.h:14