public class ProjectileHitEvent extends Object implements EntityEvent, Cancellable
| Constructor and Description |
|---|
ProjectileHitEvent(Entity entity) |
ProjectileHitEvent(Entity entity,
com.flowpowered.math.vector.Vector3f movingObjectPosition) |
| Modifier and Type | Method and Description |
|---|---|
Entity |
getEntity() |
com.flowpowered.math.vector.Vector3f |
getMovingObjectPosition() |
boolean |
isCancelled()
Whether or not to cancel the event.
|
void |
setCancelled(boolean cancelled)
Decides whether to cancel the event.
|
void |
setMovingObjectPosition(com.flowpowered.math.vector.Vector3f movingObjectPosition) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcancelpublic ProjectileHitEvent(Entity entity)
public ProjectileHitEvent(Entity entity, com.flowpowered.math.vector.Vector3f movingObjectPosition)
public com.flowpowered.math.vector.Vector3f getMovingObjectPosition()
public void setMovingObjectPosition(com.flowpowered.math.vector.Vector3f movingObjectPosition)
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–2020 NukkitX. All rights reserved.