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/Goal.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 ::Goal {
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 bool _hasSnackableItems();
62
63 MCAPI bool _isSnackableItem(::ItemStack const& item) const;
64
65 MCFOLD void _updateHand(::ItemStack const& item);
66 // NOLINTEND
67
68public:
69 // destructor thunk
70 // NOLINTBEGIN
71 MCAPI void $dtor();
72 // NOLINTEND
73
74public:
75 // virtual function thunks
76 // NOLINTBEGIN
77 MCAPI bool $canUse();
78
79 MCAPI void $start();
80
81 MCAPI void $stop();
82
83 MCAPI void $tick();
84
85 MCAPI bool $canContinueToUse();
86
87 MCAPI void $appendDebugInfo(::std::string& str) const;
88
89 MCFOLD int $getRandomEatingEnd() const;
90
91
92 // NOLINTEND
93
94public:
95 // vftables
96 // NOLINTBEGIN
97 MCNAPI static void** $vftable();
98 // NOLINTEND
99};
Definition Actor.h:106
Definition Goal.h:14
Definition ItemDescriptor.h:24
Definition ItemStack.h:26
Definition Mob.h:51
Definition Path.h:16
static MCAPI void ** $vftable()