merge with head

By: stevenh <steven.hartland@multiplay.co.uk>
This commit is contained in:
Bukkit/Spigot
2011-01-29 17:18:32 +00:00
12 changed files with 289 additions and 15 deletions

View File

@@ -0,0 +1,31 @@
package org.bukkit.event.block;
import org.bukkit.block.Block;
import org.bukkit.event.Cancellable;
/**
* Called when a block is destroyed because of being burnt by fire
* @author tkelly
*/
public class BlockBurnEvent extends BlockEvent implements Cancellable {
private boolean cancelled;
public BlockBurnEvent(Block block) {
super(Type.BLOCK_BURN, block);
this.cancelled = false;
}
public boolean isCancelled() {
return cancelled;
}
/**
* Allow for the block to be stopped from being destroyed
* @param cancel
*/
public void setCancelled(boolean cancel) {
this.cancelled = cancel;
}
}