Package-level declarations

Contains code for damage calculations and displaying

Types

Link copied to clipboard

An object that performs specific damage calculations

Link copied to clipboard

Enum to identifier type of damage.

Link copied to clipboard

Represents type of damage dealt that will be displayed on damage indicators

Functions

Link copied to clipboard
fun clamp(value: Float, min: Float, max: Float): Float

Clamps the value between the minimum and maximum

Link copied to clipboard
fun healthColor(amount: Float, max: Float): TextColor

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

Link copied to clipboard
fun Vector.relativeLocation(location: Location): Location

Calculates a location relative to the provided location with this vector

Link copied to clipboard
fun truncateBigNumber(number: Float, applyFormatToInt: Boolean = false): String

Truncates a big number to a pretty string