[SPIGOT-5353] Explosion with source entity Created: 04/Oct/19  Updated: 05/Oct/19  Resolved: 05/Oct/19

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Minor
Reporter: SkytAsul Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: api, entity, explosion

Version: CraftBukkit version git-Spigot-94af569-a3fdef8 (MC: 1.14.4) (Implementing API version 1.14.4-R0.1-SNAPSHOT)
Guidelines Read: Yes

 Description   

The Spigot API does not provide a method to create an explosion with a source entity.
Here is the javadoc related to explosions: https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/World.html#createExplosion-double-double-double-float-
However, the NMS method to create an explosion is:

public Explosion createExplosion(@Nullable Entity entity, DamageSource damagesource, double d0, double d1, double d2, float f, boolean flag, Effect explosion_effect)

 The CraftBukkit implementation always provides a null entity for the first field, and I'm wondering why isn't there methods to create explosions with a source entity.


Generated at Fri Apr 11 15:30:18 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.