public class EntityExplosionPrimeEvent extends Object implements EntityEvent, Cancellable
| Constructor and Description |
|---|
EntityExplosionPrimeEvent(Entity entity,
float force) |
| Modifier and Type | Method and Description |
|---|---|
Entity |
getEntity() |
float |
getForce() |
boolean |
isBlockBreaking() |
boolean |
isCancelled()
Whether or not to cancel the event.
|
void |
setBlockBreaking(boolean blockBreaking) |
void |
setCancelled(boolean cancelled)
Decides whether to cancel the event.
|
void |
setForce(float force) |
public EntityExplosionPrimeEvent(Entity entity, float force)
public float getForce()
public boolean isBlockBreaking()
public void setBlockBreaking(boolean blockBreaking)
public void setForce(float force)
public Entity getEntity()
getEntity in interface EntityEventpublic boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancelled)
CancellablesetCancelled in interface Cancellablecancelled - true to cancel the event.Copyright © 2017–2019 NukkitX. All rights reserved.