Package net.minecraft.world
Class LocalDifficulty
java.lang.Object
net.minecraft.world.LocalDifficulty
@Immutable public class LocalDifficulty extends Object
-
Field Summary
Fields Modifier and Type Field Description private Difficulty
globalDifficulty
private float
localDifficulty
-
Constructor Summary
Constructors Constructor Description LocalDifficulty(Difficulty difficulty, long timeOfDay, long inhabitedTime, float moonSize)
-
Method Summary
Modifier and Type Method Description float
getClampedLocalDifficulty()
Difficulty
getGlobalDifficulty()
float
getLocalDifficulty()
boolean
isHarderThan(float difficulty)
private float
setLocalDifficulty(Difficulty difficulty, long timeOfDay, long inhabitedTime, float moonSize)
-
Field Details
-
globalDifficulty
-
localDifficulty
private final float localDifficulty
-
-
Constructor Details
-
LocalDifficulty
-
-
Method Details
-
getGlobalDifficulty
-
getLocalDifficulty
public float getLocalDifficulty() -
isHarderThan
public boolean isHarderThan(float difficulty) -
getClampedLocalDifficulty
public float getClampedLocalDifficulty() -
setLocalDifficulty
private float setLocalDifficulty(Difficulty difficulty, long timeOfDay, long inhabitedTime, float moonSize)
-