public class PotionSplashEvent extends ProjectileHitEvent implements Cancellable
Event.Result
entity
コンストラクタと説明 |
---|
PotionSplashEvent(ThrownPotion potion,
Map<LivingEntity,Double> affectedEntities) |
修飾子とタイプ | メソッドと説明 |
---|---|
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
|
getEntityType
getEventName, isAsynchronous
public PotionSplashEvent(ThrownPotion potion, Map<LivingEntity,Double> affectedEntities)
public ThrownPotion getEntity()
EntityEvent
getEntity
クラス内 ProjectileHitEvent
public ThrownPotion getPotion()
public Collection<LivingEntity> getAffectedEntities()
public double getIntensity(LivingEntity entity)
entity
- Which entity to get intensity forpublic void setIntensity(LivingEntity entity, double intensity)
entity
- For which entity to define a new intensityintensity
- relative to maximum effectpublic boolean isCancelled()
Cancellable
isCancelled
インタフェース内 Cancellable
public void setCancelled(boolean cancel)
Cancellable
setCancelled
インタフェース内 Cancellable
cancel
- true if you wish to cancel this eventpublic HandlerList getHandlers()
getHandlers
クラス内 ProjectileHitEvent
public static HandlerList getHandlerList()
Copyright © 2016. All rights reserved.