mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-04-25 16:37:21 +00:00
Theres documentation at https://sylvessa.zip/fourkit/ now. And a bunch of other changes. Check the discord server for a more comprehensive list
23 lines
746 B
C#
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;
|
|
}
|