From 276f96f5de3740016aafbb78541b1de27dc2cc37 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Wed, 1 Aug 2018 08:20:54 +1000 Subject: [PATCH] SPIGOT-4204: Allow passing data to AreaEffectCloud particles By: md_5 --- .../src/main/java/org/bukkit/entity/AreaEffectCloud.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/entity/AreaEffectCloud.java b/paper-api/src/main/java/org/bukkit/entity/AreaEffectCloud.java index f88be2fff..9a569d3a3 100644 --- a/paper-api/src/main/java/org/bukkit/entity/AreaEffectCloud.java +++ b/paper-api/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 *