Package net.minecraftforge.event
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 theForgeHooks#onDifficultyChange(EnumDifficulty, EnumDifficulty)
.
This event does not have a result.Event.HasResult
This event is fired on theMinecraftForge.EVENT_BUS
.
-
-
Field Summary
Fields Modifier and Type Field Description private Difficulty
difficulty
private Difficulty
oldDifficulty
-
Constructor Summary
Constructors Constructor Description DifficultyChangeEvent(Difficulty difficulty, Difficulty oldDifficulty)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Difficulty
getDifficulty()
Difficulty
getOldDifficulty()
-
-
-
Field Detail
-
difficulty
private final Difficulty difficulty
-
oldDifficulty
private final Difficulty oldDifficulty
-
-
Constructor Detail
-
DifficultyChangeEvent
public DifficultyChangeEvent(Difficulty difficulty, Difficulty oldDifficulty)
-
-
Method Detail
-
getDifficulty
public Difficulty getDifficulty()
-
getOldDifficulty
public Difficulty getOldDifficulty()
-
-