Skip to content

API reference Obsidian.API.Events

BlockBreakEventArgs class

public class BlockBreakEventArgs : BlockEventArgs, ICancellable

In Obsidian.API.

Properties

IsCancelled

public bool IsCancelled { get; }

Gets a value indicating whether the default behaviour should be cancelled.

Player

public IPlayer Player { get; }

Player that has broken the block.

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.

On this page