Bukkit  1.4.7-R1.0
 All Classes Namespaces Files Functions Variables Enumerator Pages
BlockGrowEvent.java
Go to the documentation of this file.
1 package org.bukkit.event.block;
2 
3 import org.bukkit.block.Block;
4 import org.bukkit.block.BlockState;
5 import org.bukkit.event.Cancellable;
6 import org.bukkit.event.HandlerList;
7 
22 public class BlockGrowEvent extends BlockEvent implements Cancellable {
23  private static final HandlerList handlers = new HandlerList();
24  private final BlockState newState;
25  private boolean cancelled = false;
26 
27  public BlockGrowEvent(final Block block, final BlockState newState) {
28  super(block);
29  this.newState = newState;
30  }
31 
38  return newState;
39  }
40 
41  public boolean isCancelled() {
42  return cancelled;
43  }
44 
45  public void setCancelled(boolean cancel) {
46  this.cancelled = cancel;
47  }
48 
50  return handlers;
51  }
52 
53  public static HandlerList getHandlerList() {
54  return handlers;
55  }
56 }