@@ -27,6 +27,9 @@ public class EntityListener implements Listener {
|
||||
public void onEntityExplode(EntityExplodeEvent event) {
|
||||
}
|
||||
|
||||
public void onExplosionPrimed(ExplosionPrimedEvent event) {
|
||||
}
|
||||
|
||||
public void onEntityDeath(EntityDeathEvent event) {
|
||||
}
|
||||
|
||||
|
||||
42
paper-api/src/main/java/org/bukkit/event/entity/ExplosionPrimedEvent.java
Executable file
42
paper-api/src/main/java/org/bukkit/event/entity/ExplosionPrimedEvent.java
Executable file
@@ -0,0 +1,42 @@
|
||||
package org.bukkit.event.entity;
|
||||
|
||||
import org.bukkit.entity.Entity;
|
||||
import org.bukkit.event.Cancellable;
|
||||
|
||||
public class ExplosionPrimedEvent extends EntityEvent implements Cancellable {
|
||||
private boolean cancel;
|
||||
private float radius;
|
||||
private boolean fire;
|
||||
|
||||
public ExplosionPrimedEvent(Type type, Entity what, float radius, boolean fire) {
|
||||
super(type.EXPLOSION_PRIMED, 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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user