BlockBurnEvent

This commit is contained in:
Taylor Kelly
2011-01-26 16:13:04 -05:00
parent bf39db3222
commit 0e7dc4e1b5
4 changed files with 49 additions and 0 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;
}
}