Files
Bukkit/src/main/java/org/bukkit/event/block/BlockBurnEvent.java
Taylor Kelly 0e7dc4e1b5 BlockBurnEvent
2011-01-26 16:13:04 -05:00

32 lines
675 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;
}
}