Class DifficultyChangeEvent

java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.DifficultyChangeEvent

public class DifficultyChangeEvent extends net.minecraftforge.eventbus.api.Event
DifficultyChangeEvent is fired when difficulty is changing.

This event is fired via the ForgeHooks.onDifficultyChange(EnumDifficulty, EnumDifficulty).

This event does not have a result. Event.HasResult

This event is fired on the MinecraftForge.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()