Package net.minecraft.world
Class DifficultyInstance
- java.lang.Object
-
- net.minecraft.world.DifficultyInstance
-
@Immutable public class DifficultyInstance extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private Difficulty
base
private float
effectiveDifficulty
-
Constructor Summary
Constructors Constructor Description DifficultyInstance(Difficulty p_i45904_1_, long p_i45904_2_, long p_i45904_4_, float p_i45904_6_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private float
calculateDifficulty(Difficulty p_180169_1_, long p_180169_2_, long p_180169_4_, float p_180169_6_)
Difficulty
getDifficulty()
float
getEffectiveDifficulty()
float
getSpecialMultiplier()
boolean
isHarderThan(float p_193845_1_)
-
-
-
Field Detail
-
base
private final Difficulty base
-
effectiveDifficulty
private final float effectiveDifficulty
-
-
Constructor Detail
-
DifficultyInstance
public DifficultyInstance(Difficulty p_i45904_1_, long p_i45904_2_, long p_i45904_4_, float p_i45904_6_)
-
-
Method Detail
-
getDifficulty
public Difficulty 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_)
-
-