summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2018-08-01 08:20:54 +1000
committermd_5 <git@md-5.net>2018-08-01 08:20:54 +1000
commitdf94b61d25e4b957a4e727b16d2813bb91cf8fc9 (patch)
tree8d43469c54aceba74c92ea5642ad04a87aeab893 /src
parent61e81e7467cfd84c311509af20ae5dd7bbbc9aaf (diff)
downloadbukkit-df94b61d25e4b957a4e727b16d2813bb91cf8fc9.tar
bukkit-df94b61d25e4b957a4e727b16d2813bb91cf8fc9.tar.gz
bukkit-df94b61d25e4b957a4e727b16d2813bb91cf8fc9.tar.lz
bukkit-df94b61d25e4b957a4e727b16d2813bb91cf8fc9.tar.xz
bukkit-df94b61d25e4b957a4e727b16d2813bb91cf8fc9.zip
SPIGOT-4204: Allow passing data to AreaEffectCloud particles
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/bukkit/entity/AreaEffectCloud.java9
1 files changed, 9 insertions, 0 deletions
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
@@ -133,6 +133,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()}
+ */
+ <T> void setParticle(Particle particle, T data);
+
+ /**
* Sets the underlying potion data
*
* @param data PotionData to set the base potion state to