Cancellable
public class EnderDragonFireballHitEvent extends EntityEvent implements Cancellable
Event.Result
entity
Constructor | Description |
---|---|
EnderDragonFireballHitEvent(@NotNull DragonFireball fireball,
@Nullable Collection<LivingEntity> targets,
@NotNull AreaEffectCloud areaEffectCloud) |
Modifier and Type | Method | Description |
---|---|---|
@NotNull AreaEffectCloud |
getAreaEffectCloud() |
|
@NotNull DragonFireball |
getEntity() |
The fireball involved in this event
|
static @NotNull HandlerList |
getHandlerList() |
|
@NotNull HandlerList |
getHandlers() |
|
@Nullable Collection<LivingEntity> |
getTargets() |
The living entities hit by fireball
May be null if no entities were hit
|
boolean |
isCancelled() |
Gets the cancellation state of this event.
|
void |
setCancelled(boolean cancel) |
Sets the cancellation state of this event.
|
getEntityType
callEvent, getEventName, isAsynchronous
public EnderDragonFireballHitEvent(@NotNull @NotNull DragonFireball fireball, @Nullable @Nullable Collection<LivingEntity> targets, @NotNull @NotNull AreaEffectCloud areaEffectCloud)
@NotNull public @NotNull DragonFireball getEntity()
getEntity
in class EntityEvent
@Nullable public @Nullable Collection<LivingEntity> getTargets()
@NotNull public @NotNull AreaEffectCloud getAreaEffectCloud()
@NotNull public @NotNull HandlerList getHandlers()
getHandlers
in class Event
@NotNull public static @NotNull HandlerList getHandlerList()
public boolean isCancelled()
Cancellable
isCancelled
in interface Cancellable
public void setCancelled(boolean cancel)
Cancellable
setCancelled
in interface Cancellable
cancel
- true if you wish to cancel this eventCopyright © 2020. All rights reserved.