LeviLamina
Loading...
Searching...
No Matches
TradeInterestGoal.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/BaseGoal.h"
8#include "mc/world/item/ItemStack.h"
9#include "mc/world/level/Tick.h"
10
11// auto generated forward declare list
12// clang-format off
13class Mob;
14class Player;
15// clang-format on
16
17class TradeInterestGoal : public ::BaseGoal {
18public:
19 // member variables
20 // NOLINTBEGIN
21 ::ll::TypedStorage<8, 8, ::Mob&> mMob;
22 ::ll::TypedStorage<8, 40, ::TempEPtr<::Player>> mPlayer;
23 ::ll::TypedStorage<1, 1, bool> mIsRunning;
24 ::ll::TypedStorage<1, 1, bool> mIsOnlyTargetItemFound;
25 ::ll::TypedStorage<4, 4, float> mInterestDistance;
26 ::ll::TypedStorage<8, 8, uint64> mCurrentIndex;
27 ::ll::TypedStorage<8, 152, ::ItemStack> mCarriedItem;
28 ::ll::TypedStorage<8, 152, ::ItemStack> mPlayerItem;
29 ::ll::TypedStorage<8, 8, ::Tick> mCarriedItemSwitchTimer;
30 ::ll::TypedStorage<8, 8, ::Tick> mRemoveItemTimer;
31 ::ll::TypedStorage<8, 8, ::Tick> mInterestTimer;
32 ::ll::TypedStorage<8, 8, ::Tick> mInterestCooldown;
33 ::ll::TypedStorage<8, 8, ::Tick const> mInterestTimeMax;
34 ::ll::TypedStorage<8, 8, ::Tick const> mInterestTimeMaxHalf;
35 ::ll::TypedStorage<8, 8, ::Tick const> mRemoveTimeMax;
36 ::ll::TypedStorage<8, 8, ::Tick const> mCarriedSwitchMax;
37 ::ll::TypedStorage<8, 8, ::Tick const> mInterestCooldownMax;
38 // NOLINTEND
39
40public:
41 // prevent constructor by default
42 TradeInterestGoal& operator=(TradeInterestGoal const&);
43 TradeInterestGoal(TradeInterestGoal const&);
44 TradeInterestGoal();
45
46public:
47 // virtual functions
48 // NOLINTBEGIN
49 virtual bool canUse() /*override*/;
50
51 virtual bool canContinueToUse() /*override*/;
52
53 virtual void start() /*override*/;
54
55 virtual void stop() /*override*/;
56
57 virtual void tick() /*override*/;
58
59 virtual void appendDebugInfo(::std::string& str) const /*override*/;
60 // NOLINTEND
61
62public:
63 // member functions
64 // NOLINTBEGIN
65 MCAPI TradeInterestGoal(
66 ::Mob& mob,
67 float interestDistance,
68 float interestTime,
69 float removeTime,
70 float carriedTime,
71 float cooldown
72 );
73
74 MCAPI bool _isLookingAtMe(::Player const& target) const;
75 // NOLINTEND
76
77public:
78 // constructor thunks
79 // NOLINTBEGIN
80 MCAPI void*
81 $ctor(::Mob& mob, float interestDistance, float interestTime, float removeTime, float carriedTime, float cooldown);
82 // NOLINTEND
83
84public:
85 // virtual function thunks
86 // NOLINTBEGIN
87 MCAPI bool $canUse();
88
89 MCAPI bool $canContinueToUse();
90
91 MCAPI void $start();
92
93 MCAPI void $stop();
94
95 MCAPI void $tick();
96
97 MCAPI void $appendDebugInfo(::std::string& str) const;
98
99
100 // NOLINTEND
101
102public:
103 // vftables
104 // NOLINTBEGIN
105 MCNAPI static void** $vftable();
106 // NOLINTEND
107};
Definition Mob.h:57
Definition Player.h:137
static MCAPI void ** $vftable()