summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2018-08-26 18:26:09 +1000
committermd_5 <git@md-5.net>2018-08-26 18:27:19 +1000
commit5d0d83bb90b240a065599e5144a91181c6212ca6 (patch)
tree2cd4f6700018655f7b9f0eca2e225a9c1b0adfcc /src
parenta677257885de9baf0bda21975380ae0ec7d2c6a9 (diff)
downloadcraftbukkit-5d0d83bb90b240a065599e5144a91181c6212ca6.tar
craftbukkit-5d0d83bb90b240a065599e5144a91181c6212ca6.tar.gz
craftbukkit-5d0d83bb90b240a065599e5144a91181c6212ca6.tar.lz
craftbukkit-5d0d83bb90b240a065599e5144a91181c6212ca6.tar.xz
craftbukkit-5d0d83bb90b240a065599e5144a91181c6212ca6.zip
SPIGOT-4309: Add "forced" display of particles
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/bukkit/craftbukkit/CraftWorld.java13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
index 303481a0..90451598 100644
--- a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
+++ b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
@@ -1566,6 +1566,16 @@ public class CraftWorld implements World {
@Override
public <T> void spawnParticle(Particle particle, double x, double y, double z, int count, double offsetX, double offsetY, double offsetZ, double extra, T data) {
+ spawnParticle(particle, x, y, z, count, offsetX, offsetY, offsetZ, extra, data, false);
+ }
+
+ @Override
+ public <T> void spawnParticle(Particle particle, Location location, int count, double offsetX, double offsetY, double offsetZ, double extra, T data, boolean force) {
+ spawnParticle(particle, location.getX(), location.getY(), location.getZ(), count, offsetX, offsetY, offsetZ, extra, data, force);
+ }
+
+ @Override
+ public <T> void spawnParticle(Particle particle, double x, double y, double z, int count, double offsetX, double offsetY, double offsetZ, double extra, T data, boolean force) {
if (data != null && !particle.getDataType().isInstance(data)) {
throw new IllegalArgumentException("data should be " + particle.getDataType() + " got " + data.getClass());
}
@@ -1575,7 +1585,8 @@ public class CraftWorld implements World {
x, y, z, // Position
count, // Count
offsetX, offsetY, offsetZ, // Random offset
- extra // Speed?
+ extra, // Speed?
+ force
);
}