MinecraftConsoles/Minecraft.Server.FourKit/Event/Entity/EntityEvent.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

29 lines
815 B
C#

namespace Minecraft.Server.FourKit.Event.Entity;
using FourKitEntity = Minecraft.Server.FourKit.Entity;
/// <summary>
/// Represents an Entity-related event.
/// </summary>
public abstract class EntityEvent : Event
{
protected FourKitEntity.Entity entity;
protected EntityEvent(FourKitEntity.Entity what)
{
entity = what;
}
/// <summary>
/// Returns the Entity involved in this event.
/// </summary>
/// <returns>Entity who is involved in this event.</returns>
public FourKitEntity.Entity getEntity() => entity;
/// <summary>
/// Gets the EntityType of the Entity involved in this event.
/// </summary>
/// <returns>EntityType of the Entity involved in this event.</returns>
public FourKitEntity.EntityType getEntityType() => entity.getType();
}