HeatCondition

Importing the class

It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.

script.zs
import mods.create.HeatCondition;

Enum Constants

HeatCondition is an enum. It has 3 enum constants. They are accessible using the code below.

script.zs
<constant:create:heat_condition:none>
<constant:create:heat_condition:heated>
<constant:create:heat_condition:superheated>

Methods

Gets the color of this heat condition.

Returns: The color of this heat condition.
Return Type: int

script.zs
// HeatCondition.getColor() as int
myHeatCondition.getColor();

Return Type: string

script.zs
// HeatCondition.getCommandString() as string
myHeatCondition.getCommandString();

Gets the translation key of this heat condition.

Returns: The translation key of this heat condition.
Return Type: string

script.zs
// HeatCondition.getTranslationKey() as string
myHeatCondition.getTranslationKey();

Properties

NameTypeHas GetterHas SetterDescription
Name
color
Type
int
Has Getter
true
Has Setter
false
Description
Gets the color of this heat condition.
Name
commandString
Type
string
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
translationKey
Type
string
Has Getter
true
Has Setter
false
Description
Gets the translation key of this heat condition.