LeviLamina
Loading...
Searching...
No Matches
ActorDamageSource.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/ActorCategory.h"
8#include "mc/world/actor/ActorType.h"
9
10// auto generated forward declare list
11// clang-format off
12class Actor;
14struct ActorUniqueID;
15namespace Scripting { struct Version; }
16// clang-format on
17
19public:
20 // member variables
21 // NOLINTBEGIN
22 ::ll::TypedStorage<4, 4, ::SharedTypes::Legacy::ActorDamageCause> mCause;
23 // NOLINTEND
24
25public:
26 // virtual functions
27 // NOLINTBEGIN
28 // vIndex: 0
29 virtual ~ActorDamageSource() = default;
30
31 // vIndex: 1
32 virtual bool isEntitySource() const;
33
34 // vIndex: 2
35 virtual bool isChildEntitySource() const;
36
37 // vIndex: 3
38 virtual bool isBlockSource() const;
39
40 // vIndex: 4
41 virtual bool isFire() const;
42
43 // vIndex: 5
44 virtual bool isReducedByResistanceEffect() const;
45
46 // vIndex: 6
47 virtual bool isReducedByEnchantReduction() const;
48
49 // vIndex: 7
50 virtual bool isReducedByArmorReduction() const;
51
52 // vIndex: 8
53 virtual bool isFallingBlockDamage() const;
54
55 // vIndex: 9
56 virtual bool isFallDamage() const;
57
58 // vIndex: 10
59 virtual ::std::pair<::std::string, ::std::vector<::std::string>>
60 getDeathMessage(::std::string deadName, ::Actor* dead) const;
61
62 // vIndex: 11
63 virtual bool getIsCreative() const;
64
65 // vIndex: 12
66 virtual bool getIsWorldBuilder() const;
67
68 // vIndex: 13
69 virtual ::ActorUniqueID getEntityUniqueID() const;
70
71 // vIndex: 14
72 virtual ::ActorType getEntityType() const;
73
74 // vIndex: 15
75 virtual ::ActorCategory getEntityCategories() const;
76
77 // vIndex: 16
78 virtual bool getDamagingEntityIsCreative() const;
79
80 // vIndex: 17
81 virtual bool getDamagingEntityIsWorldBuilder() const;
82
83 // vIndex: 18
84 virtual ::ActorUniqueID getDamagingEntityUniqueID() const;
85
86 // vIndex: 19
87 virtual ::ActorType getDamagingEntityType() const;
88
89 // vIndex: 20
90 virtual ::ActorCategory getDamagingEntityCategories() const;
91
92 // vIndex: 21
93 virtual ::std::unique_ptr<::ActorDamageSource> clone() const;
94 // NOLINTEND
95
96public:
97 // static functions
98 // NOLINTBEGIN
99 MCAPI static ::std::vector<::std::pair<::std::string, ::SharedTypes::Legacy::ActorDamageCause>>
100 generateDamageCauseCommandEnum(::std::optional<::Scripting::Version> scriptVersion);
101
102 MCAPI static ::std::vector<::std::pair<::std::string, ::SharedTypes::Legacy::ActorDamageCause>>
103 generateNewDamageCauseCommandEnum(::std::optional<::Scripting::Version> scriptVersion);
104
105 MCAPI static ::std::vector<::VersionedActorDamageCause> generateVersionedDamageCauseCommandEnum();
106
107 MCAPI static ::SharedTypes::Legacy::ActorDamageCause
108 getCauseMapVersionCutoffInclusive(::Scripting::Version scriptingVersion);
109
110 MCAPI static ::SharedTypes::Legacy::ActorDamageCause lookupCause(::std::string const& name);
111
112 MCAPI static ::std::string const& lookupCauseName(::SharedTypes::Legacy::ActorDamageCause cause);
113 // NOLINTEND
114
115public:
116 // destructor thunk
117 // NOLINTBEGIN
118
119 // NOLINTEND
120
121public:
122 // virtual function thunks
123 // NOLINTBEGIN
124 MCFOLD bool $isEntitySource() const;
125
126 MCFOLD bool $isChildEntitySource() const;
127
128 MCFOLD bool $isBlockSource() const;
129
130 MCAPI bool $isFire() const;
131
132 MCAPI bool $isReducedByResistanceEffect() const;
133
134 MCAPI bool $isReducedByEnchantReduction() const;
135
136 MCAPI bool $isReducedByArmorReduction() const;
137
138 MCAPI bool $isFallingBlockDamage() const;
139
140 MCAPI bool $isFallDamage() const;
141
142 MCAPI ::std::pair<::std::string, ::std::vector<::std::string>>
143 $getDeathMessage(::std::string deadName, ::Actor* dead) const;
144
145 MCFOLD bool $getIsCreative() const;
146
147 MCFOLD bool $getIsWorldBuilder() const;
148
149 MCFOLD ::ActorUniqueID $getEntityUniqueID() const;
150
151 MCFOLD ::ActorType $getEntityType() const;
152
153 MCFOLD ::ActorCategory $getEntityCategories() const;
154
155 MCFOLD bool $getDamagingEntityIsCreative() const;
156
157 MCFOLD bool $getDamagingEntityIsWorldBuilder() const;
158
159 MCFOLD ::ActorUniqueID $getDamagingEntityUniqueID() const;
160
161 MCFOLD ::ActorType $getDamagingEntityType() const;
162
163 MCFOLD ::ActorCategory $getDamagingEntityCategories() const;
164
165 MCAPI ::std::unique_ptr<::ActorDamageSource> $clone() const;
166 // NOLINTEND
167
168public:
169 // vftables
170 // NOLINTBEGIN
171 MCAPI static void** $vftable();
172 // NOLINTEND
173};
Definition ActorDamageSource.h:18
Definition Actor.h:104
Definition VersionedActorDamageCause.h:5
Definition ActorUniqueID.h:5
Definition Version.h:7