Skip to content
LeviLamina

API Reference

On this page

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