Repository navigation
IStanleyPlayerEntity.java
Garkatron edited this page Jul 18, 2024
·
1 revision
-
stanley_lib$getPlayerTemperature()- Description: Gets the current temperature of the player.
-
Returns:
double- The current temperature.
-
stanley_lib$setPlayerTemperature(double temperature)- Description: Sets the player's temperature to a specific value.
-
Parameters:
-
temperature(double) - The new temperature value.
-
-
stanley_lib$increasePlayerTemperature(double amount)- Description: Increases the player's temperature by a specified amount.
-
Parameters:
-
amount(double) - The amount to increase the temperature by.
-
-
stanley_lib$decreasePlayerTemperature(double amount)- Description: Decreases the player's temperature by a specified amount.
-
Parameters:
-
amount(double) - The amount to decrease the temperature by.
-
-
stanley_lib$isPlayerOverheating()- Description: Checks if the player is overheating.
-
Returns:
boolean-trueif the player is overheating,falseotherwise.
-
stanley_lib$isPlayerFreezing()- Description: Checks if the player is freezing.
-
Returns:
boolean-trueif the player is freezing,falseotherwise.
-
stanley_lib$resetPlayerTemperature()- Description: Resets the player's temperature to the default value.
-
stanley_lib$killByFreezing()- Description: Kills the player due to freezing.
-
stanley_lib$killByOverheating()- Description: Kills the player due to overheating.
-
stanley_lib$hurtByFreezing(int amount)- Description: Hurts the player by freezing.
-
Parameters:
-
amount(int) - The amount of damage inflicted.
-
-
stanley_lib$hurtByOverheating(int amount)- Description: Hurts the player by overheating.
-
Parameters:
-
amount(int) - The amount of damage inflicted.
-
-
stanley_lib$updateTemperature()- Description: Updates the player's temperature.
-
stanley_lib$setTemperatureState(PlayerTemperatureState state)- Description: Sets the player's temperature state to a specific value.
-
Parameters:
-
state(PlayerTemperatureState) - The new temperature state.
-