LeviLamina
Loading...
Searching...
No Matches
DrinkPotionGoal.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/actor/ai/goal/Goal.h"
7#include "mc/world/attribute/AttributeModifier.h"
8#include "mc/world/level/Tick.h"
9
10// auto generated forward declare list
11// clang-format off
12class Mob;
13struct DrinkPotionData;
14namespace mce { class UUID; }
15// clang-format on
16
17class DrinkPotionGoal : public ::Goal {
18public:
19 // member variables
20 // NOLINTBEGIN
21 ::ll::TypedStorage<8, 8, ::Mob&> mMob;
22 ::ll::TypedStorage<4, 4, float const> mWalkSpeedModifier;
23 ::ll::TypedStorage<8, 24, ::std::vector<::DrinkPotionData> const> mDrinkPotionData;
24 ::ll::TypedStorage<4, 4, int> mThrottleCooldown;
25 ::ll::TypedStorage<8, 8, ::Tick> mFinishUsingItemTick;
26 ::ll::TypedStorage<8, 80, ::AttributeModifier> mSpeedAttributeModifier;
27 // NOLINTEND
28
29public:
30 // prevent constructor by default
31 DrinkPotionGoal& operator=(DrinkPotionGoal const&);
32 DrinkPotionGoal(DrinkPotionGoal const&);
33 DrinkPotionGoal();
34
35public:
36 // virtual functions
37 // NOLINTBEGIN
38 virtual bool canUse() /*override*/;
39
40 virtual bool canContinueToUse() /*override*/;
41
42 virtual void start() /*override*/;
43
44 virtual void stop() /*override*/;
45
46 virtual void tick() /*override*/;
47
48 virtual void appendDebugInfo(::std::string& str) const /*override*/;
49
50 virtual ~DrinkPotionGoal() /*override*/ = default;
51 // NOLINTEND
52
53public:
54 // member functions
55 // NOLINTBEGIN
56 MCAPI DrinkPotionGoal(::Mob& mob, float walkSpeedModifier, ::std::vector<::DrinkPotionData> const& drinkPotionData);
57
58 MCAPI ::std::optional<int> _findPotionToUse() const;
59 // NOLINTEND
60
61public:
62 // static variables
63 // NOLINTBEGIN
64 MCAPI static ::mce::UUID const& SPEED_MODIFIER_DRINKING_UUID();
65 // NOLINTEND
66
67public:
68 // constructor thunks
69 // NOLINTBEGIN
70 MCAPI void* $ctor(::Mob& mob, float walkSpeedModifier, ::std::vector<::DrinkPotionData> const& drinkPotionData);
71 // NOLINTEND
72
73public:
74 // virtual function thunks
75 // NOLINTBEGIN
76 MCAPI bool $canUse();
77
78 MCAPI bool $canContinueToUse();
79
80 MCFOLD void $start();
81
82 MCAPI void $stop();
83
84 MCAPI void $tick();
85
86 MCAPI void $appendDebugInfo(::std::string& str) const;
87
88
89 // NOLINTEND
90
91public:
92 // vftables
93 // NOLINTBEGIN
94 MCNAPI static void** $vftable();
95 // NOLINTEND
96};
static MCAPI void ** $vftable()
Definition Goal.h:14
Definition Mob.h:50
Definition UUID.h:7
Definition DrinkPotionData.h:8