Fork of Poseidon providing Bukkit #1060 to older Beta versions (b1.0-b1.7.3)
at develop 26 lines 676 B view raw
1package org.bukkit.event.block; 2 3import org.bukkit.block.Block; 4import org.bukkit.event.Cancellable; 5 6/** 7 * Called when a block is destroyed as a result of being burnt by fire. 8 * <p/> 9 * If a Block Burn event is cancelled, the block will not be destroyed as a result of being burnt by fire. 10 */ 11public class BlockBurnEvent extends BlockEvent implements Cancellable { 12 private boolean cancelled; 13 14 public BlockBurnEvent(Block block) { 15 super(Type.BLOCK_BURN, block); 16 this.cancelled = false; 17 } 18 19 public boolean isCancelled() { 20 return cancelled; 21 } 22 23 public void setCancelled(boolean cancel) { 24 this.cancelled = cancel; 25 } 26}