Added PotionSplashEvent

Discussion in 'Bukkit Preview' started by Zeerix, Jan 25, 2012.

  1. Offline

    Zeerix

    This adds the PotionSplashEvent, which is called when a thrown splash potion hits something.

    The event exposes the ThrownPotion instance and a set of all affected LivingEntities.
    It also allows to get and set the intensity of the potion effects for each entity individually.

    You can add entities to the set by setting their effect intensity, or remove them by setting the intensity to 0.0.
    The event is cancellable to negate all effects.

    JavaDoc: PotionSplashEvent
     

Share This Page