Difficulty

Represents the difficulty of a world. That being a measure of how difficult it is to play the game (though this is not always accurate).

Entries

Link copied to clipboard

In peaceful mode, no hostile monsters will spawn in the world.

Link copied to clipboard

In easy mode, hostile mobs spawn at normal rates, but they deal less damage than on normal difficulty. The hunger bar does deplete, and starving can deal up to 5 hears of damage.

Link copied to clipboard

In normal mode, hostile mobs spawn at normal rates, and they deal normal amounts of damage. The hunger bar does deplete, and starving can deal up to 9.5 hearts of damage.

Link copied to clipboard

In hard mode, hostile mobs spawn at normal rates, but they deal much greater damage than on normal difficulty. The hunger bar does deplete, and starving can kill players.

Functions

Link copied to clipboard
open override fun translationKey(): String
Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.

Properties

Link copied to clipboard
Link copied to clipboard