Interface IAbilityEnergyProjectile

    • Method Detail

      • getDamage

        float getDamage()
        Returns:
        Base damage dealt on hit.
      • setDamage

        void setDamage​(float damage)
        Parameters:
        damage - Base damage on hit.
      • getKnockback

        float getKnockback()
        Returns:
        Horizontal knockback strength applied on hit.
      • setKnockback

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

        float getKnockbackUp()
        Returns:
        Vertical knockback strength applied on hit.
      • setKnockbackUp

        void setKnockbackUp​(float knockback)
        Parameters:
        knockback - Vertical knockback strength.
      • isExplosive

        boolean isExplosive()
        Returns:
        Whether the projectile explodes on impact.
      • setExplosive

        void setExplosive​(boolean explosive)
        Parameters:
        explosive - Whether to explode on impact.
      • getExplosionRadius

        float getExplosionRadius()
        Returns:
        Explosion radius in blocks.
      • setExplosionRadius

        void setExplosionRadius​(float radius)
        Parameters:
        radius - Explosion radius in blocks.
      • getExplosionDamageFalloff

        float getExplosionDamageFalloff()
        Returns:
        Damage falloff multiplier over explosion distance (0.0-1.0).
      • setExplosionDamageFalloff

        void setExplosionDamageFalloff​(float falloff)
        Parameters:
        falloff - Damage falloff multiplier (0.0-1.0).
      • getHitType

        int getHitType()
        Returns:
        Hit type ordinal (determines how repeated hits are handled).
      • setHitType

        void setHitType​(int hitType)
        Parameters:
        hitType - Hit type ordinal.
      • getMultiHitDelayTicks

        int getMultiHitDelayTicks()
        Returns:
        Delay in ticks between repeated hits on the same target.
      • setMultiHitDelayTicks

        void setMultiHitDelayTicks​(int delayTicks)
        Parameters:
        delayTicks - Delay in ticks between repeated hits.
      • getMaxHits

        int getMaxHits()
        Returns:
        Maximum number of times this projectile can hit the same target.
      • setMaxHits

        void setMaxHits​(int maxHits)
        Parameters:
        maxHits - Maximum hit count per target.
      • getMaxDistance

        float getMaxDistance()
        Returns:
        Maximum travel distance in blocks before the projectile expires.
      • setMaxDistance

        void setMaxDistance​(float distance)
        Parameters:
        distance - Maximum travel distance in blocks.
      • getMaxLifetime

        int getMaxLifetime()
        Returns:
        Maximum lifetime in ticks before the projectile expires.
      • setMaxLifetime

        void setMaxLifetime​(int ticks)
        Parameters:
        ticks - Maximum lifetime in ticks.
      • getInnerColor

        int getInnerColor()
        Returns:
        Inner (core) color as a packed RGB integer.
      • setInnerColor

        void setInnerColor​(int color)
        Parameters:
        color - Inner color as a packed RGB integer.
      • getOuterColor

        int getOuterColor()
        Returns:
        Outer (glow) color as a packed RGB integer.
      • setOuterColor

        void setOuterColor​(int color)
        Parameters:
        color - Outer color as a packed RGB integer.
      • isOuterColorEnabled

        boolean isOuterColorEnabled()
        Returns:
        Whether the outer color layer is rendered.
      • setOuterColorEnabled

        void setOuterColorEnabled​(boolean enabled)
        Parameters:
        enabled - Whether to render the outer color layer.
      • getOuterColorWidth

        float getOuterColorWidth()
        Returns:
        Width of the outer color layer relative to the projectile size.
      • setOuterColorWidth

        void setOuterColorWidth​(float width)
        Parameters:
        width - Outer color layer width.
      • getOuterColorAlpha

        float getOuterColorAlpha()
        Returns:
        Alpha (opacity) of the outer color layer (0.0-1.0).
      • setOuterColorAlpha

        void setOuterColorAlpha​(float alpha)
        Parameters:
        alpha - Outer color opacity (0.0-1.0).
      • hasLightningEffect

        boolean hasLightningEffect()
        Returns:
        Whether the lightning visual effect is enabled.
      • setLightningEffect

        void setLightningEffect​(boolean enabled)
        Parameters:
        enabled - Whether to enable the lightning effect.
      • getLightningDensity

        float getLightningDensity()
        Returns:
        Density of lightning arcs (higher = more arcs).
      • setLightningDensity

        void setLightningDensity​(float density)
        Parameters:
        density - Lightning arc density.
      • getLightningRadius

        float getLightningRadius()
        Returns:
        Radius of the lightning effect around the projectile, in blocks.
      • setLightningRadius

        void setLightningRadius​(float radius)
        Parameters:
        radius - Lightning effect radius in blocks.
      • getAnchorPoint

        int getAnchorPoint()
        Returns:
        Anchor point ordinal (0=FEET, 1=CENTER, 2=RIGHT_HAND, 3=LEFT_HAND, 4=HEAD, 5=FRONT, 6=ABOVE_HEAD).
      • setAnchorPoint

        void setAnchorPoint​(int point)
        Parameters:
        point - Anchor point ordinal (0=FEET, 1=CENTER, 2=RIGHT_HAND, 3=LEFT_HAND, 4=HEAD, 5=FRONT, 6=ABOVE_HEAD).
      • getLaunchFromAnchor

        boolean getLaunchFromAnchor()
        Returns:
        Whether the projectile launches from its anchor position instead of the default eye/look-vector position.
      • setLaunchFromAnchor

        void setLaunchFromAnchor​(boolean launchFromAnchor)
        Parameters:
        launchFromAnchor - When true, the projectile launches from its configured anchor position.