Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
BlockBurnEvent.java
1 package org.bukkit.event.block;
2 
3 import org.bukkit.block.Block;
6 
7 /**
8  * Called when a block is destroyed as a result of being burnt by fire.
9  * <p>
10  * If a Block Burn event is cancelled, the block will not be destroyed as a
11  * result of being burnt by fire.
12  */
13 public class BlockBurnEvent extends BlockEvent implements Cancellable {
14  private static final HandlerList handlers = new HandlerList();
15  private boolean cancelled;
16 
17  public BlockBurnEvent(final Block block) {
18  super(block);
19  this.cancelled = false;
20  }
21 
22  public boolean isCancelled() {
23  return cancelled;
24  }
25 
26  public void setCancelled(boolean cancel) {
27  this.cancelled = cancel;
28  }
29 
30  @Override
31  public HandlerList getHandlers() {
32  return handlers;
33  }
34 
35  public static HandlerList getHandlerList() {
36  return handlers;
37  }
38 }