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/Goal.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 ::Goal {
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&);
45
46public:
47 // virtual functions
48 // NOLINTBEGIN
49 // vIndex: 1
50 virtual bool canUse() /*override*/;
51
52 // vIndex: 2
53 virtual bool canContinueToUse() /*override*/;
54
55 // vIndex: 4
56 virtual void start() /*override*/;
57
58 // vIndex: 5
59 virtual void stop() /*override*/;
60
61 // vIndex: 6
62 virtual void tick() /*override*/;
63
64 // vIndex: 7
65 virtual void appendDebugInfo(::std::string& str) const /*override*/;
66
67 // vIndex: 0
68 virtual ~TradeInterestGoal() /*override*/;
69 // NOLINTEND
70
71public:
72 // member functions
73 // NOLINTBEGIN
75 ::Mob& mob,
76 float interestDistance,
77 float interestTime,
78 float removeTime,
79 float carriedTime,
80 float cooldown
81 );
82
83 MCNAPI bool _isLookingAtMe(::Player const& target) const;
84 // NOLINTEND
85
86public:
87 // constructor thunks
88 // NOLINTBEGIN
89 MCNAPI void*
90 $ctor(::Mob& mob, float interestDistance, float interestTime, float removeTime, float carriedTime, float cooldown);
91 // NOLINTEND
92
93public:
94 // destructor thunk
95 // NOLINTBEGIN
96 MCNAPI void $dtor();
97 // NOLINTEND
98
99public:
100 // virtual function thunks
101 // NOLINTBEGIN
102 MCNAPI bool $canUse();
103
104 MCNAPI bool $canContinueToUse();
105
106 MCNAPI void $start();
107
108 MCNAPI void $stop();
109
110 MCNAPI void $tick();
111
112 MCNAPI void $appendDebugInfo(::std::string& str) const;
113 // NOLINTEND
114
115public:
116 // vftables
117 // NOLINTBEGIN
118 MCNAPI static void** $vftable();
119 // NOLINTEND
120};
Definition Goal.h:14
Definition Mob.h:47
Definition Player.h:119
Definition TradeInterestGoal.h:17
MCAPI bool $canUse()
MCAPI TradeInterestGoal(::Mob &mob, float interestDistance, float interestTime, float removeTime, float carriedTime, float cooldown)
MCAPI void * $ctor(::Mob &mob, float interestDistance, float interestTime, float removeTime, float carriedTime, float cooldown)
static MCAPI void ** $vftable()
MCAPI void $tick()
MCAPI bool _isLookingAtMe(::Player const &target) const
MCAPI void $start()
MCAPI void $dtor()
MCAPI void $stop()
MCAPI void $appendDebugInfo(::std::string &str) const
MCAPI bool $canContinueToUse()