类 DifficultyInstance

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

@Immutable public class DifficultyInstance extends Object
  • 字段详细资料

    • DIFFICULTY_TIME_GLOBAL_OFFSET

      private static final float DIFFICULTY_TIME_GLOBAL_OFFSET
      另请参阅:
    • MAX_DIFFICULTY_TIME_GLOBAL

      private static final float MAX_DIFFICULTY_TIME_GLOBAL
      另请参阅:
    • MAX_DIFFICULTY_TIME_LOCAL

      private static final float MAX_DIFFICULTY_TIME_LOCAL
      另请参阅:
    • base

      private final Difficulty base
    • effectiveDifficulty

      private final float effectiveDifficulty
  • 构造器详细资料

    • DifficultyInstance

      public DifficultyInstance(Difficulty p_19044_, long p_19045_, long p_19046_, float p_19047_)
  • 方法详细资料

    • 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_)