public class EntityExplodeEvent extends Object implements EntityEvent, Cancellable
| Constructor and Description |
|---|
EntityExplodeEvent(Entity entity,
Vector3f position,
List<Block> blocks,
float yield) |
| Modifier and Type | Method and Description |
|---|---|
List<Block> |
getBlocks() |
Entity |
getEntity() |
Vector3f |
getPosition() |
float |
getYield() |
boolean |
isCancelled()
Whether or not to cancel the event.
|
void |
setCancelled(boolean cancelled)
Decides whether to cancel the event.
|
void |
setYield(float yield) |
public Vector3f getPosition()
public float getYield()
public void setYield(float yield)
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.