net.minecraft.world.item

public enum Rarity

implements StringRepresentable

cvo
net.minecraft.world.item.Rarity
net.minecraft.class_1814
net.minecraft.unmapped.C_mqmixksm
net.minecraft.util.Rarity
net.minecraft.util.Rarity
net.minecraft.src.C_1407_
net.minecraft.world.item.EnumItemRarity

Enum constant summary

Enum Constant
a
COMMON
field_8906
f_frlukshb
COMMON
COMMON
COMMON
b
UNCOMMON
field_8907
f_mvpksmyn
UNCOMMON
UNCOMMON
UNCOMMON
c
RARE
field_8903
f_mlfnbzle
RARE
RARE
RARE
d
EPIC
field_8904
f_kgqxojez
EPIC
EPIC
EPIC

Field summary

Modifier and TypeField
public static final com.mojang.serialization.Codec<Rarity>
e
CODEC
field_50001
f_knyhspkh
CODEC
CODEC
f_317080_
public static final IntFunction<Rarity>
f
BY_ID
field_50002
f_dobvxewt
ID_TO_VALUE
f_315799_
public static final StreamCodec<io.netty.buffer.ByteBuf, Rarity>
g
STREAM_CODEC
field_50003
f_xngoqecf
PACKET_CODEC
PACKET_CODEC
f_316344_
private final int
h
id
field_50004
f_vjzoaznr
index
f_316805_
private final String
i
name
field_50005
f_gahweovi
name
f_314266_
private final ChatFormatting
j
color
field_8908
f_efjldeaw
formatting
formatting
f_43022_

Constructor summary

ModifierConstructor
private (int p_43027_, String p_330136_, ChatFormatting index)

Method summary

Modifier and TypeMethod
public ChatFormatting
a()
color()
method_58413()
m_waqdxpfx()
getFormatting()
m_321696_()
public String
c()
getSerializedName()
method_15434()
m_dxbrenur()
asString()
asString()
m_7912_()