public class EntityMotionEvent extends Object implements EntityEvent, Cancellable
| Constructor and Description |
|---|
EntityMotionEvent(Entity entity,
com.flowpowered.math.vector.Vector3f motion) |
| Modifier and Type | Method and Description |
|---|---|
Entity |
getEntity() |
com.flowpowered.math.vector.Vector3f |
getMotion() |
boolean |
isCancelled()
Whether or not to cancel the event.
|
void |
setCancelled(boolean cancelled)
Decides whether to cancel the event.
|
public EntityMotionEvent(Entity entity, com.flowpowered.math.vector.Vector3f motion)
public com.flowpowered.math.vector.Vector3f getMotion()
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.