Fork of Poseidon providing Bukkit #1060 to older Beta versions (b1.0-b1.7.3)
1package org.bukkit.event.block;
2
3import org.bukkit.block.Block;
4import org.bukkit.event.Event;
5
6/**
7 * Represents a block related event.
8 */
9public class BlockEvent extends Event {
10 protected Block block;
11
12 public BlockEvent(final Event.Type type, final Block theBlock) {
13 super(type);
14 block = theBlock;
15 }
16
17 /**
18 * Gets the block involved in this event.
19 *
20 * @return The Block which block is involved in this event
21 */
22 public final Block getBlock() {
23 return block;
24 }
25}