23class PickupItemsGoal :
public ::Goal {
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;
49 PickupItemsGoal& operator=(PickupItemsGoal
const&);
50 PickupItemsGoal(PickupItemsGoal
const&);
56 virtual bool canUse() ;
58 virtual bool canContinueToUse() ;
60 virtual void start() ;
66 virtual void appendDebugInfo(::std::string& str)
const ;
68 virtual ~PickupItemsGoal() ;
74 MCAPI
void _dropItem(
::ItemStack const& item)
const;
76 MCAPI ::std::vector<::WeakEntityRef>
77 _filterValidTargets(::std::vector<::DistanceSortedActor>
const& entities)
const;
79 MCAPI ::Shareable
const* _getShareableItem(
::ItemStack const& item)
const;
81 MCAPI
void _handlePickupItem(
::Actor& itemEntity);
83 MCAPI
bool _hasRoomForCarriedItem()
const;
85 MCAPI
bool _isSameItemAsInHand(
::ItemStack const& item)
const;
101 MCAPI
bool $canContinueToUse();
109 MCAPI
void $appendDebugInfo(::std::string& str)
const;