Package net.neoforged.neoforge.event
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
 
This event does not have a result.
 
This event is fired on the
This event is fired via the
CommonHooks.onDifficultyChange(Difficulty, Difficulty).This event does not have a result.
Event.HasResultThis event is fired on the
NeoForge.EVENT_BUS.- 
Nested Class Summary
Nested classes/interfaces inherited from class net.neoforged.bus.api.Event
net.neoforged.bus.api.Event.HasResult, net.neoforged.bus.api.Event.Result - 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Methods inherited from class net.neoforged.bus.api.Event
getResult, hasResult, setResult 
- 
Field Details
- 
difficulty
 - 
oldDifficulty
 
 - 
 - 
Constructor Details
- 
DifficultyChangeEvent
 
 - 
 - 
Method Details
- 
getDifficulty
 - 
getOldDifficulty
 
 -