Added the concept of an Explosive.

By: sunkid <sunkid@iminurnetz.com>
This commit is contained in:
Bukkit/Spigot
2011-06-14 10:55:47 -07:00
parent 05163fbadc
commit 8e7ef46f6f
4 changed files with 49 additions and 10 deletions

View File

@@ -1,6 +1,7 @@
package org.bukkit.event.entity;
import org.bukkit.entity.Entity;
import org.bukkit.entity.Explosive;
import org.bukkit.event.Cancellable;
public class ExplosionPrimeEvent extends EntityEvent implements Cancellable {
@@ -15,6 +16,10 @@ public class ExplosionPrimeEvent extends EntityEvent implements Cancellable {
this.fire = fire;
}
public ExplosionPrimeEvent(Explosive explosive) {
this(explosive, explosive.getYield(), explosive.isIncendiary());
}
public boolean isCancelled() {
return cancel;
}