LeviLamina
Loading...
Searching...
No Matches
Guardian.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/math/Vec3.h"
7#include "mc/legacy/ActorUniqueID.h"
8#include "mc/world/actor/ActorInitializationMethod.h"
9#include "mc/world/actor/monster/Monster.h"
10
11// auto generated forward declare list
12// clang-format off
13class Actor;
16class CompoundTag;
17class DataLoadHelper;
18class EntityContext;
19class Mob;
22// clang-format on
23
24class Guardian : public ::Monster {
25public:
26 // Guardian inner types define
27 using DataFlagIdType = char;
28
29public:
30 // member variables
31 // NOLINTBEGIN
32 ::ll::TypedStorage<8, 32, ::std::string> ATTACK_SOUND;
33 ::ll::TypedStorage<4, 4, float> ELDER_SIZE_SCALE;
34 ::ll::TypedStorage<4, 4, int> FLAG_MOVING;
35 ::ll::TypedStorage<4, 4, int> FLAG_ELDER;
36 ::ll::TypedStorage<4, 12, ::Vec3> startPos;
37 ::ll::TypedStorage<8, 8, ::Mob*> clientSideCachedAttackTarget;
38 ::ll::TypedStorage<4, 4, int> clientSideAttackTime;
39 ::ll::TypedStorage<1, 1, bool> clientSideTouchedGround;
40 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mAttackTargetId;
41 ::ll::TypedStorage<1, 1, bool> mElderGhost;
42 ::ll::TypedStorage<8, 8, uint64> mLaserLoop;
43 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mEyeTarget;
44 // NOLINTEND
45
46public:
47 // prevent constructor by default
48 Guardian();
49
50public:
51 // virtual functions
52 // NOLINTBEGIN
53 // vIndex: 8
54 virtual ~Guardian() /*override*/;
55
56 // vIndex: 2
57 virtual void reloadHardcoded(::ActorInitializationMethod method, ::VariantParameterList const& params) /*override*/;
58
59 // vIndex: 3
60 virtual void reloadHardcodedClient(::ActorInitializationMethod method) /*override*/;
61
62 // vIndex: 148
63 virtual bool checkSpawnRules(bool) /*override*/;
64
65 // vIndex: 51
66 virtual void setTarget(::Actor* entity) /*override*/;
67
68 // vIndex: 153
69 virtual float getMaxHeadXRot() /*override*/;
70
71 // vIndex: 137
72 virtual void addAdditionalSaveData(::CompoundTag& tag) const /*override*/;
73
74 // vIndex: 136
75 virtual void readAdditionalSaveData(::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper) /*override*/;
76
77 // vIndex: 178
78 virtual bool isDarkEnoughToSpawn() const /*override*/;
79
80 // vIndex: 135
81 virtual bool _hurt(::ActorDamageSource const& source, float damage, bool knock, bool ignite) /*override*/;
82 // NOLINTEND
83
84public:
85 // member functions
86 // NOLINTBEGIN
87 MCAPI Guardian(
88 ::ActorDefinitionGroup* definitions,
89 ::ActorDefinitionIdentifier const& definitionName,
90 ::EntityContext& entityContext
91 );
92
93 MCAPI ::Vec3 getMoveEyeVector();
94
95 MCAPI bool isElder() const;
96
97 MCAPI void preAiStep();
98
99 MCAPI void registerLoopingSounds();
100 // NOLINTEND
101
102public:
103 // constructor thunks
104 // NOLINTBEGIN
105 MCAPI void* $ctor(
106 ::ActorDefinitionGroup* definitions,
107 ::ActorDefinitionIdentifier const& definitionName,
108 ::EntityContext& entityContext
109 );
110 // NOLINTEND
111
112public:
113 // destructor thunk
114 // NOLINTBEGIN
115 MCAPI void $dtor();
116 // NOLINTEND
117
118public:
119 // virtual function thunks
120 // NOLINTBEGIN
121 MCAPI void $reloadHardcoded(::ActorInitializationMethod method, ::VariantParameterList const& params);
122
123 MCAPI void $reloadHardcodedClient(::ActorInitializationMethod method);
124
125 MCAPI bool $checkSpawnRules(bool);
126
127 MCFOLD void $setTarget(::Actor* entity);
128
129 MCFOLD float $getMaxHeadXRot();
130
131 MCAPI void $addAdditionalSaveData(::CompoundTag& tag) const;
132
133 MCAPI void $readAdditionalSaveData(::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper);
134
135 MCFOLD bool $isDarkEnoughToSpawn() const;
136
137 MCAPI bool $_hurt(::ActorDamageSource const& source, float damage, bool knock, bool ignite);
138 // NOLINTEND
139
140public:
141 // vftables
142 // NOLINTBEGIN
143 MCNAPI static void** $vftable();
144 // NOLINTEND
145};
Definition ActorDamageSource.h:18
Definition ActorDefinitionGroup.h:32
Definition Actor.h:102
Definition CompoundTag.h:13
Definition DataLoadHelper.h:20
Definition EntityContext.h:16
Definition Guardian.h:24
static MCAPI void ** $vftable()
Definition Mob.h:47
Definition Monster.h:20
Definition ActorDefinitionIdentifier.h:15
Definition VariantParameterList.h:13