LeviLamina
Loading...
Searching...
No Matches
ShareItemsGoal.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/actor/ai/goal/Goal.h"
7#include "mc/world/item/ItemStack.h"
8
9// auto generated forward declare list
10// clang-format off
11class Mob;
12class Path;
13struct MobDescriptor;
14// clang-format on
15
16class ShareItemsGoal : public ::Goal {
17public:
18 // member variables
19 // NOLINTBEGIN
20 ::ll::TypedStorage<8, 8, ::Mob&> mMob;
21 ::ll::TypedStorage<4, 4, int> mThrowCountdown;
22 ::ll::TypedStorage<4, 4, int> mSearchRange;
23 ::ll::TypedStorage<4, 4, float> mSpeedModifier;
24 ::ll::TypedStorage<4, 4, float> mGoalRadiusSq;
25 ::ll::TypedStorage<4, 4, int> mTimeToRecalcPath;
26 ::ll::TypedStorage<8, 24, ::std::vector<::MobDescriptor>> mMobFilters;
27 ::ll::TypedStorage<8, 152, ::ItemStack> mItemToShare;
28 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::Path>> mPath;
29 // NOLINTEND
30
31public:
32 // prevent constructor by default
33 ShareItemsGoal& operator=(ShareItemsGoal const&);
34 ShareItemsGoal(ShareItemsGoal const&);
35 ShareItemsGoal();
36
37public:
38 // virtual functions
39 // NOLINTBEGIN
40 virtual bool canUse() /*override*/;
41
42 virtual bool canContinueToUse() /*override*/;
43
44 virtual void start() /*override*/;
45
46 virtual void stop() /*override*/;
47
48 virtual void tick() /*override*/;
49
50 virtual void appendDebugInfo(::std::string& str) const /*override*/;
51
52 virtual ~ShareItemsGoal() /*override*/;
53 // NOLINTEND
54
55public:
56 // member functions
57 // NOLINTBEGIN
58 MCAPI ::std::pair<int, ::ItemStack>
59 selectEntityToShareWith(::std::vector<::std::pair<int, ::ItemStack>> const& shareableItems);
60 // NOLINTEND
61
62public:
63 // destructor thunk
64 // NOLINTBEGIN
65 MCAPI void $dtor();
66 // NOLINTEND
67
68public:
69 // virtual function thunks
70 // NOLINTBEGIN
71 MCAPI bool $canUse();
72
73 MCAPI bool $canContinueToUse();
74
75 MCAPI void $start();
76
77 MCAPI void $stop();
78
79 MCAPI void $tick();
80
81 MCAPI void $appendDebugInfo(::std::string& str) const;
82
83
84 // NOLINTEND
85
86public:
87 // vftables
88 // NOLINTBEGIN
89 MCNAPI static void** $vftable();
90 // NOLINTEND
91};
Definition Goal.h:14
Definition Mob.h:50
Definition Path.h:16
static MCAPI void ** $vftable()
Definition MobDescriptor.h:8