Cancellablepublic class PotionSplashEvent extends ProjectileHitEvent implements Cancellable
Event.Resultentity| Constructor | Description | 
|---|---|
| PotionSplashEvent(ThrownPotion potion,
                 Map<LivingEntity,Double> affectedEntities) | 
| Modifier and Type | Method | Description | 
|---|---|---|
| Collection<LivingEntity> | getAffectedEntities() | Retrieves a list of all effected entities | 
| ThrownPotion | getEntity() | Returns the Entity involved in this event | 
| static HandlerList | getHandlerList() | |
| HandlerList | getHandlers() | |
| double | getIntensity(LivingEntity entity) | Gets the intensity of the potion's effects for given entity; This
 depends on the distance to the impact center | 
| ThrownPotion | getPotion() | Gets the potion which caused this event | 
| boolean | isCancelled() | Gets the cancellation state of this event. | 
| void | setCancelled(boolean cancel) | Sets the cancellation state of this event. | 
| void | setIntensity(LivingEntity entity,
            double intensity) | Overwrites the intensity for a given entity | 
getEntityTypecallEvent, getEventName, isAsynchronousclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetHitBlock, getHitBlockFace, getHitEntitypublic PotionSplashEvent(@NotNull
                         ThrownPotion potion,
                         @NotNull
                         Map<LivingEntity,Double> affectedEntities)
@NotNull public ThrownPotion getEntity()
EntityEventgetEntity in class ProjectileHitEvent@NotNull public ThrownPotion getPotion()
@NotNull public Collection<LivingEntity> getAffectedEntities()
public double getIntensity(@NotNull
                           LivingEntity entity)
entity - Which entity to get intensity forpublic void setIntensity(@NotNull
                         LivingEntity entity,
                         double intensity)
entity - For which entity to define a new intensityintensity - relative to maximum effectpublic boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancel)
CancellablesetCancelled in interface Cancellablecancel - true if you wish to cancel this event@NotNull public HandlerList getHandlers()
getHandlers in class ProjectileHitEvent@NotNull public static HandlerList getHandlerList()
Copyright © 2020. All rights reserved.