Package noppes.npcs.api.entity.data
Interface ITintData
-
public interface ITintDataProvides 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 intgetGeneralAlpha()Returns the alpha (opacity) of the general tint overlay (0-255).intgetGeneralTint()Returns the general tint color as an RGB integer.intgetHurtTint()Returns the hurt tint color as an RGB integer (e.g.booleanisGeneralTintEnabled()Returns whether the general (persistent) tint is enabled.booleanisHurtTintEnabled()Returns whether the hurt tint effect is enabled.booleanisTintEnabled()Returns whether the tint system is enabled.voidsetGeneralAlpha(int alpha)Sets the alpha (opacity) of the general tint overlay (0-255).voidsetGeneralTint(int color)Sets the general tint color as an RGB integer.voidsetGeneralTintEnabled(boolean enabled)Sets whether the general (persistent) tint is enabled.voidsetHurtTint(int color)Sets the hurt tint color as an RGB integer.voidsetHurtTintEnabled(boolean enabled)Sets whether the hurt tint effect is enabled.voidsetTintEnabled(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.
-
-