net.minecraft.world

public enum Difficulty

implements StringRepresentable

bsi
net.minecraft.world.Difficulty
net.minecraft.class_1267
net.minecraft.world.Difficulty
net.minecraft.world.EnumDifficulty

Enum constant summary

Enum Constant
a
PEACEFUL
field_5801
PEACEFUL
b
EASY
field_5805
EASY
c
NORMAL
field_5802
NORMAL
d
HARD
field_5807
HARD

Field summary

Modifier and TypeField
public static final StringRepresentable$EnumCodec<Difficulty>
e
CODEC
field_41668
CODEC
private static final IntFunction<Difficulty>
f
BY_ID
field_5800
BY_ID
private final int
g
id
field_5803
id
private final String
h
key
field_5806
name

Constructor summary

ModifierConstructor
private (int arg0, String arg1)

Method summary

Modifier and TypeMethod
public int
a()
getId()
method_5461()
getId()
public Component
b()
getDisplayName()
method_5463()
getTranslatableName()
public Component
d()
getInfo()
method_48556()
getInfo()
public static Difficulty
a(int arg0)
byId(int arg0)
method_5462(int arg0)
byId(int id)
public static Difficulty
a(String arg0)
byName(String arg0)
method_16691(String arg0)
byName(String name)
public String
e()
getKey()
method_5460()
getName()
public String
c()
getSerializedName()
method_15434()
asString()