diff options
| author | daoge_cmd <3523206925@qq.com> | 2026-03-01 12:16:08 +0800 |
|---|---|---|
| committer | daoge_cmd <3523206925@qq.com> | 2026-03-01 12:16:08 +0800 |
| commit | b691c43c44ff180d10e7d4a9afc83b98551ff586 (patch) | |
| tree | 3e9849222cbc6ba49f2f1fc6e5fe7179632c7390 /Minecraft.World/IndirectEntityDamageSource.h | |
| parent | def8cb415354ac390b7e89052a50605285f1aca9 (diff) | |
Initial commit
Diffstat (limited to 'Minecraft.World/IndirectEntityDamageSource.h')
| -rw-r--r-- | Minecraft.World/IndirectEntityDamageSource.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Minecraft.World/IndirectEntityDamageSource.h b/Minecraft.World/IndirectEntityDamageSource.h new file mode 100644 index 00000000..b7aec18c --- /dev/null +++ b/Minecraft.World/IndirectEntityDamageSource.h @@ -0,0 +1,25 @@ +#pragma once +using namespace std; + +#include "EntityDamageSource.h" + +class Entity; +class Player; + +class IndirectEntityDamageSource : public EntityDamageSource +{ +private: + shared_ptr<Entity> owner; + +public: + //IndirectEntityDamageSource(const wstring &msgId, shared_ptr<Entity> entity, shared_ptr<Entity> owner); + IndirectEntityDamageSource(ChatPacket::EChatPacketMessage msgId, shared_ptr<Entity> entity, shared_ptr<Entity> owner); + virtual ~IndirectEntityDamageSource() { } + + virtual shared_ptr<Entity> getDirectEntity(); // 4J Stu - Brought forward from 1.2.3 to fix #46422 + virtual shared_ptr<Entity> getEntity(); + + // 4J Stu - Made return a packet + //virtual wstring getLocalizedDeathMessage(shared_ptr<Player> player); + virtual shared_ptr<ChatPacket> getDeathMessagePacket(shared_ptr<Player> player); +};
\ No newline at end of file |
