Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-5353

Explosion with source entity

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None
    • CraftBukkit version git-Spigot-94af569-a3fdef8 (MC: 1.14.4) (Implementing API version 1.14.4-R0.1-SNAPSHOT)
    • Yes

      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.

            Unassigned Unassigned
            SkytAsul SkytAsul
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: