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