MinecraftConsoles/Minecraft.Server.FourKit/Event/Entity/EntityDamageByEntityEvent.cs
sylvessa f5f9aa1cf5 finish rewrite; port to cmake, loads of other changes
Theres documentation at https://sylvessa.zip/fourkit/ now. And a bunch of other changes. Check the discord server for a more comprehensive list
2026-03-21 14:01:49 -05:00

23 lines
746 B
C#

namespace Minecraft.Server.FourKit.Event.Entity;
using FourKitEntity = Minecraft.Server.FourKit.Entity;
/// <summary>
/// Called when an entity is damaged by an entity.
/// </summary>
public class EntityDamageByEntityEvent : EntityDamageEvent
{
private readonly FourKitEntity.Entity _damager;
internal EntityDamageByEntityEvent(FourKitEntity.Entity damager, FourKitEntity.Entity damagee, EntityDamageEvent.DamageCause cause, double damage)
: base(damagee, cause, damage)
{
_damager = damager;
}
/// <summary>
/// Returns the entity that damaged the defender.
/// </summary>
/// <returns>The Entity that damaged the defender.</returns>
public FourKitEntity.Entity getDamager() => _damager;
}