Skip to content
LeviMC
English
AutoLightDark
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;
15struct GoalId;
16// clang-format on
17
18class TradeInterestGoal : public ::BaseGoal {
19public:
20 // member variables
21 // NOLINTBEGIN
22 ::ll::TypedStorage<8, 8, ::Mob&> mMob;
23 ::ll::TypedStorage<8, 40, ::TempEPtr<::Player>> mPlayer;
24 ::ll::TypedStorage<1, 1, bool> mIsRunning;
25 ::ll::TypedStorage<1, 1, bool> mIsOnlyTargetItemFound;
26 ::ll::TypedStorage<4, 4, float> mInterestDistance;
27 ::ll::TypedStorage<8, 8, uint64> mCurrentIndex;
28 ::ll::TypedStorage<8, 152, ::ItemStack> mCarriedItem;
29 ::ll::TypedStorage<8, 152, ::ItemStack> mPlayerItem;
30 ::ll::TypedStorage<8, 8, ::Tick> mCarriedItemSwitchTimer;
31 ::ll::TypedStorage<8, 8, ::Tick> mRemoveItemTimer;
32 ::ll::TypedStorage<8, 8, ::Tick> mInterestTimer;
33 ::ll::TypedStorage<8, 8, ::Tick> mInterestCooldown;
34 ::ll::TypedStorage<8, 8, ::Tick> mInterestTimeMax;
35 ::ll::TypedStorage<8, 8, ::Tick> mInterestTimeMaxHalf;
36 ::ll::TypedStorage<8, 8, ::Tick> mRemoveTimeMax;
37 ::ll::TypedStorage<8, 8, ::Tick> mCarriedSwitchMax;
38 ::ll::TypedStorage<8, 8, ::Tick> mInterestCooldownMax;
39 // NOLINTEND
40
41public:
42 // prevent constructor by default
43 TradeInterestGoal& operator=(TradeInterestGoal const&);
44 TradeInterestGoal(TradeInterestGoal const&);
45 TradeInterestGoal();
46
47public:
48 // virtual functions
49 // NOLINTBEGIN
50 virtual bool canUse() /*override*/;
51
52 virtual bool canContinueToUse() /*override*/;
53
54 virtual void start() /*override*/;
55
56 virtual void stop() /*override*/;
57
58 virtual void tick() /*override*/;
59
60 virtual void appendDebugInfo(::std::string& str) const /*override*/;
61 // NOLINTEND
62
63public:
64 // member functions
65 // NOLINTBEGIN
66 MCNAPI TradeInterestGoal(::Mob& mob, ::std::string name, ::GoalId const& goalId);
67 // NOLINTEND
68
69public:
70 // constructor thunks
71 // NOLINTBEGIN
72 MCNAPI void* $ctor(::Mob& mob, ::std::string name, ::GoalId const& goalId);
73 // NOLINTEND
74
75public:
76 // virtual function thunks
77 // NOLINTBEGIN
78 MCNAPI bool $canUse();
79
80 MCNAPI bool $canContinueToUse();
81
82 MCNAPI void $start();
83
84 MCNAPI void $stop();
85
86 MCNAPI void $tick();
87
88 MCNAPI void $appendDebugInfo(::std::string& str) const;
89
90
91 // NOLINTEND
92
93public:
94 // vftables
95 // NOLINTBEGIN
96 MCNAPI static void** $vftable();
97 // NOLINTEND
98};
Definition BaseGoal.h:12
Definition Mob.h:58
Definition Player.h:131
MCAPI bool $canUse()
static MCAPI void ** $vftable()
MCAPI TradeInterestGoal(::Mob &mob, ::std::string name, ::GoalId const &goalId)
MCAPI void * $ctor(::Mob &mob, ::std::string name, ::GoalId const &goalId)
MCAPI void $tick()
MCAPI void $start()
MCAPI void $stop()
MCAPI void $appendDebugInfo(::std::string &str) const
MCAPI bool $canContinueToUse()
Definition GoalId.h:5