Difficulty

public enum Difficulty

Represents the various difficulty levels that are available.

Entries

Link copied to clipboard

Players regain health over time, hostile mobs don't spawn, the hunger bar does not deplete.

Link copied to clipboard

Hostile mobs spawn, enemies deal less damage than on normal difficulty, the hunger bar does deplete and starving deals up to 5 hearts of damage. (Default value)

Link copied to clipboard

Hostile mobs spawn, enemies deal normal amounts of damage, the hunger bar does deplete and starving deals up to 9.5 hearts of damage.

Link copied to clipboard

Hostile mobs spawn, enemies deal greater damage than on normal difficulty, the hunger bar does deplete and starving can kill players.

Properties

Link copied to clipboard
public final int value

Functions

Link copied to clipboard
public static Difficulty valueOf(String name)

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
public static Array<Difficulty> values()

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.