healthColor

fun healthColor(amount: Float, max: Float): TextColor(source)

Determines the color of name tag of entity depending on it's maximum health

Return

color to be used for formatting

Parameters

amount

current health

max

maximum health