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