Uses of Enum Class
org.bukkit.Difficulty
Packages that use Difficulty
Package
Description
The root package of the Bukkit API, contains generalized API classes.
-
Uses of Difficulty in io.papermc.paper.event.world
Methods in io.papermc.paper.event.world that return DifficultyModifier and TypeMethodDescriptionWorldDifficultyChangeEvent.getDifficulty()
Gets the new difficulty of the world.Constructors in io.papermc.paper.event.world with parameters of type DifficultyModifierConstructorDescriptionWorldDifficultyChangeEvent
(World world, @Nullable CommandSourceStack commandSource, Difficulty difficulty) -
Uses of Difficulty in org.bukkit
Methods in org.bukkit that return DifficultyModifier and TypeMethodDescriptionstatic @Nullable Difficulty
Difficulty.getByValue
(int value) Gets the Difficulty represented by the specified value@NotNull Difficulty
World.getDifficulty()
Gets the Difficulty of the world.static Difficulty
Returns the enum constant of this class with the specified name.static Difficulty[]
Difficulty.values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods in org.bukkit with parameters of type DifficultyModifier and TypeMethodDescriptionvoid
World.setDifficulty
(@NotNull Difficulty difficulty) Sets the Difficulty of the world.