From b691c43c44ff180d10e7d4a9afc83b98551ff586 Mon Sep 17 00:00:00 2001 From: daoge_cmd <3523206925@qq.com> Date: Sun, 1 Mar 2026 12:16:08 +0800 Subject: Initial commit --- Minecraft.World/IndirectEntityDamageSource.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Minecraft.World/IndirectEntityDamageSource.h (limited to 'Minecraft.World/IndirectEntityDamageSource.h') 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 owner; + +public: + //IndirectEntityDamageSource(const wstring &msgId, shared_ptr entity, shared_ptr owner); + IndirectEntityDamageSource(ChatPacket::EChatPacketMessage msgId, shared_ptr entity, shared_ptr owner); + virtual ~IndirectEntityDamageSource() { } + + virtual shared_ptr getDirectEntity(); // 4J Stu - Brought forward from 1.2.3 to fix #46422 + virtual shared_ptr getEntity(); + + // 4J Stu - Made return a packet + //virtual wstring getLocalizedDeathMessage(shared_ptr player); + virtual shared_ptr getDeathMessagePacket(shared_ptr player); +}; \ No newline at end of file -- cgit v1.2.3