Class LocalDifficulty

java.lang.Object
net.minecraft.world.LocalDifficulty

@Immutable
public class LocalDifficulty
extends Object
  • Field Details

    • globalDifficulty

      private final Difficulty globalDifficulty
    • localDifficulty

      private final float localDifficulty
  • Constructor Details

    • LocalDifficulty

      public LocalDifficulty​(Difficulty difficulty, long timeOfDay, long inhabitedTime, float moonSize)
  • Method Details

    • getGlobalDifficulty

      public Difficulty getGlobalDifficulty()
    • getLocalDifficulty

      public float getLocalDifficulty()
    • isHarderThan

      public boolean isHarderThan​(float difficulty)
    • getClampedLocalDifficulty

      public float getClampedLocalDifficulty()
    • setLocalDifficulty

      private float setLocalDifficulty​(Difficulty difficulty, long timeOfDay, long inhabitedTime, float moonSize)