001 package org.bukkit.event.block; 002 003 import org.bukkit.block.Block; 004 import org.bukkit.event.Event; 005 006 /** 007 * Represents a block related event. 008 */ 009 public abstract class BlockEvent extends Event { 010 protected Block block; 011 012 public BlockEvent(final Block theBlock) { 013 block = theBlock; 014 } 015 016 /** 017 * Gets the block involved in this event. 018 * 019 * @return The Block which block is involved in this event 020 */ 021 public final Block getBlock() { 022 return block; 023 } 024 }