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