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
29 lines
815 B
C#
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();
|
|
}
|