Skip to content

main.java

Garkatron edited this page Jul 18, 2024 · 1 revision

Constants

  1. MIN_TEMPERATURE

    • Description: Defines the minimum temperature a player can have.
    • Value: -50.0
  2. MAX_TEMPERATURE

    • Description: Defines the maximum temperature a player can have.
    • Value: 50.0
  3. DEFAULT_TEMPERATURE

    • Description: Defines the default temperature for a player.
    • Value: 36.5
  4. NEEDED_TIME_TO_UPDATE

    • Description: Defines the amount of time in seconds needed to update the player's temperature.
    • Value: 1

Function

secondsToTicks(int seconds)

Converts a given amount of seconds into ticks using the TICKS_PER_SECOND constant.

  • Parameters: seconds (int) - The number of seconds to convert.
  • Returns: int - The equivalent amount in ticks.

Clone this wiki locally