LeviLamina
Loading...
Searching...
No Matches
AvoidBlockGoal.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/math/Vec3.h"
7#include "mc/deps/shared_types/legacy/LevelSoundEvent.h"
8#include "mc/util/FloatRange.h"
9#include "mc/util/TargetSelectionMethod.h"
10#include "mc/util/json_util/JsonSchemaObjectNode.h"
11#include "mc/world/actor/ai/goal/BaseGoalDefinition.h"
12#include "mc/world/actor/ai/goal/Goal.h"
13#include "mc/world/level/BlockPos.h"
14#include "mc/world/level/Tick.h"
15
16// auto generated forward declare list
17// clang-format off
19class ItemDescriptor;
20class Mob;
21class Path;
22namespace JsonUtil { class EmptyClass; }
23// clang-format on
24
25class AvoidBlockGoal : public ::Goal {
26public:
27 // AvoidBlockGoal inner types declare
28 // clang-format off
29 class Definition;
30 // clang-format on
31
32 // AvoidBlockGoal inner types define
34 public:
35 // member variables
36 // NOLINTBEGIN
37 ::ll::TypedStorage<4, 4, float> mWalkSpeedModifier;
38 ::ll::TypedStorage<4, 4, float> mSprintSpeedModifier;
39 ::ll::TypedStorage<4, 4, int> mInterval;
40 ::ll::TypedStorage<4, 4, int> mSearchRange;
41 ::ll::TypedStorage<4, 4, int> mSearchHeight;
42 ::ll::TypedStorage<1, 1, ::TargetSelectionMethod> mMethod;
43 ::ll::TypedStorage<8, 24, ::std::vector<::ItemDescriptor>> mTargetBlockDescriptors;
44 ::ll::TypedStorage<8, 24, ::std::vector<::ActorDefinitionTrigger>> mOnEscapedTriggers;
45 ::ll::TypedStorage<4, 4, ::SharedTypes::Legacy::LevelSoundEvent> mSoundEvent;
46 ::ll::TypedStorage<4, 8, ::FloatRange> mSoundIntervalRange;
47 // NOLINTEND
48
49 public:
50 // virtual functions
51 // NOLINTBEGIN
52 // vIndex: 0
53 virtual ~Definition() /*override*/;
54 // NOLINTEND
55
56 public:
57 // member functions
58 // NOLINTBEGIN
59 MCAPI void setSoundEvent(::std::string const& soundEvent);
60
61 MCAPI void setTargetSelectionMethod(::std::string const& methodCased);
62 // NOLINTEND
63
64 public:
65 // static functions
66 // NOLINTBEGIN
67 MCAPI static void buildSchema(
68 ::std::string const& name,
70 root
71 );
72 // NOLINTEND
73
74 public:
75 // destructor thunk
76 // NOLINTBEGIN
77 MCAPI void $dtor();
78 // NOLINTEND
79
80 public:
81 // vftables
82 // NOLINTBEGIN
83 MCNAPI static void** $vftable();
84 // NOLINTEND
85 };
86
87public:
88 // member variables
89 // NOLINTBEGIN
90 ::ll::TypedStorage<4, 12, ::Vec3> mTargetPos;
91 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::Path>> mPath;
92 ::ll::TypedStorage<8, 8, ::Mob&> mMob;
93 ::ll::TypedStorage<8, 8, ::Tick> mNextStartTick;
94 ::ll::TypedStorage<4, 12, ::BlockPos> mTargetBlockToAvoidPos;
95 ::ll::TypedStorage<8, 104, ::AvoidBlockGoal::Definition> mDefinition;
96 ::ll::TypedStorage<8, 8, ::Tick> mNextSoundEventTick;
97 // NOLINTEND
98
99public:
100 // prevent constructor by default
101 AvoidBlockGoal& operator=(AvoidBlockGoal const&);
104
105public:
106 // virtual functions
107 // NOLINTBEGIN
108 // vIndex: 1
109 virtual bool canUse() /*override*/;
110
111 // vIndex: 2
112 virtual bool canContinueToUse() /*override*/;
113
114 // vIndex: 6
115 virtual void tick() /*override*/;
116
117 // vIndex: 7
118 virtual void appendDebugInfo(::std::string& str) const /*override*/;
119
120 // vIndex: 4
121 virtual void start() /*override*/;
122
123 // vIndex: 5
124 virtual void stop() /*override*/;
125
126 // vIndex: 0
127 virtual ~AvoidBlockGoal() /*override*/ = default;
128 // NOLINTEND
129
130public:
131 // member functions
132 // NOLINTBEGIN
133 MCAPI bool _findTargetBlock();
134 // NOLINTEND
135
136public:
137 // virtual function thunks
138 // NOLINTBEGIN
139 MCAPI bool $canUse();
140
141 MCAPI bool $canContinueToUse();
142
143 MCAPI void $tick();
144
145 MCAPI void $appendDebugInfo(::std::string& str) const;
146
147 MCAPI void $start();
148
149 MCAPI void $stop();
150 // NOLINTEND
151
152public:
153 // vftables
154 // NOLINTBEGIN
155 MCNAPI static void** $vftable();
156 // NOLINTEND
157};
Definition ActorDefinitionTrigger.h:5
Definition AvoidBlockGoal.h:33
static MCAPI void ** $vftable()
Definition AvoidBlockGoal.h:25
static MCAPI void ** $vftable()
Definition BaseGoalDefinition.h:10
Definition Goal.h:14
Definition ItemDescriptor.h:22
Definition JsonSchemaObjectNode.h:8
Definition Mob.h:47
Definition Path.h:16