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