From df94b61d25e4b957a4e727b16d2813bb91cf8fc9 Mon Sep 17 00:00:00 2001 From: md_5 Date: Wed, 1 Aug 2018 08:20:54 +1000 Subject: SPIGOT-4204: Allow passing data to AreaEffectCloud particles --- src/main/java/org/bukkit/entity/AreaEffectCloud.java | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/main/java/org') diff --git a/src/main/java/org/bukkit/entity/AreaEffectCloud.java b/src/main/java/org/bukkit/entity/AreaEffectCloud.java index f88be2ff..9a569d3a 100644 --- a/src/main/java/org/bukkit/entity/AreaEffectCloud.java +++ b/src/main/java/org/bukkit/entity/AreaEffectCloud.java @@ -132,6 +132,15 @@ public interface AreaEffectCloud extends Entity { */ void setParticle(Particle particle); + /** + * Sets the particle which this cloud will be composed of + * + * @param particle the new particle type + * @param data the data to use for the particle or null, + * the type of this depends on {@link Particle#getDataType()} + */ + void setParticle(Particle particle, T data); + /** * Sets the underlying potion data * -- cgit v1.2.3