LeviLamina
Loading...
Searching...
No Matches
PickupItemsGoal.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/world/actor/TempEPtr.h"
8#include "mc/world/actor/ai/goal/Goal.h"
9
10// auto generated forward declare list
11// clang-format off
12class Actor;
13class ItemActor;
14class ItemDescriptor;
15class ItemStack;
16class Mob;
17class Path;
18class WeakEntityRef;
20struct Shareable;
21// clang-format on
22
23class PickupItemsGoal : public ::Goal {
24public:
25 // member variables
26 // NOLINTBEGIN
27 ::ll::TypedStorage<8, 40, ::TempEPtr<::Actor>> mTarget;
28 ::ll::TypedStorage<4, 12, ::Vec3> mTargetPos;
29 ::ll::TypedStorage<8, 8, ::Mob&> mMob;
30 ::ll::TypedStorage<4, 4, int> mSearchRange;
31 ::ll::TypedStorage<4, 4, int> mSearchHeight;
32 ::ll::TypedStorage<4, 4, float> mSpeedModifier;
33 ::ll::TypedStorage<1, 1, bool> mTrackTarget;
34 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::Path>> mPath;
35 ::ll::TypedStorage<4, 4, int> mRandomStopInterval;
36 ::ll::TypedStorage<4, 4, float> mGoalRadiusSq;
37 ::ll::TypedStorage<4, 4, int> mTimeToRecalcPath;
38 ::ll::TypedStorage<1, 1, bool> mPickupBasedOnChance;
39 ::ll::TypedStorage<1, 1, bool> mCanPickupAnyItem;
40 ::ll::TypedStorage<4, 4, int> mTimeoutAfterBeingAttacked;
41 ::ll::TypedStorage<1, 1, bool> mCanPickupToHandOrEquipment;
42 ::ll::TypedStorage<1, 1, bool> mPickupSameItemsAsInHand;
43 ::ll::TypedStorage<8, 24, ::std::vector<::ItemDescriptor> const> mExcludedItemsList;
44 ::ll::TypedStorage<8, 24, ::std::vector<::WeakEntityRef>> mFilteredPickupTargets;
45 // NOLINTEND
46
47public:
48 // prevent constructor by default
49 PickupItemsGoal& operator=(PickupItemsGoal const&);
50 PickupItemsGoal(PickupItemsGoal const&);
51 PickupItemsGoal();
52
53public:
54 // virtual functions
55 // NOLINTBEGIN
56 virtual bool canUse() /*override*/;
57
58 virtual bool canContinueToUse() /*override*/;
59
60 virtual void start() /*override*/;
61
62 virtual void stop() /*override*/;
63
64 virtual void tick() /*override*/;
65
66 virtual void appendDebugInfo(::std::string& str) const /*override*/;
67
68 virtual ~PickupItemsGoal() /*override*/;
69 // NOLINTEND
70
71public:
72 // member functions
73 // NOLINTBEGIN
74 MCAPI void _dropItem(::ItemStack const& item) const;
75
76 MCAPI ::std::vector<::WeakEntityRef>
77 _filterValidTargets(::std::vector<::DistanceSortedActor> const& entities) const;
78
79 MCAPI ::Shareable const* _getShareableItem(::ItemStack const& item) const;
80
81 MCAPI bool _hasRoomForCarriedItem() const;
82
83 MCAPI bool _isSameItemAsInHand(::ItemStack const& item) const;
84
85 MCAPI void _pickItemUp(::ItemActor& itemActor);
86 // NOLINTEND
87
88public:
89 // destructor thunk
90 // NOLINTBEGIN
91 MCAPI void $dtor();
92 // NOLINTEND
93
94public:
95 // virtual function thunks
96 // NOLINTBEGIN
97 MCAPI bool $canUse();
98
99 MCAPI bool $canContinueToUse();
100
101 MCAPI void $start();
102
103 MCAPI void $stop();
104
105 MCAPI void $tick();
106
107 MCAPI void $appendDebugInfo(::std::string& str) const;
108
109
110 // NOLINTEND
111
112public:
113 // vftables
114 // NOLINTBEGIN
115 MCNAPI static void** $vftable();
116 // NOLINTEND
117};
Definition Actor.h:106
Definition Goal.h:14
Definition ItemActor.h:30
Definition ItemDescriptor.h:24
Definition ItemStack.h:26
Definition Mob.h:51
Definition Path.h:16
static MCAPI void ** $vftable()
Definition WeakEntityRef.h:14
Definition DistanceSortedActor.h:10
Definition Shareable.h:8