LeviLamina
Loading...
Searching...
No Matches
GoAndGiveItemsToOwnerGoal.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/shared_types/legacy/LevelSoundEvent.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/Tick.h"
11
12// auto generated forward declare list
13// clang-format off
15class Mob;
16class Path;
17namespace JsonUtil { class EmptyClass; }
18// clang-format on
19
21public:
22 // GoAndGiveItemsToOwnerGoal inner types declare
23 // clang-format off
24 class Definition;
25 // clang-format on
26
27 // GoAndGiveItemsToOwnerGoal inner types define
29 public:
30 // member variables
31 // NOLINTBEGIN
32 ::ll::TypedStorage<4, 4, float> mRunSpeed;
33 ::ll::TypedStorage<4, 4, float> mReachMobDistance;
34 ::ll::TypedStorage<4, 4, float> mThrowForce;
35 ::ll::TypedStorage<4, 4, float> mVerticalThrowMul;
36 ::ll::TypedStorage<4, 4, ::SharedTypes::Legacy::LevelSoundEvent> mThrowSound;
37 ::ll::TypedStorage<8, 24, ::std::vector<::ActorDefinitionTrigger>> mOnItemThrowTriggers;
38 // NOLINTEND
39
40 public:
41 // virtual functions
42 // NOLINTBEGIN
43 // vIndex: 0
44 virtual ~Definition() /*override*/ = default;
45 // NOLINTEND
46
47 public:
48 // static functions
49 // NOLINTBEGIN
50 MCAPI static void buildSchema(
51 ::std::string const& name,
52 ::std::shared_ptr<
54 );
55 // NOLINTEND
56
57 public:
58 // vftables
59 // NOLINTBEGIN
60 MCNAPI static void** $vftable();
61 // NOLINTEND
62 };
63
64 enum class State : int {
65 GoToOwner = 0,
66 Done = 1,
67 };
68
69public:
70 // member variables
71 // NOLINTBEGIN
72 ::ll::TypedStorage<8, 8, ::Mob&> mMob;
73 ::ll::TypedStorage<8, 64, ::GoAndGiveItemsToOwnerGoal::Definition> mDefinition;
74 ::ll::TypedStorage<4, 4, ::GoAndGiveItemsToOwnerGoal::State> mState;
75 ::ll::TypedStorage<8, 8, ::Tick> mLastPathCalculationTick;
76 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::Path>> mPath;
77 // NOLINTEND
78
79public:
80 // prevent constructor by default
84
85public:
86 // virtual functions
87 // NOLINTBEGIN
88 // vIndex: 1
89 virtual bool canUse() /*override*/;
90
91 // vIndex: 2
92 virtual bool canContinueToUse() /*override*/;
93
94 // vIndex: 4
95 virtual void start() /*override*/;
96
97 // vIndex: 5
98 virtual void stop() /*override*/;
99
100 // vIndex: 6
101 virtual void tick() /*override*/;
102
103 // vIndex: 7
104 virtual void appendDebugInfo(::std::string& str) const /*override*/;
105
106 // vIndex: 0
107 virtual ~GoAndGiveItemsToOwnerGoal() /*override*/;
108 // NOLINTEND
109
110public:
111 // member functions
112 // NOLINTBEGIN
113 MCAPI bool _attemptToGiveItem();
114 // NOLINTEND
115
116public:
117 // destructor thunk
118 // NOLINTBEGIN
119 MCAPI void $dtor();
120 // NOLINTEND
121
122public:
123 // virtual function thunks
124 // NOLINTBEGIN
125 MCAPI bool $canUse();
126
127 MCAPI bool $canContinueToUse();
128
129 MCAPI void $start();
130
131 MCFOLD void $stop();
132
133 MCAPI void $tick();
134
135 MCAPI void $appendDebugInfo(::std::string& str) const;
136 // NOLINTEND
137
138public:
139 // vftables
140 // NOLINTBEGIN
141 MCNAPI static void** $vftable();
142 // NOLINTEND
143};
Definition ActorDefinitionTrigger.h:5
Definition BaseGoalDefinition.h:10
Definition GoAndGiveItemsToOwnerGoal.h:28
Definition GoAndGiveItemsToOwnerGoal.h:20
static MCAPI void ** $vftable()
Definition Goal.h:14
Definition JsonSchemaObjectNode.h:8
Definition Mob.h:47
Definition Path.h:16