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&);
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
61 virtual ~TradeInterestGoal() /*override*/;
62 // NOLINTEND
63
64public:
65 // member functions
66 // NOLINTBEGIN
67 MCAPI bool _isLookingAtMe(::Player const& target) const;
68 // NOLINTEND
69
70public:
71 // destructor thunk
72 // NOLINTBEGIN
73 MCAPI void $dtor();
74 // NOLINTEND
75
76public:
77 // virtual function thunks
78 // NOLINTBEGIN
79 MCAPI bool $canUse();
80
81 MCAPI bool $canContinueToUse();
82
83 MCAPI void $start();
84
85 MCAPI void $stop();
86
87 MCAPI void $tick();
88
89 MCAPI void $appendDebugInfo(::std::string& str) const;
90
91
92 // NOLINTEND
93
94public:
95 // vftables
96 // NOLINTBEGIN
97 MCNAPI static void** $vftable();
98 // NOLINTEND
99};
Definition Goal.h:14
Definition Mob.h:50
Definition Player.h:125
static MCAPI void ** $vftable()