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