public class DifficultyChangeEvent
extends net.minecraftforge.eventbus.api.Event
ForgeHooks#onDifficultyChange(EnumDifficulty, EnumDifficulty)
.Cancelable
.Event.HasResult
MinecraftForge.EVENT_BUS
.Modifier and Type | Field and Description |
---|---|
private Difficulty |
difficulty |
private Difficulty |
oldDifficulty |
Constructor and Description |
---|
DifficultyChangeEvent(Difficulty difficulty,
Difficulty oldDifficulty) |
Modifier and Type | Method and Description |
---|---|
Difficulty |
getDifficulty() |
Difficulty |
getOldDifficulty() |
private final Difficulty difficulty
private final Difficulty oldDifficulty
public DifficultyChangeEvent(Difficulty difficulty, Difficulty oldDifficulty)
public Difficulty getDifficulty()
public Difficulty getOldDifficulty()