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/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
12class BlockPos;
13class EntityContext;
14class Mob;
15class Path;
16class Vec3;
17struct Tick;
18namespace JsonUtil { class EmptyClass; }
19// clang-format on
20
21class AvoidBlockGoal : public ::Goal {
22public:
23 // AvoidBlockGoal inner types declare
24 // clang-format off
25 class Definition;
26 // clang-format on
27
28 // AvoidBlockGoal inner types define
30 public:
31 // member variables
32 // NOLINTBEGIN
43 // NOLINTEND
44
45 public:
46 // prevent constructor by default
47 Definition& operator=(Definition const&);
48 Definition(Definition const&);
49 Definition();
50
51 public:
52 // virtual functions
53 // NOLINTBEGIN
54 // vIndex: 0
55 virtual ~Definition() /*override*/;
56 // NOLINTEND
57
58 public:
59 // member functions
60 // NOLINTBEGIN
61 MCAPI void initialize(::EntityContext& entity, ::AvoidBlockGoal& goal) const;
62
63 MCAPI void setSoundEvent(::std::string const& soundEvent);
64
65 MCAPI void setTargetSelectionMethod(::std::string const& methodCased);
66 // NOLINTEND
67
68 public:
69 // static functions
70 // NOLINTBEGIN
71 MCAPI static void buildSchema(
72 ::std::string const& name,
74 root
75 );
76 // NOLINTEND
77
78 public:
79 // destructor thunk
80 // NOLINTBEGIN
81 MCAPI void $dtor();
82 // NOLINTEND
83
84 public:
85 // vftables
86 // NOLINTBEGIN
87 MCAPI static void** $vftable();
88 // NOLINTEND
89 };
90
91public:
92 // member variables
93 // NOLINTBEGIN
94 ::ll::TypedStorage<4, 12, ::Vec3> mTargetPos;
95 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::Path>> mPath;
96 ::ll::TypedStorage<8, 8, ::Mob&> mMob;
97 ::ll::TypedStorage<8, 8, ::Tick> mNextStartTick;
98 ::ll::TypedStorage<4, 12, ::BlockPos> mTargetBlockToAvoidPos;
99 ::ll::TypedStorage<8, 136, ::AvoidBlockGoal::Definition> mDefinition;
100 ::ll::TypedStorage<8, 8, ::Tick> mNextSoundEventTick;
101 // NOLINTEND
102
103public:
104 // virtual functions
105 // NOLINTBEGIN
106 // vIndex: 1
107 virtual bool canUse() /*override*/;
108
109 // vIndex: 2
110 virtual bool canContinueToUse() /*override*/;
111
112 // vIndex: 6
113 virtual void tick() /*override*/;
114
115 // vIndex: 7
116 virtual void appendDebugInfo(::std::string& str) const /*override*/;
117
118 // vIndex: 4
119 virtual void start() /*override*/;
120
121 // vIndex: 5
122 virtual void stop() /*override*/;
123
124 // vIndex: 0
125 virtual ~AvoidBlockGoal() /*override*/ = default;
126 // NOLINTEND
127
128public:
129 // member functions
130 // NOLINTBEGIN
131 MCAPI bool _findTargetBlock();
132 // NOLINTEND
133
134public:
135 // destructor thunk
136 // NOLINTBEGIN
137
138 // NOLINTEND
139
140public:
141 // virtual function thunks
142 // NOLINTBEGIN
143 MCAPI bool $canUse();
144
145 MCAPI bool $canContinueToUse();
146
147 MCAPI void $tick();
148
149 MCAPI void $appendDebugInfo(::std::string& str) const;
150
151 MCAPI void $start();
152
153 MCAPI void $stop();
154 // NOLINTEND
155
156public:
157 // vftables
158 // NOLINTBEGIN
159 MCAPI static void** $vftable();
160 // NOLINTEND
161};
Definition AvoidBlockGoal.h:29
Definition AvoidBlockGoal.h:21
Definition BaseGoalDefinition.h:10
Definition BlockPos.h:18
Definition EntityContext.h:16
Definition Goal.h:14
Definition JsonSchemaObjectNode.h:8
Definition Mob.h:47
Definition Path.h:16
Definition Vec3.h:10
Definition Tick.h:5
Definition Alias.h:14