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&);
52
53public:
54 // virtual functions
55 // NOLINTBEGIN
56 // vIndex: 1
57 virtual bool canUse() /*override*/;
58
59 // vIndex: 2
60 virtual bool canContinueToUse() /*override*/;
61
62 // vIndex: 4
63 virtual void start() /*override*/;
64
65 // vIndex: 5
66 virtual void stop() /*override*/;
67
68 // vIndex: 6
69 virtual void tick() /*override*/;
70
71 // vIndex: 7
72 virtual void appendDebugInfo(::std::string& str) const /*override*/;
73
74 // vIndex: 0
75 virtual ~PickupItemsGoal() /*override*/;
76 // NOLINTEND
77
78public:
79 // member functions
80 // NOLINTBEGIN
81 MCAPI void _dropItem(::ItemStack const& item) const;
82
83 MCAPI ::std::vector<::WeakEntityRef>
84 _filterValidTargets(::std::vector<::DistanceSortedActor> const& entities) const;
85
86 MCAPI ::Shareable const* _getShareableItem(::ItemStack const& item) const;
87
88 MCAPI void _handlePickupItem(::Actor& itemEntity);
89
90 MCAPI bool _hasRoomForCarriedItem() const;
91
92 MCAPI bool _isSameItemAsInHand(::ItemStack const& item) const;
93
94 MCAPI void _pickItemUp(::ItemActor* itemActor);
95 // NOLINTEND
96
97public:
98 // destructor thunk
99 // NOLINTBEGIN
100 MCAPI void $dtor();
101 // NOLINTEND
102
103public:
104 // virtual function thunks
105 // NOLINTBEGIN
106 MCAPI bool $canUse();
107
108 MCAPI bool $canContinueToUse();
109
110 MCAPI void $start();
111
112 MCAPI void $stop();
113
114 MCAPI void $tick();
115
116 MCAPI void $appendDebugInfo(::std::string& str) const;
117 // NOLINTEND
118
119public:
120 // vftables
121 // NOLINTBEGIN
122 MCNAPI static void** $vftable();
123 // NOLINTEND
124};
Definition Actor.h:103
Definition Goal.h:14
Definition ItemActor.h:27
Definition ItemDescriptor.h:22
Definition ItemStack.h:25
Definition Mob.h:47
Definition Path.h:16
Definition PickupItemsGoal.h:23
static MCAPI void ** $vftable()
Definition WeakEntityRef.h:14
Definition DistanceSortedActor.h:10
Definition Shareable.h:5