Added EntityExplodeEvent :D

This commit is contained in:
speakeasy
2011-01-17 22:27:48 +08:00
committed by Dinner Bone
parent b1729b097e
commit f9e46f8481
4 changed files with 53 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
package org.bukkit.event.entity;
import java.util.List;
import org.bukkit.block.Block;
import org.bukkit.entity.Entity;
import org.bukkit.event.Cancellable;
/**
*
* @author SpeaKeasY
*/
public class EntityExplodeEvent extends EntityEvent implements Cancellable {
private boolean cancel;
private List blocks;
public EntityExplodeEvent (Type type, Entity what, List<Block> blocks) {
super(type.ENTITY_EXPLODE, what);
this.cancel = false;
this.blocks = blocks;
}
public boolean isCancelled() {
return cancel;
}
public void setCancelled(boolean cancel) {
this.cancel = cancel;
}
/**
* Returns the list of blocks that would have been removed or were
* removed from the explosion event.
*/
public List<Block> blockList() {
return blocks;
}
}