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.

script.zs
import crafttweaker.api.world.DifficultyInstance;

Members

Getter
script.zs
// DifficultyInstance.difficulty as Difficulty
myDifficultyInstance.difficulty

Return Type: Difficulty

Getter
script.zs
// DifficultyInstance.effectiveDifficulty as float
myDifficultyInstance.effectiveDifficulty

Return Type: float

Getter
script.zs
// DifficultyInstance.isHard as bool
myDifficultyInstance.isHard

Return Type: bool

isHarderThan(difficulty as float) as bool
script.zs
// DifficultyInstance.isHarderThan(difficulty as float) as bool;
myDifficultyInstance.isHarderThan(myFloat);

Parameters:

difficulty Type: float

Return Type: bool

Getter
script.zs
// DifficultyInstance.specialMultiplier as float
myDifficultyInstance.specialMultiplier

Return Type: float