Interface ITintData


  • public interface ITintData
    Provides configuration data for an NPC's color tinting effects.

    Controls both the hurt tint (flash color when damaged) and a persistent general tint overlay applied to the NPC's model.

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      int getGeneralAlpha()
      Returns the alpha (opacity) of the general tint overlay (0-255).
      int getGeneralTint()
      Returns the general tint color as an RGB integer.
      int getHurtTint()
      Returns the hurt tint color as an RGB integer (e.g.
      boolean isGeneralTintEnabled()
      Returns whether the general (persistent) tint is enabled.
      boolean isHurtTintEnabled()
      Returns whether the hurt tint effect is enabled.
      boolean isTintEnabled()
      Returns whether the tint system is enabled.
      void setGeneralAlpha​(int alpha)
      Sets the alpha (opacity) of the general tint overlay (0-255).
      void setGeneralTint​(int color)
      Sets the general tint color as an RGB integer.
      void setGeneralTintEnabled​(boolean enabled)
      Sets whether the general (persistent) tint is enabled.
      void setHurtTint​(int color)
      Sets the hurt tint color as an RGB integer.
      void setHurtTintEnabled​(boolean enabled)
      Sets whether the hurt tint effect is enabled.
      void setTintEnabled​(boolean enabled)
      Sets whether the tint system is enabled.
    • Method Detail

      • isTintEnabled

        boolean isTintEnabled()
        Returns whether the tint system is enabled.
        Returns:
        true if tinting is enabled, false otherwise.
      • setTintEnabled

        void setTintEnabled​(boolean enabled)
        Sets whether the tint system is enabled.
        Parameters:
        enabled - true to enable, false to disable.
      • isHurtTintEnabled

        boolean isHurtTintEnabled()
        Returns whether the hurt tint effect is enabled.
        Returns:
        true if hurt tint is enabled, false otherwise.
      • setHurtTintEnabled

        void setHurtTintEnabled​(boolean enabled)
        Sets whether the hurt tint effect is enabled.
        Parameters:
        enabled - true to enable, false to disable.
      • isGeneralTintEnabled

        boolean isGeneralTintEnabled()
        Returns whether the general (persistent) tint is enabled.
        Returns:
        true if general tint is enabled, false otherwise.
      • setGeneralTintEnabled

        void setGeneralTintEnabled​(boolean enabled)
        Sets whether the general (persistent) tint is enabled.
        Parameters:
        enabled - true to enable, false to disable.
      • getHurtTint

        int getHurtTint()
        Returns the hurt tint color as an RGB integer (e.g. 0xff0000 for red).
        Returns:
        the hurt tint color.
      • setHurtTint

        void setHurtTint​(int color)
        Sets the hurt tint color as an RGB integer.
        Parameters:
        color - the hurt tint color (e.g. 0xff0000 for red).
      • getGeneralTint

        int getGeneralTint()
        Returns the general tint color as an RGB integer.
        Returns:
        the general tint color.
      • setGeneralTint

        void setGeneralTint​(int color)
        Sets the general tint color as an RGB integer.
        Parameters:
        color - the general tint color.
      • getGeneralAlpha

        int getGeneralAlpha()
        Returns the alpha (opacity) of the general tint overlay (0-255).
        Returns:
        the general tint alpha value.
      • setGeneralAlpha

        void setGeneralAlpha​(int alpha)
        Sets the alpha (opacity) of the general tint overlay (0-255).
        Parameters:
        alpha - the general tint alpha value.