net.minestom.server.world.Difficulty Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of minestom-snapshots Show documentation
Show all versions of minestom-snapshots Show documentation
1.20.4 Lightweight Minecraft server
package net.minestom.server.world;
/**
* Those are all the difficulties which can be displayed in the player menu.
*
* Sets with {@link net.minestom.server.MinecraftServer#setDifficulty(Difficulty)}.
*/
public enum Difficulty {
PEACEFUL((byte) 0), EASY((byte) 1), NORMAL((byte) 2), HARD((byte) 3);
private final byte id;
Difficulty(byte id) {
this.id = id;
}
public byte getId() {
return id;
}
}