Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
Warden.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/shared_types/legacy/actor/ActorDamageCause.h"
7#include "mc/world/actor/ai/util/ExpiringTick.h"
8#include "mc/world/actor/monster/Monster.h"
9#include "mc/world/level/Tick.h"
10
11// auto generated forward declare list
12// clang-format off
13class Actor;
15class ActorHurtResult;
16struct HurtParameters;
17// clang-format on
18
19class Warden : public ::Monster {
20public:
21 // member variables
22 // NOLINTBEGIN
23 ::ll::TypedStorage<8, 8, ::Tick> mTouchAngerCooldownExpiryTick;
24 ::ll::TypedStorage<8, 24, ::std::optional<::ExpiringTick>> mSonicBoomCooldown;
25 // NOLINTEND
26
27public:
28 // virtual functions
29 // NOLINTBEGIN
30 virtual bool canDisableShield() /*override*/;
31
32 virtual bool isInvulnerableTo(::ActorDamageSource const& source) const /*override*/;
33
34 virtual void onSynchedDataUpdate(int dataId) /*override*/;
35
36 virtual void onPush(::Actor& source) /*override*/;
37
38 virtual void normalTick() /*override*/;
39
40 virtual void setTarget(::Actor* target) /*override*/;
41
42 virtual bool checkSpawnRules(bool fromSpawner) /*override*/;
43
44 virtual bool checkSpawnObstruction() const /*override*/;
45
46 virtual ::ActorHurtResult
47 _hurt(::ActorDamageSource const& source, float damage, ::HurtParameters const& hurtParameters) /*override*/;
48
49 virtual ::ActorHurtResult
50 doHurtTarget(::Actor* target, ::SharedTypes::Legacy::ActorDamageCause const& cause) /*override*/;
51 // NOLINTEND
52
53public:
54 // virtual function thunks
55 // NOLINTBEGIN
56 MCNAPI bool $canDisableShield();
57
58 MCNAPI bool $isInvulnerableTo(::ActorDamageSource const& source) const;
59
60 MCNAPI void $onSynchedDataUpdate(int dataId);
61
62 MCNAPI void $onPush(::Actor& source);
63
64 MCNAPI void $normalTick();
65
66 MCNAPI void $setTarget(::Actor* target);
67
68 MCNAPI bool $checkSpawnRules(bool fromSpawner);
69
70 MCNAPI bool $checkSpawnObstruction() const;
71
72 MCNAPI ::ActorHurtResult
73 $_hurt(::ActorDamageSource const& source, float damage, ::HurtParameters const& hurtParameters);
74
75 MCNAPI ::ActorHurtResult $doHurtTarget(::Actor* target, ::SharedTypes::Legacy::ActorDamageCause const& cause);
76
77
78 // NOLINTEND
79
80public:
81 // vftables
82 // NOLINTBEGIN
83 MCNAPI static void** $vftable();
84 // NOLINTEND
85};
Definition ActorDamageSource.h:18
Definition ActorHurtResult.h:5
Definition Actor.h:116
Definition Warden.h:19
MCAPI::ActorHurtResult $doHurtTarget(::Actor *target, ::SharedTypes::Legacy::ActorDamageCause const &cause)
MCAPI void $setTarget(::Actor *target)
MCAPI bool $checkSpawnObstruction() const
MCAPI::ActorHurtResult $_hurt(::ActorDamageSource const &source, float damage, ::HurtParameters const &hurtParameters)
MCAPI void $onSynchedDataUpdate(int dataId)
MCAPI bool $isInvulnerableTo(::ActorDamageSource const &source) const
MCAPI void $onPush(::Actor &source)
MCAPI void $normalTick()
static MCAPI void ** $vftable()
MCAPI bool $checkSpawnRules(bool fromSpawner)
MCAPI bool $canDisableShield()
Definition HurtParameters.h:8