Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
WitherTargetHighestDamage.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/actor/ai/goal/target/TargetGoal.h"
7
8// auto generated forward declare list
9// clang-format off
10class Actor;
11class Mob;
12class Player;
13class WitherBoss;
14struct GoalId;
15struct MobDescriptor;
16// clang-format on
17
18class WitherTargetHighestDamage : public ::TargetGoal {
19public:
20 // member variables
21 // NOLINTBEGIN
22 ::ll::TypedStorage<8, 8, ::WitherBoss&> mWitherBoss;
23 ::ll::TypedStorage<8, 8, ::Mob*> mTarget;
24 // NOLINTEND
25
26public:
27 // prevent constructor by default
28 WitherTargetHighestDamage& operator=(WitherTargetHighestDamage const&);
29 WitherTargetHighestDamage(WitherTargetHighestDamage const&);
30 WitherTargetHighestDamage();
31
32public:
33 // virtual functions
34 // NOLINTBEGIN
35 virtual bool canUse() /*override*/;
36
37 virtual bool canContinueToUse() /*override*/;
38
39 virtual void appendDebugInfo(::std::string& str) const /*override*/;
40
41 virtual void start() /*override*/;
42
43 virtual bool _canAttack(
44 ::Mob* testMob,
45 ::Actor* target,
46 bool allowInvulnerable,
47 bool mustSee,
48 ::MobDescriptor const** outDescriptorMatch
49 ) /*override*/;
50 // NOLINTEND
51
52public:
53 // member functions
54 // NOLINTBEGIN
55 MCNAPI WitherTargetHighestDamage(::Mob& mob, ::std::string name, ::GoalId const& goalId);
56
57 MCNAPI ::Player* getHighestDamageTarget();
58 // NOLINTEND
59
60public:
61 // constructor thunks
62 // NOLINTBEGIN
63 MCNAPI void* $ctor(::Mob& mob, ::std::string name, ::GoalId const& goalId);
64 // NOLINTEND
65
66public:
67 // virtual function thunks
68 // NOLINTBEGIN
69 MCNAPI bool $canUse();
70
71 MCNAPI bool $canContinueToUse();
72
73 MCNAPI void $appendDebugInfo(::std::string& str) const;
74
75 MCNAPI void $start();
76
77 MCNAPI bool $_canAttack(
78 ::Mob* testMob,
79 ::Actor* target,
80 bool allowInvulnerable,
81 bool mustSee,
82 ::MobDescriptor const** outDescriptorMatch
83 );
84
85
86 // NOLINTEND
87
88public:
89 // vftables
90 // NOLINTBEGIN
91 MCNAPI static void** $vftable();
92 // NOLINTEND
93};
Definition Actor.h:116
Definition Mob.h:58
Definition Player.h:131
Definition WitherBoss.h:35
MCAPI bool $_canAttack(::Mob *testMob, ::Actor *target, bool allowInvulnerable, bool mustSee, ::MobDescriptor const **outDescriptorMatch)
MCAPI bool $canContinueToUse()
MCAPI void $appendDebugInfo(::std::string &str) const
MCAPI WitherTargetHighestDamage(::Mob &mob, ::std::string name, ::GoalId const &goalId)
static MCAPI void ** $vftable()
MCAPI::Player * getHighestDamageTarget()
MCAPI void * $ctor(::Mob &mob, ::std::string name, ::GoalId const &goalId)
Definition GoalId.h:5
Definition MobDescriptor.h:8