DifficultyInstance
Importing the class
If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.
import crafttweaker.api.world.DifficultyInstance;
Members
Getter
// DifficultyInstance.difficulty as DifficultymyDifficultyInstance.difficulty
Return Type:
Difficulty
Getter
// DifficultyInstance.effectiveDifficulty as floatmyDifficultyInstance.effectiveDifficulty
Return Type:
float
Getter
// DifficultyInstance.isHard as boolmyDifficultyInstance.isHard
Return Type:
bool
isHarderThan(difficulty as float) as bool
// DifficultyInstance.isHarderThan(difficulty as float) as bool;myDifficultyInstance.isHarderThan(myFloat);
Parameters:
difficulty: float
Type: float
Return Type:
bool
Getter
// DifficultyInstance.specialMultiplier as floatmyDifficultyInstance.specialMultiplier
Return Type:
float