public class EnderDragonFireballHitEvent extends EntityEvent implements Cancellable
Event.Resultentity| Constructor and Description |
|---|
EnderDragonFireballHitEvent(@NotNull DragonFireball fireball,
@Nullable Collection<LivingEntity> targets,
@NotNull AreaEffectCloud areaEffectCloud) |
| Modifier and Type | Method and 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.
|
getEntityTypecallEvent, getEventName, isAsynchronouspublic 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()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancel)
CancellablesetCancelled in interface Cancellablecancel - true if you wish to cancel this eventCopyright © 2021. All rights reserved.