net.minecraft.world

public class LocalDifficulty

net.minecraft.world.DifficultyInstance
net.minecraft.class_1266
net.minecraft.world.LocalDifficulty

Field summary

Modifier and TypeField
private static final float
DIFFICULTY_TIME_GLOBAL_OFFSET
field_29953
field_29953
private static final float
MAX_DIFFICULTY_TIME_GLOBAL
field_29954
field_29954
private static final float
MAX_DIFFICULTY_TIME_LOCAL
field_29955
field_29955
private final Difficulty
base
field_5798
globalDifficulty
private final float
effectiveDifficulty
field_5799
localDifficulty

Constructor summary

ModifierConstructor
public (Difficulty difficulty, long timeOfDay, long inhabitedTime, float moonSize)

Method summary

Modifier and TypeMethod
public Difficulty
getDifficulty()
method_5454()
getGlobalDifficulty()
public float
getEffectiveDifficulty()
method_5457()
getLocalDifficulty()
public boolean
isHard()
method_35020()
isAtLeastHard()
public boolean
isHarderThan(float requiredDifficulty)
method_5455(float arg0)
isHarderThan(float difficulty)
public float
getSpecialMultiplier()
method_5458()
getClampedLocalDifficulty()
private float
calculateDifficulty(Difficulty base, long totalGameTime, long localGameTime, float moonBrightness)
method_5456(class_1267 arg0, long arg1, long arg2, float arg3)
setLocalDifficulty(Difficulty difficulty, long timeOfDay, long inhabitedTime, float moonSize)