@Immutable
public class DifficultyInstance
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private float |
additionalDifficulty |
private Difficulty |
worldDifficulty |
Constructor and Description |
---|
DifficultyInstance(Difficulty worldDifficulty,
long worldTime,
long chunkInhabitedTime,
float moonPhaseFactor) |
Modifier and Type | Method and Description |
---|---|
private float |
calculateAdditionalDifficulty(Difficulty difficulty,
long worldTime,
long chunkInhabitedTime,
float moonPhaseFactor) |
float |
getAdditionalDifficulty() |
float |
getClampedAdditionalDifficulty() |
Difficulty |
getDifficulty() |
boolean |
isHarderThan(float p_193845_1_) |
private final Difficulty worldDifficulty
private final float additionalDifficulty
public DifficultyInstance(Difficulty worldDifficulty, long worldTime, long chunkInhabitedTime, float moonPhaseFactor)
public Difficulty getDifficulty()
public float getAdditionalDifficulty()
public boolean isHarderThan(float p_193845_1_)
public float getClampedAdditionalDifficulty()
private float calculateAdditionalDifficulty(Difficulty difficulty, long worldTime, long chunkInhabitedTime, float moonPhaseFactor)