Class DifficultyInstance

java.lang.Object
net.minecraft.world.DifficultyInstance

@Immutable public class DifficultyInstance extends Object
  • Field Details

    • DIFFICULTY_TIME_GLOBAL_OFFSET

      private static final float DIFFICULTY_TIME_GLOBAL_OFFSET
      See Also:
    • MAX_DIFFICULTY_TIME_GLOBAL

      private static final float MAX_DIFFICULTY_TIME_GLOBAL
      See Also:
    • MAX_DIFFICULTY_TIME_LOCAL

      private static final float MAX_DIFFICULTY_TIME_LOCAL
      See Also:
    • base

      private final Difficulty base
    • effectiveDifficulty

      private final float effectiveDifficulty
  • Constructor Details

    • DifficultyInstance

      public DifficultyInstance(Difficulty p_19044_, long p_19045_, long p_19046_, float p_19047_)
  • Method Details

    • getDifficulty

      public Difficulty getDifficulty()
    • getEffectiveDifficulty

      public float getEffectiveDifficulty()
    • isHard

      public boolean isHard()
    • isHarderThan

      public boolean isHarderThan(float p_19050_)
    • getSpecialMultiplier

      public float getSpecialMultiplier()
    • calculateDifficulty

      private float calculateDifficulty(Difficulty p_19052_, long p_19053_, long p_19054_, float p_19055_)