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 // virtual functions
34 // NOLINTBEGIN
35 // vIndex: 1
36 virtual bool canUse() /*override*/;
37
38 // vIndex: 4
39 virtual void start() /*override*/;
40
41 // vIndex: 5
42 virtual void stop() /*override*/;
43
44 // vIndex: 6
45 virtual void tick() /*override*/;
46
47 // vIndex: 2
48 virtual bool canContinueToUse() /*override*/;
49
50 // vIndex: 7
51 virtual void appendDebugInfo(::std::string& str) const /*override*/;
52
53 // vIndex: 10
54 virtual int getRandomEatingEnd() const;
55
56 // vIndex: 0
57 virtual ~SnackGoal() /*override*/;
58 // NOLINTEND
59
60public:
61 // member functions
62 // NOLINTBEGIN
63 MCAPI bool _hasSnackableItems();
64
65 MCAPI bool _isSnackableItem(::ItemStack const& item) const;
66
67 MCFOLD void _updateHand(::ItemStack const& item);
68 // NOLINTEND
69
70public:
71 // destructor thunk
72 // NOLINTBEGIN
73 MCAPI void $dtor();
74 // NOLINTEND
75
76public:
77 // virtual function thunks
78 // NOLINTBEGIN
79 MCAPI bool $canUse();
80
81 MCAPI void $start();
82
83 MCAPI void $stop();
84
85 MCAPI void $tick();
86
87 MCAPI bool $canContinueToUse();
88
89 MCAPI void $appendDebugInfo(::std::string& str) const;
90
91 MCFOLD int $getRandomEatingEnd() const;
92 // NOLINTEND
93
94public:
95 // vftables
96 // NOLINTBEGIN
97 MCAPI static void** $vftable();
98 // NOLINTEND
99};
Definition Actor.h:104
Definition Goal.h:14
Definition ItemDescriptor.h:22
Definition ItemStack.h:25
Definition Mob.h:47
Definition Path.h:16
Definition SnackGoal.h:18