public class ProjectileLaunchEvent extends EntitySpawnEvent implements Cancellable
Event.Result
entity
Constructor and Description |
---|
ProjectileLaunchEvent(@NotNull Entity what) |
Modifier and Type | Method and 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.
|
getHandlerList, getHandlers, getLocation
getEntityType
callEvent, getEventName, isAsynchronous
public boolean isCancelled()
Cancellable
isCancelled
in interface Cancellable
isCancelled
in class EntitySpawnEvent
public void setCancelled(boolean cancel)
Cancellable
setCancelled
in interface Cancellable
setCancelled
in class EntitySpawnEvent
cancel
- true if you wish to cancel this event@NotNull public @NotNull Projectile getEntity()
EntityEvent
getEntity
in class EntityEvent
Copyright © 2021. All rights reserved.