Package net.minecraft.world
Class DifficultyInstance
java.lang.Object
net.minecraft.world.DifficultyInstance
-
Field Summary
-
Constructor Summary
ConstructorDescriptionDifficultyInstance
(Difficulty p_i45904_1_, long p_i45904_2_, long p_i45904_4_, float p_i45904_6_) -
Method Summary
Modifier and TypeMethodDescriptionprivate float
calculateDifficulty
(Difficulty p_180169_1_, long p_180169_2_, long p_180169_4_, float p_180169_6_) float
float
boolean
isHarderThan
(float p_193845_1_)
-
Field Details
-
base
-
effectiveDifficulty
private final float effectiveDifficulty
-
-
Constructor Details
-
DifficultyInstance
public DifficultyInstance(Difficulty p_i45904_1_, long p_i45904_2_, long p_i45904_4_, float p_i45904_6_)
-
-
Method Details
-
getDifficulty
-
getEffectiveDifficulty
public float getEffectiveDifficulty() -
isHarderThan
public boolean isHarderThan(float p_193845_1_) -
getSpecialMultiplier
public float getSpecialMultiplier() -
calculateDifficulty
private float calculateDifficulty(Difficulty p_180169_1_, long p_180169_2_, long p_180169_4_, float p_180169_6_)
-