Package org.bukkit.event.entity
Class AreaEffectCloudApplyEvent
- java.lang.Object
-
- org.bukkit.event.Event
-
- org.bukkit.event.entity.EntityEvent
-
- org.bukkit.event.entity.AreaEffectCloudApplyEvent
-
public class AreaEffectCloudApplyEvent extends EntityEvent
Called when a lingering potion applies it's effects. Happens once every 5 ticks
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
-
Field Summary
-
Fields inherited from class org.bukkit.event.entity.EntityEvent
entity
-
-
Constructor Summary
Constructors Constructor Description AreaEffectCloudApplyEvent(AreaEffectCloud entity, List<LivingEntity> affectedEntities)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<LivingEntity>
getAffectedEntities()
Retrieves a mutable list of the effected entitiesAreaEffectCloud
getEntity()
Returns the Entity involved in this eventstatic HandlerList
getHandlerList()
HandlerList
getHandlers()
-
Methods inherited from class org.bukkit.event.entity.EntityEvent
getEntityType
-
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
-
-
-
Constructor Detail
-
AreaEffectCloudApplyEvent
public AreaEffectCloudApplyEvent(AreaEffectCloud entity, List<LivingEntity> affectedEntities)
-
-
Method Detail
-
getEntity
public AreaEffectCloud getEntity()
Description copied from class:EntityEvent
Returns the Entity involved in this event- Overrides:
getEntity
in classEntityEvent
- Returns:
- Entity who is involved in this event
-
getAffectedEntities
public List<LivingEntity> getAffectedEntities()
Retrieves a mutable list of the effected entitiesIt is important to note that not every entity in this list is guaranteed to be effected. The cloud may die during the application of its effects due to the depletion of
AreaEffectCloud.getDurationOnUse()
orAreaEffectCloud.getRadiusOnUse()
- Returns:
- the affected entity list
-
getHandlers
public HandlerList getHandlers()
- Specified by:
getHandlers
in classEvent
-
getHandlerList
public static HandlerList getHandlerList()
-
-