Class DifficultyInstance

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

@Immutable public class DifficultyInstance extends Object
  • Field Details

    • base

      private final Difficulty base
    • effectiveDifficulty

      private final float effectiveDifficulty
  • Constructor Details

    • DifficultyInstance

      public DifficultyInstance(Difficulty p_i45904_1_, long p_i45904_2_, long p_i45904_4_, float p_i45904_6_)
  • Method Details

    • getDifficulty

      public Difficulty getDifficulty()
    • getEffectiveDifficulty

      public float getEffectiveDifficulty()
    • isHarderThan

      public boolean isHarderThan(float p_193845_1_)
    • getSpecialMultiplier

      public float getSpecialMultiplier()
    • calculateDifficulty

      private float calculateDifficulty(Difficulty p_180169_1_, long p_180169_2_, long p_180169_4_, float p_180169_6_)