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.
invalid reference
HasResult
This event is fired on the
NeoForge.EVENT_BUS
.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final net.minecraft.world.Difficulty
private final net.minecraft.world.Difficulty
-
Constructor Summary
ConstructorsConstructorDescriptionDifficultyChangeEvent
(net.minecraft.world.Difficulty difficulty, net.minecraft.world.Difficulty oldDifficulty) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.Difficulty
net.minecraft.world.Difficulty
-
Field Details
-
difficulty
private final net.minecraft.world.Difficulty difficulty -
oldDifficulty
private final net.minecraft.world.Difficulty oldDifficulty
-
-
Constructor Details
-
DifficultyChangeEvent
public DifficultyChangeEvent(net.minecraft.world.Difficulty difficulty, net.minecraft.world.Difficulty oldDifficulty)
-
-
Method Details
-
getDifficulty
public net.minecraft.world.Difficulty getDifficulty() -
getOldDifficulty
public net.minecraft.world.Difficulty getOldDifficulty()
-