Interface IEnergyExplosion<T extends net.minecraft.entity.Entity>

    • Method Detail

      • getRadius

        float getRadius()
        Returns:
        The maximum explosion radius in blocks.
      • setRadius

        void setRadius​(float radius)
        Parameters:
        radius - Maximum explosion radius in blocks (clamped 0.5-50). Duration auto-scales.
      • getDuration

        int getDuration()
        Returns:
        Duration of the explosion visual in ticks (auto-calculated from radius).
      • getDamage

        float getDamage()
        Returns:
        Base damage dealt at the center. 0 means visual-only.
      • setDamage

        void setDamage​(float damage)
        Parameters:
        damage - Base damage at the center. Setting > 0 enables damage.
      • getKnockback

        float getKnockback()
        Returns:
        Base knockback strength.
      • setKnockback

        void setKnockback​(float knockback)
        Parameters:
        knockback - Base knockback strength.
      • getKnockbackUp

        float getKnockbackUp()
        Returns:
        Upward knockback component.
      • setKnockbackUp

        void setKnockbackUp​(float knockbackUp)
        Parameters:
        knockbackUp - Upward knockback component.
      • getDamageFalloff

        float getDamageFalloff()
        Returns:
        Damage falloff factor (0=no falloff, 1=full falloff at edge).
      • setDamageFalloff

        void setDamageFalloff​(float falloff)
        Parameters:
        falloff - Damage falloff factor (0-1). At 0.5, edge damage = 50% of center.
      • spawn

        void spawn()
        Spawn this explosion entity into the world. Sends the visual to nearby clients and, if damage > 0, applies area damage on the first tick.