SPIGOT-1904: AreaEffectCloud events and additional API

By: t00thpick1 <t00thpick1dirko@gmail.com>
This commit is contained in:
Bukkit/Spigot
2016-03-12 12:08:25 -05:00
parent b9403026cd
commit 4bfc4d66d9
3 changed files with 128 additions and 0 deletions

View File

@@ -6,6 +6,7 @@ import org.bukkit.Particle;
import org.bukkit.potion.PotionData;
import org.bukkit.potion.PotionEffect;
import org.bukkit.potion.PotionEffectType;
import org.bukkit.projectiles.ProjectileSource;
/**
* Represents an area effect cloud which will imbue a potion effect onto
@@ -207,4 +208,18 @@ public interface AreaEffectCloud extends Entity {
* @param color cloud color
*/
void setColor(Color color);
/**
* Retrieve the original source of this cloud.
*
* @return the {@link ProjectileSource} that threw the LingeringPotion
*/
public ProjectileSource getSource();
/**
* Set the original source of this cloud.
*
* @param source the {@link ProjectileSource} that threw the LingeringPotion
*/
public void setSource(ProjectileSource source);
}