Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
BlockEvent.java
1 package org.bukkit.event.block;
2 
3 import org.bukkit.block.Block;
4 import org.bukkit.event.Event;
5 
6 /**
7  * Represents a block related event.
8  */
9 public abstract class BlockEvent extends Event {
10  protected Block block;
11 
12  public BlockEvent(final Block theBlock) {
13  block = theBlock;
14  }
15 
16  /**
17  * Gets the block involved in this event.
18  *
19  * @return The Block which block is involved in this event
20  */
21  public final Block getBlock() {
22  return block;
23  }
24 }