Cancellable
public class ExplosionPrimeEvent extends EntityEvent implements Cancellable
Event.Result
entity
Constructor | Description |
---|---|
ExplosionPrimeEvent(Entity what,
float radius,
boolean fire) |
|
ExplosionPrimeEvent(Explosive explosive) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
getFire() |
Gets whether this explosion will create fire or not
|
static HandlerList |
getHandlerList() |
|
HandlerList |
getHandlers() |
|
float |
getRadius() |
Gets the radius of the explosion
|
boolean |
isCancelled() |
Gets the cancellation state of this event.
|
void |
setCancelled(boolean cancel) |
Sets the cancellation state of this event.
|
void |
setFire(boolean fire) |
Sets whether this explosion will create fire or not
|
void |
setRadius(float radius) |
Sets the radius of the explosion
|
getEntity, getEntityType
getEventName, isAsynchronous
public ExplosionPrimeEvent(Entity what, float radius, boolean fire)
public ExplosionPrimeEvent(Explosive explosive)
public boolean isCancelled()
Cancellable
isCancelled
in interface Cancellable
public void setCancelled(boolean cancel)
Cancellable
setCancelled
in interface Cancellable
cancel
- true if you wish to cancel this eventpublic float getRadius()
public void setRadius(float radius)
radius
- the radius of the explosionpublic boolean getFire()
public void setFire(boolean fire)
fire
- true if you want this explosion to create firepublic HandlerList getHandlers()
getHandlers
in class Event
public static HandlerList getHandlerList()
Copyright © 2018. All rights reserved.