summaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2018-08-01 08:21:02 +1000
committermd_5 <git@md-5.net>2018-08-01 08:21:02 +1000
commita3b7e3433a01a5266c774912d71cb8451dcf7daf (patch)
tree7fb6f0d35ae88dded4868e06c8f06d68113fe06a /src/main/java
parentd474030e14d711ba29b83f3fff8e6c6dcf550a08 (diff)
downloadcraftbukkit-a3b7e3433a01a5266c774912d71cb8451dcf7daf.tar
craftbukkit-a3b7e3433a01a5266c774912d71cb8451dcf7daf.tar.gz
craftbukkit-a3b7e3433a01a5266c774912d71cb8451dcf7daf.tar.lz
craftbukkit-a3b7e3433a01a5266c774912d71cb8451dcf7daf.tar.xz
craftbukkit-a3b7e3433a01a5266c774912d71cb8451dcf7daf.zip
SPIGOT-4204: Allow passing data to AreaEffectCloud particles
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/bukkit/craftbukkit/entity/CraftAreaEffectCloud.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftAreaEffectCloud.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftAreaEffectCloud.java
index 555119a4..7e9239cf 100644
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftAreaEffectCloud.java
+++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftAreaEffectCloud.java
@@ -120,7 +120,12 @@ public class CraftAreaEffectCloud extends CraftEntity implements AreaEffectCloud
@Override
public void setParticle(Particle particle) {
- getHandle().setParticle(CraftParticle.toNMS(particle));
+ setParticle(particle, null);
+ }
+
+ @Override
+ public <T> void setParticle(Particle particle, T data) {
+ getHandle().setParticle(CraftParticle.toNMS(particle, data));
}
@Override