mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-04-25 08:27:28 +00:00
31 lines
668 B
C#
31 lines
668 B
C#
namespace Minecraft.Server.FourKit.Event.Block;
|
|
|
|
using Minecraft.Server.FourKit.Block;
|
|
|
|
/// <summary>
|
|
/// Called when a block is destroyed as a result of being burnt by fire.
|
|
///
|
|
/// <para>If a Block Burn event is cancelled, the block will not be destroyed
|
|
/// as a result of being burnt by fire.</para>
|
|
/// </summary>
|
|
public class BlockBurnEvent : BlockEvent, Cancellable
|
|
{
|
|
private bool _cancel;
|
|
|
|
internal BlockBurnEvent(Block block) : base(block)
|
|
{
|
|
_cancel = false;
|
|
}
|
|
|
|
|
|
/// <inheritdoc />
|
|
public bool isCancelled() => _cancel;
|
|
|
|
|
|
/// <inheritdoc />
|
|
public void setCancelled(bool cancel)
|
|
{
|
|
_cancel = cancel;
|
|
}
|
|
}
|