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 void _handlePickupItem(::Actor& itemEntity);
82
83 MCAPI bool _hasRoomForCarriedItem() const;
84
85 MCAPI bool _isSameItemAsInHand(::ItemStack const& item) const;
86
87 MCAPI void _pickItemUp(::ItemActor* itemActor);
88 // NOLINTEND
89
90public:
91 // destructor thunk
92 // NOLINTBEGIN
93 MCAPI void $dtor();
94 // NOLINTEND
95
96public:
97 // virtual function thunks
98 // NOLINTBEGIN
99 MCAPI bool $canUse();
100
101 MCAPI bool $canContinueToUse();
102
103 MCAPI void $start();
104
105 MCAPI void $stop();
106
107 MCAPI void $tick();
108
109 MCAPI void $appendDebugInfo(::std::string& str) const;
110
111
112 // NOLINTEND
113
114public:
115 // vftables
116 // NOLINTBEGIN
117 MCNAPI static void** $vftable();
118 // NOLINTEND
119};
Definition Actor.h:105
Definition Goal.h:14
Definition ItemActor.h:29
Definition ItemDescriptor.h:23
Definition ItemStack.h:26
Definition Mob.h:50
Definition Path.h:16
static MCAPI void ** $vftable()
Definition WeakEntityRef.h:14
Definition DistanceSortedActor.h:10
Definition Shareable.h:5