LeviLamina
Loading...
Searching...
No Matches
SnackGoal.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/BaseGoal.h"
8
9// auto generated forward declare list
10// clang-format off
11class Actor;
12class ItemDescriptor;
13class ItemStack;
14class Mob;
15class Path;
16// clang-format on
17
18class SnackGoal : public ::BaseGoal {
19public:
20 // member variables
21 // NOLINTBEGIN
22 ::ll::TypedStorage<8, 8, ::Mob&> mMob;
23 ::ll::TypedStorage<8, 24, ::std::vector<::ItemDescriptor>> mItems;
24 ::ll::TypedStorage<8, 8, uint64> mCooldown;
25 ::ll::TypedStorage<4, 4, int const> mSnackCooldownTotal;
26 ::ll::TypedStorage<4, 4, int const> mCooldownMin;
27 ::ll::TypedStorage<4, 4, int const> mStopChance;
28 ::ll::TypedStorage<8, 40, ::TempEPtr<::Actor>> mTarget;
29 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::Path>> mPath;
30 // NOLINTEND
31
32public:
33 // prevent constructor by default
34 SnackGoal& operator=(SnackGoal const&);
35 SnackGoal(SnackGoal const&);
36 SnackGoal();
37
38public:
39 // virtual functions
40 // NOLINTBEGIN
41 virtual ~SnackGoal() /*override*/;
42
43 virtual bool canUse() /*override*/;
44
45 virtual void start() /*override*/;
46
47 virtual void stop() /*override*/;
48
49 virtual void tick() /*override*/;
50
51 virtual bool canContinueToUse() /*override*/;
52
53 virtual void appendDebugInfo(::std::string& str) const /*override*/;
54
55 virtual int getRandomEatingEnd() const;
56 // NOLINTEND
57
58public:
59 // member functions
60 // NOLINTBEGIN
61 MCAPI
62 SnackGoal(::Mob& mob, ::std::vector<::ItemDescriptor> const& itemList, float cooldown, float min, float stopChance);
63
64 MCAPI bool _hasSnackableItems();
65
66 MCFOLD void _updateHand(::ItemStack const& item);
67 // NOLINTEND
68
69public:
70 // constructor thunks
71 // NOLINTBEGIN
72 MCAPI void*
73 $ctor(::Mob& mob, ::std::vector<::ItemDescriptor> const& itemList, float cooldown, float min, float stopChance);
74 // NOLINTEND
75
76public:
77 // destructor thunk
78 // NOLINTBEGIN
79 MCAPI void $dtor();
80 // NOLINTEND
81
82public:
83 // virtual function thunks
84 // NOLINTBEGIN
85 MCAPI bool $canUse();
86
87 MCAPI void $start();
88
89 MCAPI void $stop();
90
91 MCAPI void $tick();
92
93 MCAPI bool $canContinueToUse();
94
95 MCAPI void $appendDebugInfo(::std::string& str) const;
96
97 MCFOLD int $getRandomEatingEnd() const;
98
99
100 // NOLINTEND
101
102public:
103 // vftables
104 // NOLINTBEGIN
105 MCNAPI static void** $vftable();
106 // NOLINTEND
107};
Definition Actor.h:125
Definition ItemDescriptor.h:25
Definition ItemStack.h:35
Definition Mob.h:57
Definition Path.h:16
static MCAPI void ** $vftable()