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