Commits

t00thpick1 authored and md_5 committed 0b10b8e5434
SPIGOT-1904: AreaEffectCloud events and additional API
No tags

src/main/java/org/bukkit/entity/AreaEffectCloud.java

Modified
1 1 package org.bukkit.entity;
2 2
3 3 import java.util.List;
4 4 import org.bukkit.Color;
5 5 import org.bukkit.Particle;
6 6 import org.bukkit.potion.PotionData;
7 7 import org.bukkit.potion.PotionEffect;
8 8 import org.bukkit.potion.PotionEffectType;
9 +import org.bukkit.projectiles.ProjectileSource;
9 10
10 11 /**
11 12 * Represents an area effect cloud which will imbue a potion effect onto
12 13 * entities which enter it.
13 14 */
14 15 public interface AreaEffectCloud extends Entity {
15 16
16 17 /**
17 18 * Gets the duration which this cloud will exist for (in ticks).
18 19 *
200 201 * @return cloud color
201 202 */
202 203 Color getColor();
203 204
204 205 /**
205 206 * Sets the color of this cloud. Will be applied as a tint to its particles.
206 207 *
207 208 * @param color cloud color
208 209 */
209 210 void setColor(Color color);
211 +
212 + /**
213 + * Retrieve the original source of this cloud.
214 + *
215 + * @return the {@link ProjectileSource} that threw the LingeringPotion
216 + */
217 + public ProjectileSource getSource();
218 +
219 + /**
220 + * Set the original source of this cloud.
221 + *
222 + * @param source the {@link ProjectileSource} that threw the LingeringPotion
223 + */
224 + public void setSource(ProjectileSource source);
210 225 }

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut