
net.minecraft.server.EnumDifficulty Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of walk-server Show documentation
Show all versions of walk-server Show documentation
A spigot fork to kotlin structure and news.
package net.minecraft.server;
public enum EnumDifficulty {
PEACEFUL(0, "options.difficulty.peaceful"),
EASY(1, "options.difficulty.easy"),
NORMAL(2, "options.difficulty.normal"),
HARD(3, "options.difficulty.hard");
private static final EnumDifficulty[] e = new EnumDifficulty[values().length];
static {
EnumDifficulty[] aenumdifficulty = values();
int i = aenumdifficulty.length;
for (EnumDifficulty enumdifficulty : aenumdifficulty) {
EnumDifficulty.e[enumdifficulty.f] = enumdifficulty;
}
}
private final int f;
private final String g;
EnumDifficulty(int i, String s) {
this.f = i;
this.g = s;
}
public static EnumDifficulty getById(int i) {
return EnumDifficulty.e[i % EnumDifficulty.e.length];
}
public int a() {
return this.f;
}
public String b() {
return this.g;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy