Bukkit/CraftBukkit — pull request #1031 by toqueteos (2013-02-16 20:24:20+00:00)
Title: Spawnable ThrownPotion. Adds BUKKIT-2542

Requires: https://github.com/Bukkit/Bukkit/pull/766
JIRA ticket:

Allows splash potions to be thrown to a location, just like Arrows, Fireballs and such.

```java
ThrownPotion p = someWorld.spawn(someLocation, ThrownPotion.class);
// also:
// ThrownPotion p = (ThrownPotion) someWorld.spawnEntity(someLocation, EntityType.SPLASH_POTION);
// Changes the colored aura on splash.
p.setType(PotionType.POISON);
// Single/Multiple effects can be added
p.addEffect(new PotionEffect(PotionEffectType.POISON, 2*60*20, 1));
p.addEffect(new PotionEffect(PotionEffectType.JUMP, 2*60*20, 1));
// could be made with:
// p.addEffects(Collection)
```

Tested and working.