Cancellablepublic class EnderDragonFireballHitEvent extends EntityEvent implements Cancellable
Event.Resultentity| Constructor | Description |
|---|---|
EnderDragonFireballHitEvent(DragonFireball fireball,
Collection<LivingEntity> targets,
AreaEffectCloud areaEffectCloud) |
| Modifier and Type | Method | Description |
|---|---|---|
AreaEffectCloud |
getAreaEffectCloud() |
|
DragonFireball |
getEntity() |
The fireball involved in this event
|
static HandlerList |
getHandlerList() |
|
HandlerList |
getHandlers() |
|
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 DragonFireball fireball, @Nullable Collection<LivingEntity> targets, @NotNull AreaEffectCloud areaEffectCloud)
@NotNull public DragonFireball getEntity()
getEntity in class EntityEvent@Nullable public Collection<LivingEntity> getTargets()
@NotNull public AreaEffectCloud getAreaEffectCloud()
@NotNull public HandlerList getHandlers()
getHandlers in class Event@NotNull public static 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 © 2020. All rights reserved.