public class DifficultyChangeEvent extends Event
ForgeHooks.onDifficultyChange(EnumDifficulty, EnumDifficulty)
.Cancelable
.Event.HasResult
MinecraftForge.EVENT_BUS
.Event.HasResult, Event.Result
Modifier and Type | Field and Description |
---|---|
private EnumDifficulty |
difficulty |
private EnumDifficulty |
oldDifficulty |
Constructor and Description |
---|
DifficultyChangeEvent(EnumDifficulty difficulty,
EnumDifficulty oldDifficulty) |
Modifier and Type | Method and Description |
---|---|
EnumDifficulty |
getDifficulty() |
EnumDifficulty |
getOldDifficulty() |
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
private final EnumDifficulty difficulty
private final EnumDifficulty oldDifficulty
public DifficultyChangeEvent(EnumDifficulty difficulty, EnumDifficulty oldDifficulty)
public EnumDifficulty getDifficulty()
public EnumDifficulty getOldDifficulty()