Commits
2266 2266 | spawnParticle(particle, x, y, z, count, offsetX, offsetY, offsetZ, extra, data, false); |
2267 2267 | } |
2268 2268 | |
2269 2269 | |
2270 2270 | public <T> void spawnParticle(Particle particle, Location location, int count, double offsetX, double offsetY, double offsetZ, double extra, T data, boolean force) { |
2271 2271 | spawnParticle(particle, location.getX(), location.getY(), location.getZ(), count, offsetX, offsetY, offsetZ, extra, data, force); |
2272 2272 | } |
2273 2273 | |
2274 2274 | |
2275 2275 | 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) { |
2276 - | PacketPlayOutWorldParticles packetplayoutworldparticles = new PacketPlayOutWorldParticles(CraftParticle.createParticleParam(particle, data), false, force, (float) x, (float) y, (float) z, (float) offsetX, (float) offsetY, (float) offsetZ, (float) extra, count); |
2276 + | PacketPlayOutWorldParticles packetplayoutworldparticles = new PacketPlayOutWorldParticles(CraftParticle.createParticleParam(particle, data), force, false /* TODO: Expose override limiter */, (float) x, (float) y, (float) z, (float) offsetX, (float) offsetY, (float) offsetZ, (float) extra, count); |
2277 2277 | getHandle().connection.send(packetplayoutworldparticles); |
2278 2278 | } |
2279 2279 | |
2280 2280 | |
2281 2281 | public org.bukkit.advancement.AdvancementProgress getAdvancementProgress(org.bukkit.advancement.Advancement advancement) { |
2282 2282 | Preconditions.checkArgument(advancement != null, "advancement"); |
2283 2283 | |
2284 2284 | CraftAdvancement craft = (CraftAdvancement) advancement; |
2285 2285 | AdvancementDataPlayer data = getHandle().getAdvancements(); |
2286 2286 | AdvancementProgress progress = data.getOrStartProgress(craft.getHandle()); |