Bukkit/src/main/java/org/bukkit/event/block/BlockBurnEvent.java
2011-05-15 14:06:02 +02:00

30 lines
673 B
Java

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;
}
}