public class ExplosionPrimeEvent extends Object implements EntityEvent, Cancellable
| Modifier and Type | Field and Description |
|---|---|
protected float |
force |
| Constructor and Description |
|---|
ExplosionPrimeEvent(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 affectsBlocks) |
void |
setCancelled(boolean cancelled)
Decides whether to cancel the event.
|
void |
setForce(float force) |
public ExplosionPrimeEvent(Entity entity, float force)
public float getForce()
public void setForce(float force)
public boolean isBlockBreaking()
public void setBlockBreaking(boolean affectsBlocks)
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–2018 NukkitX. All rights reserved.