API reference Obsidian.API.Events
EntityEventArgs class
public class EntityEventArgs : BaseMinecraftEventArgs, ICancellable
In Obsidian.API.
Constructors
public EntityEventArgs(IEntity entity, IServer server);Properties
Entity
public IEntity Entity { get; }The entity involved in this event.
IsCancelled
public bool IsCancelled { get; }Gets a value indicating whether the default behaviour should be cancelled.
Methods
Cancel()
public void Cancel();Sets a flag which prevents default (vanilla) behavior from executing.
Remarks
This flag only affects vanilla behavior. If you wish to prevent other handlers from running, see AsyncEventArgs.Handled.