summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/bukkit/event/entity/ExplosionPrimeEvent.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org/bukkit/event/entity/ExplosionPrimeEvent.java')
-rw-r--r--src/main/java/org/bukkit/event/entity/ExplosionPrimeEvent.java42
1 files changed, 42 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/event/entity/ExplosionPrimeEvent.java b/src/main/java/org/bukkit/event/entity/ExplosionPrimeEvent.java
new file mode 100644
index 00000000..afccf17f
--- /dev/null
+++ b/src/main/java/org/bukkit/event/entity/ExplosionPrimeEvent.java
@@ -0,0 +1,42 @@
+package org.bukkit.event.entity;
+
+import org.bukkit.entity.Entity;
+import org.bukkit.event.Cancellable;
+
+public class ExplosionPrimeEvent extends EntityEvent implements Cancellable {
+ private boolean cancel;
+ private float radius;
+ private boolean fire;
+
+ public ExplosionPrimeEvent(Type type, Entity what, float radius, boolean fire) {
+ super(type.EXPLOSION_PRIME, what);
+ this.cancel = false;
+ this.radius = radius;
+ this.fire = fire;
+ }
+
+ public boolean isCancelled() {
+ return cancel;
+ }
+
+ public void setCancelled(boolean cancel) {
+ this.cancel = cancel;
+ }
+
+ public float getRadius() {
+ return radius;
+ }
+
+ public void setRadius(float radius) {
+ this.radius = radius;
+ }
+
+ public boolean getFire() {
+ return fire;
+ }
+
+ public void setFire(boolean fire) {
+ this.fire = fire;
+ }
+
+}