namespace Minecraft.Server.FourKit.Event.Block;
using Minecraft.Server.FourKit.Block;
///
/// Called when a block is destroyed as a result of being burnt by fire.
///
/// If a Block Burn event is cancelled, the block will not be destroyed
/// as a result of being burnt by fire.
///
public class BlockBurnEvent : BlockEvent, Cancellable
{
private bool _cancel;
internal BlockBurnEvent(Block block) : base(block)
{
_cancel = false;
}
///
public bool isCancelled() => _cancel;
///
public void setCancelled(bool cancel)
{
_cancel = cancel;
}
}