Class DifficultyChangeEvent

java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.event.DifficultyChangeEvent

public class DifficultyChangeEvent extends net.neoforged.bus.api.Event
DifficultyChangeEvent is fired when difficulty is changing.

This event is fired via the CommonHooks.onDifficultyChange(Difficulty, Difficulty).

This event does not have a result.
invalid reference
HasResult


This event is fired on the NeoForge.EVENT_BUS.
  • Field Details

    • difficulty

      private final Difficulty difficulty
    • oldDifficulty

      private final Difficulty oldDifficulty
  • Constructor Details

    • DifficultyChangeEvent

      public DifficultyChangeEvent(Difficulty difficulty, Difficulty oldDifficulty)
  • Method Details

    • getDifficulty

      public Difficulty getDifficulty()
    • getOldDifficulty

      public Difficulty getOldDifficulty()