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/world/actor/TempEPtr.h"
7#include "mc/world/actor/ai/goal/Goal.h"
8
9// auto generated forward declare list
10// clang-format off
11class Actor;
12class ItemActor;
13class ItemDescriptor;
14class ItemStack;
15class Mob;
16class Path;
17class Vec3;
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 // virtual functions
49 // NOLINTBEGIN
50 // vIndex: 1
51 virtual bool canUse() /*override*/;
52
53 // vIndex: 2
54 virtual bool canContinueToUse() /*override*/;
55
56 // vIndex: 4
57 virtual void start() /*override*/;
58
59 // vIndex: 5
60 virtual void stop() /*override*/;
61
62 // vIndex: 6
63 virtual void tick() /*override*/;
64
65 // vIndex: 7
66 virtual void appendDebugInfo(::std::string& str) const /*override*/;
67
68 // vIndex: 0
69 virtual ~PickupItemsGoal() /*override*/;
70 // NOLINTEND
71
72public:
73 // member functions
74 // NOLINTBEGIN
75 MCAPI void _dropItem(::ItemStack const& item) const;
76
77 MCAPI ::std::vector<::WeakEntityRef> _filterValidTargets(::std::vector<::DistanceSortedActor> const& entities
78 ) const;
79
80 MCAPI ::Shareable const* _getShareableItem(::ItemStack const& item) const;
81
82 MCAPI void _handlePickupItem(::Actor& itemEntity);
83
84 MCAPI bool _hasRoomForCarriedItem() const;
85
86 MCAPI bool _isSameItemAsInHand(::ItemStack const& item) const;
87
88 MCAPI void _pickItemUp(::ItemActor* itemActor);
89 // NOLINTEND
90
91public:
92 // destructor thunk
93 // NOLINTBEGIN
94 MCAPI void $dtor();
95 // NOLINTEND
96
97public:
98 // virtual function thunks
99 // NOLINTBEGIN
100 MCAPI bool $canUse();
101
102 MCAPI bool $canContinueToUse();
103
104 MCAPI void $start();
105
106 MCAPI void $stop();
107
108 MCAPI void $tick();
109
110 MCAPI void $appendDebugInfo(::std::string& str) const;
111 // NOLINTEND
112
113public:
114 // vftables
115 // NOLINTBEGIN
116 MCAPI static void** $vftable();
117 // NOLINTEND
118};
Definition Actor.h:104
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
Definition Vec3.h:10
Definition WeakEntityRef.h:14
Definition DistanceSortedActor.h:10
Definition Shareable.h:5