public class ExplosionPrimeEvent extends EntityEvent implements Cancellable
Event.Resultentity| Constructor and Description | 
|---|
ExplosionPrimeEvent(@NotNull Entity what,
                   float radius,
                   boolean fire)  | 
ExplosionPrimeEvent(@NotNull Explosive explosive)  | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
getFire()
Gets whether this explosion will create fire or not 
 | 
static @NotNull HandlerList | 
getHandlerList()  | 
@NotNull 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, getEntityTypecallEvent, getEventName, isAsynchronouspublic ExplosionPrimeEvent(@NotNull @NotNull Entity what, float radius, boolean fire)
public boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancel)
CancellablesetCancelled in interface Cancellablecancel - 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 fire@NotNull public @NotNull HandlerList getHandlers()
getHandlers in class Event@NotNull public static @NotNull HandlerList getHandlerList()
Copyright © 2022. All rights reserved.