Cancellablepublic class ProjectileLaunchEvent extends EntitySpawnEvent implements Cancellable
Event.Resultentity| Constructor | Description |
|---|---|
ProjectileLaunchEvent(@NotNull Entity what) |
| Modifier and Type | Method | Description |
|---|---|---|
@NotNull Projectile |
getEntity() |
Returns the Entity involved in this event
|
boolean |
isCancelled() |
Gets the cancellation state of this event.
|
void |
setCancelled(boolean cancel) |
Sets the cancellation state of this event.
|
getEntityTypegetHandlerList, getHandlers, getLocationgetEventName, isAsynchronouspublic ProjectileLaunchEvent(@NotNull
@NotNull Entity what)
public boolean isCancelled()
CancellableisCancelled in interface CancellableisCancelled in class EntitySpawnEventpublic void setCancelled(boolean cancel)
CancellablesetCancelled in interface CancellablesetCancelled in class EntitySpawnEventcancel - true if you wish to cancel this event@NotNull public @NotNull Projectile getEntity()
EntityEventgetEntity in class EntityEventCopyright © 2020. All rights reserved.