net.minecraft.world

public enum Difficulty

implements StringRepresentable

bdv
net.minecraft.world.Difficulty
net.minecraft.class_1267
net.minecraft.world.Difficulty
net.minecraft.src.C_468_
net.minecraft.world.EnumDifficulty

Enum constant summary

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

Field summary

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

Constructor summary

ModifierConstructor
private (int p_19025_, String p_19026_)

Method summary

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