Cancellable
public class EnderDragonFireballHitEvent extends EntityEvent implements Cancellable
Event.Result
entity
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.
|
getEntityType
callEvent, getEventName, isAsynchronous
public 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()
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.