Package net.minecraft.world
Class DifficultyInstance
java.lang.Object
net.minecraft.world.DifficultyInstance
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Difficulty
private static final float
private final float
private static final float
private static final float
-
Constructor Summary
ConstructorDescriptionDifficultyInstance
(Difficulty p_19044_, long p_19045_, long p_19046_, float p_19047_) -
Method Summary
Modifier and TypeMethodDescriptionprivate float
calculateDifficulty
(Difficulty p_19052_, long p_19053_, long p_19054_, float p_19055_) float
float
boolean
isHard()
boolean
isHarderThan
(float p_19050_)
-
Field Details
-
DIFFICULTY_TIME_GLOBAL_OFFSET
private static final float DIFFICULTY_TIME_GLOBAL_OFFSET- See Also:
-
MAX_DIFFICULTY_TIME_GLOBAL
private static final float MAX_DIFFICULTY_TIME_GLOBAL- See Also:
-
MAX_DIFFICULTY_TIME_LOCAL
private static final float MAX_DIFFICULTY_TIME_LOCAL- See Also:
-
base
-
effectiveDifficulty
private final float effectiveDifficulty
-
-
Constructor Details
-
DifficultyInstance
-
-
Method Details
-
getDifficulty
-
getEffectiveDifficulty
public float getEffectiveDifficulty() -
isHard
public boolean isHard() -
isHarderThan
public boolean isHarderThan(float p_19050_) -
getSpecialMultiplier
public float getSpecialMultiplier() -
calculateDifficulty
private float calculateDifficulty(Difficulty p_19052_, long p_19053_, long p_19054_, float p_19055_)
-