namespace Minecraft.Server.FourKit.Event.Block; using Minecraft.Server.FourKit.Block; /// /// Called when a block spreads based on world conditions. /// Use to catch blocks that "randomly" form /// instead of actually spread. /// /// Examples: /// /// Mushrooms spreading. /// Fire spreading. /// /// /// If a Block Spread event is cancelled, the block will not spread. /// public class BlockSpreadEvent : BlockFormEvent, Cancellable { private readonly Block _source; internal BlockSpreadEvent(Block block, Block source, BlockState newState) : base(block, newState) { _source = source; } /// /// Gets the source block involved in this event. /// /// The Block for the source block involved in this event. public Block getSource() => _source; }