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